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?
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?