Reply to Re: Script problem, won't modify variable
If you don't have an account, just leave the password field blank.
Wonder why it wouldn't work for me. hm.. I ended up starting over from scratch and re-made it, with tweaks and some bug fixes. So far this works perfectly.
//stamina.c
//spawned at start
//regenerate stamina
void main ()
{
wait(1);
script_attach(1000);
int &shownum;
int &showtit;
int &mapbug;
loop:
&mapbug = &player_map;
wait(66);
if (&stamina < 100)
{
&stamina += 2;
if (&stamina > 100)
&stamina = 100;
}
&showtit = say_xy("`% Stamina:", -255, 383);
if (&mapbug == &player_map)
sp_kill(&shownum,66);
&shownum = say_xy("`% &stamina", -203, 383);
goto loop;
}
//stamina.c
//spawned at start
//regenerate stamina
void main ()
{
wait(1);
script_attach(1000);
int &shownum;
int &showtit;
int &mapbug;
loop:
&mapbug = &player_map;
wait(66);
if (&stamina < 100)
{
&stamina += 2;
if (&stamina > 100)
&stamina = 100;
}
&showtit = say_xy("`% Stamina:", -255, 383);
if (&mapbug == &player_map)
sp_kill(&shownum,66);
&shownum = say_xy("`% &stamina", -203, 383);
goto loop;
}