I thought it was my code but I think i'm wrong. No matter what I do the program does not see any attributes i make besides the ones I already made. Is this a possible bug. Is there a way to fix it. I add new attributes from multiple objects and if I try to insert them into a code they don't exist at all despite me adding them. Please help.
HegemonKhan
09 Jul 2014 03:00
it should work, there has to be something causing it, I'll need to see your entire code, to find the error in it.
------
otherwise, you can use an alternative to the 'set' code:
if using the GUI~Editor:
run as script -> add a script -> variables -> set a variable or attribute ->
Object_name.Attribute_name = Value_or_Expression
player.strength = 100
this is the same as if you did: set (player, "strength", 100)
or, in Code (well in the scripts, like a Verb):
Object_name.Attribute_name = Value_or_Expression
player.strength = 100
HegemonKhan
09 Jul 2014 03:02
here's a mistake with your code:
ShowMenu ("What is your profession?", Split ("Swordsman;Mage;Archer;Knight", ";"), false) { player.Class = result set (player, Strength, 10) }
you need quotes around your String Attribute: Strength
so, it should be changed to this:
ShowMenu ("What is your profession?", Split ("Swordsman;Mage;Archer;Knight", ";"), false) { player.Class = result set (player, "Strength", 10)