For coding mathematical functions you can rely on the GUI's parenthetical functions or you can simply split the functions apart. Code always executes from top to bottom, so you can put the functions you want to occur first above the rest.
So for example...
Set Gold Bank = (BANK + (Aleatorie* VAR MULTI) )
Could be rewritten as:
Set Gold Bank = Aleatorie * VAR MULTI
Set Gold Bank = Gold Bank + BANK
Hi everybody, does somebody can help me to do a gold system ? I do It like that.
Variable :
Trigger :
-Player 2 Kill One Roach
-Then Add 50 Gold (GMR) - 150 gold (GMaR) in ''BANK''
Function:
Param :
Variable (Function) :
Action :
But if I want to Add an = Var Multiplicate = <Reel> ( 1 minimum )
Do I do like that
But I Think I don't do it in order or something like that !
Thanks You
Action definitions need to be called in order to function. Here is basically what you need:
For coding mathematical functions you can rely on the GUI's parenthetical functions or you can simply split the functions apart. Code always executes from top to bottom, so you can put the functions you want to occur first above the rest.
So for example...
Set Gold Bank = (BANK + (Aleatorie* VAR MULTI) )
Could be rewritten as:
Set Gold Bank = Aleatorie * VAR MULTI
Set Gold Bank = Gold Bank + BANK
I hope that helps...
Thanks you I will try that !