10-29-2021, 06:59 AM
Hi everyone!
I'm trying to do a roulette but it's not giving gold cause it has an ERROR at the console caused by NEWGOLD.
The message is telling the correct number, but it's not giving gold
Hope you can help me.
Thanks in advance.
[FUNCTION f_roulette_win]
//Give proper gold
VAR.MULTIPLIER=<ARGS>
//Calc the gold
VAR.NEWGOLD=<ARGS>*<LINK.TAG.WAGER>
VAR.TOTALGOLD=<VAR.NEWGOLD>+<LINK.TAG.WAGER>
//Tell them what they won
LINK.SYSMESSAGE="You recieve <EVAL <VAR.TOTALGOLD>> gold coins!!!"
//Create it and put it in your pack
SRC.NEWGOLD <EVAL <VAR.TOTALGOLD>> (I also tried with <VAR.TOTALGOLD> only, and it's not working)
LINK.ACT.CONT=<LINK.FINDLAYER(21).UID>
//Now create the item that shows the gump
LINK.NEWITEM i_roulette_win
LINK.ACT.CONT=<LINK.UID>
RETURN 1
I'm trying to do a roulette but it's not giving gold cause it has an ERROR at the console caused by NEWGOLD.
The message is telling the correct number, but it's not giving gold
Hope you can help me.
Thanks in advance.
[FUNCTION f_roulette_win]
//Give proper gold
VAR.MULTIPLIER=<ARGS>
//Calc the gold
VAR.NEWGOLD=<ARGS>*<LINK.TAG.WAGER>
VAR.TOTALGOLD=<VAR.NEWGOLD>+<LINK.TAG.WAGER>
//Tell them what they won
LINK.SYSMESSAGE="You recieve <EVAL <VAR.TOTALGOLD>> gold coins!!!"
//Create it and put it in your pack
SRC.NEWGOLD <EVAL <VAR.TOTALGOLD>> (I also tried with <VAR.TOTALGOLD> only, and it's not working)
LINK.ACT.CONT=<LINK.FINDLAYER(21).UID>
//Now create the item that shows the gump
LINK.NEWITEM i_roulette_win
LINK.ACT.CONT=<LINK.UID>
RETURN 1