I have a problem. I'm learning RGSS and for practice im implementing all rm2k lost options in XP. The problem is that i don't know exactly how to call methods out of the actual class.
I have a "Other" class that have many new methods, like correction critical for weapon, or another based in Actor/Class, etc.. well, methods that i have to call in many other scripts.
example:
#This is the call i'm making now , in Game_Battler 3
$Other.critic_weapon(@attacker,@critical)
And this the called method class:
class Other
def critic_weapon(attacker, critical)
if attacker.weapon_id == 1
print "critic mod"
critic += 5
return
this is the error message
no method error, undefined method critc_weapon for nil: Nil class
I have a "Other" class that have many new methods, like correction critical for weapon, or another based in Actor/Class, etc.. well, methods that i have to call in many other scripts.
example:
#This is the call i'm making now , in Game_Battler 3
$Other.critic_weapon(@attacker,@critical)
And this the called method class:
class Other
def critic_weapon(attacker, critical)
if attacker.weapon_id == 1
print "critic mod"
critic += 5
return
this is the error message
no method error, undefined method critc_weapon for nil: Nil class