Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

RGSS2

Name: Puppet of Fate 2011-07-30 20:02

So I am complete unexperienced in the ways of RGSS2 coding and I am in need of some help. I am working on a game using RPG Maker VX (I know it doesn't require much coding know-how) and have run into a problem with a script that I have added. I found the script on a different website with instructions on how to make it work correctly, which I followed. I have also asked for help on said website but no response. So, now I come to you, PROG, in hopes that you can help me.

The errors pops up and states...

Script 'Spirits System - Yanfly' line 154: NoMethodError occurred.

undefined method 'each' for nil:NilClass

Line 154 is in this section of coding as well.

#--------------------------------------------------------------------------
  # * Get Basic Maximum HP
  #--------------------------------------------------------------------------
  alias spirit_base_maxhp base_maxhp
  def base_maxhp
    result = spirit_base_maxhp
    for spirit in @spirits
      if Stat_Bonus_by_Percentage
        result *= (100 + spirit.base_maxhp)
        result /= 100
      else
        result += spirit.base_maxhp
      end
    end
    return result
  end

===

Any help?

Name: Anonymous 2011-07-30 20:21

What is this PROG you speak of?

Name: Anonymous 2011-07-30 20:33

You know, I don't really like looking at Ruby code for some reason.

Name: Puppet of Fate 2011-07-30 21:18

Can anyone help? Full credit will be given.

Name: Anonymous 2011-07-30 21:40

>>1,4
We need to know which line is line 154, my good sir.

And please use code tags

#--------------------------------------------------------------------------
  # * Get Basic Maximum HP
  #--------------------------------------------------------------------------
  alias spirit_base_maxhp base_maxhp
  def base_maxhp
    result = spirit_base_maxhp
    for spirit in @spirits
      if Stat_Bonus_by_Percentage
        result *= (100 + spirit.base_maxhp)
        result /= 100
      else
        result += spirit.base_maxhp
      end
    end
    return result
  end

Name: Puppet of Fate 2011-07-30 21:43

Line 54 is...

for spirit in @spirits

And I don't know how to or else I would. I know I'm new to this section so I apologize for that.

Name: Anonymous 2011-07-30 23:47

[code]a + b = c;[/code]

Name: Anonymous 2011-07-31 0:22

SLOW AS FUCK

Name: Anonymous 2011-07-31 5:08

   Can anyone help? Full credit will be given.
lol

Name: Anonymous 2011-07-31 5:13

>>1
It's strange to say, but, well, learn Ruby.

Name: Anonymous 2011-07-31 5:35

install gentoo

Name: Anonymous 2011-07-31 5:48

>>11
Go back to /g/.

Name: Anonymous 2011-07-31 10:05

NIGGERS

Name: Anonymous 2011-07-31 15:28

NIGGER NIGGERS

Name: Anonymous 2011-08-01 18:24

>>12
install gentoo
>>13,14
tsk

Name: Anonymous 2011-08-01 18:27

>>15
back to /lounge/ you nigger fagstorm

Don't change these.
Name: Email:
Entire Thread Thread List