The Dink Network

Reply to Re: Script problem, won't modify variable

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 27th 2008, 01:47 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
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;
}