Variables +1
How would I use +1 with variables?
in this instance everytime somebody completes a task the variable would set $variablename+1 so if the task had 10 steps each time it would +1 so at the end it would equal 10 so another NPC could just check for that variable of 10. I was thinking quest::setglobal(variablename, +1); But not sure if that would work in this instance. the is also $variable=+1; but I doubt that would work |
You could use something like this.
Code:
$variablename++; |
I have used something like this and it works well:
Code:
quest::setglobal("variablename", $qglobals{variablename}+1, 5, "F"); |
All times are GMT -4. The time now is 04:21 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.