Sun Jun 17, 2012 9:03 pm
Mon Jun 18, 2012 2:33 am
Mon Jun 18, 2012 11:40 am
Fri Jan 31, 2014 12:12 am
Sun Aug 10, 2014 3:41 pm
Sat Jun 24, 2017 1:47 pm
Sat Jun 24, 2017 5:26 pm
KGold wrote:Is it possible to modify the value of a global by adding to it or subtracting from it instead of typing in a particular one with a script?
I'm pretty sure it is, I just forgot how...
Sun Jun 25, 2017 12:47 pm
Elendil / Redshift wrote:KGold wrote:Is it possible to modify the value of a global by adding to it or subtracting from it instead of typing in a particular one with a script?
I'm pretty sure it is, I just forgot how...
You can only access globals with getglobal and setglobal. Of course, after you get the value, you can add and subtract to/from it.
Sun Jun 25, 2017 5:40 pm
setglobal("global", getglobal("global") + 1);
Mon Jun 26, 2017 7:17 pm
Elendil / Redshift wrote:
- Code:
setglobal("global", getglobal("global") + 1);
Sun Mar 24, 2019 8:45 am
Mon Mar 25, 2019 7:34 am
Tue Jun 30, 2020 2:11 pm
if(evtstepon() && (getstate()<4))
{
if(isnight())
{Test_Skel01.setvisible();
Test_Skel02.setvisible();
Test_Skel03.setvisible();
Test_Ghoul01.setvisible();}
else
if(isdaylight())
{Test_Skel01.sethidden();
Test_Skel02.sethidden();
Test_Skel03.sethidden();
Test_Ghoul01.sethidden();}}