📧 Message Board Archive

Variables!
Does anyone know why some variables don't work for me at the moment? Now, when I use a variable like &gold or &strength, it won't update!? I have a script and this line is there:



&gold += 100;



Dink should get 100 gold. But you don't hear a 'goldgetting' sound and you don't see you get the gold. This also happens when I have a strengthpotion somewhere. You don't get an extra strength. But... when I Alt-Tab out of the game, and then return, the stats are updated ( so Dink has the gold, strength ). Is this a problem with draw_status(); or something?



Simeon
Re: Variables!
Make sure these lines are there at the end of start-1.c

&update_status = 1;

draw_status();

kill_this_task();



: Does anyone know why some variables don't work for me at the moment? Now, when I use a variable like &gold or &strength, it won't update!? I have a script and this line is there:



: &gold += 100;



: Dink should get 100 gold. But you don't hear a 'goldgetting' sound and you don't see you get the gold. This also happens when I have a strengthpotion somewhere. You don't get an extra strength. But... when I Alt-Tab out of the game, and then return, the stats are updated ( so Dink has the gold, strength ). Is this a problem with draw_status(); or something?



: Simeon



Re: Variables!
you dont need to draw status for gold and strength to be added. when you play a dmod or dink, does it work normally?



: Does anyone know why some variables don't work for me at the moment? Now, when I use a variable like &gold or &strength, it won't update!? I have a script and this line is there:



: &gold += 100;



: Dink should get 100 gold. But you don't hear a 'goldgetting' sound and you don't see you get the gold. This also happens when I have a strengthpotion somewhere. You don't get an extra strength. But... when I Alt-Tab out of the game, and then return, the stats are updated ( so Dink has the gold, strength ). Is this a problem with draw_status(); or something?



: Simeon



Re: Variables!
It's true that you don't need to draw status for gold and strength but when you pick up a strengthpotion, it should be added to the status. But the message from Hellfire worked, the variable &update_status should be 1 so when you pick up something like that, it's updated.



Simeon



: you dont need to draw status for gold and strength to be added. when you play a dmod or dink, does it work normally?



: : Does anyone know why some variables don't work for me at the moment? Now, when I use a variable like &gold or &strength, it won't update!? I have a script and this line is there:



: : &gold += 100;



: : Dink should get 100 gold. But you don't hear a 'goldgetting' sound and you don't see you get the gold. This also happens when I have a strengthpotion somewhere. You don't get an extra strength. But... when I Alt-Tab out of the game, and then return, the stats are updated ( so Dink has the gold, strength ). Is this a problem with draw_status(); or something?



: : Simeon