76
Help / Re: help with variables and rpg stuff
« on: May 28, 2009, 03:36:07 PM »
Well I'm not quite sure about the class system, I could think about that, but it seems rather complex and I'm not sure what your looking for. As far as money I'll try.
First off get money.
Onactivate-> Player ->Add Variable-> Gold 15
Onactivate-> Client-> DisplayVariable-> Player BottomPrint Gold
Spend Money
On Activate->Self->IfVariable-> Gold
VariableTrue->Player -> Add Variable-> Gold -10
VariableTrue->Player-> Add variable-> Icecream 1
VariableTrue->Client->Displayvariable-> Player BottomPrint Gold
3000(delay) VariableTrue->Client->Displayvariable-> Player BottomPrint Icecream
VariableFalse->Client-> Bottom Print Message: YOU DON"T HAVE ENOUGH GOLD!
Something like that, examples are the best way to learn variables.
First off get money.
Onactivate-> Player ->Add Variable-> Gold 15
Onactivate-> Client-> DisplayVariable-> Player BottomPrint Gold
Spend Money
On Activate->Self->IfVariable-> Gold
VariableTrue->Player -> Add Variable-> Gold -10
VariableTrue->Player-> Add variable-> Icecream 1
VariableTrue->Client->Displayvariable-> Player BottomPrint Gold
3000(delay) VariableTrue->Client->Displayvariable-> Player BottomPrint Icecream
VariableFalse->Client-> Bottom Print Message: YOU DON"T HAVE ENOUGH GOLD!
Something like that, examples are the best way to learn variables.