The Dink Network

Reply to Re: I cant change Dinks stats in my D-Mod!!!

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:
 
 
October 3rd 2004, 08:05 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
They run on global variables.If any script changes the variable the stat gets updated with it.eg;
&exp =+ 100;// raise experience 100.
&strength -= 1; // lowers dinks strength by 1.
when Dink picks up some gold the script attached to the gold has a line something like;
void touch()
{
&gold += 200;
//now something to kill the sprite...
sp_active(&current_sprite,0);
}
The variables that do this are all initiated in the 'main.c' script in any dmods story folder.