Undefined Var in Developer Help
|
|
Code:
turf Rock icon = 'icons.dmi' icon_state = "Rock_Symbol" Click() if(SkillPoints==200) usr << "You can now buy Rock Jutsus" else usr << "Not enough Skill Points" mob/var SkillPoints = 300
|
Problem description:
Its saying Undefined Var, when I defined it. O.o
|
However, looking at this, if someone is buying something, it's rare they will have the EXACT compensation (SkillPoints in this case) - I don't know how your game functions, but 99 times out of 100, you should use if(usr.SkillPoints>=200). Just something I noticed.