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.
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(¤t_sprite,0);
}
The variables that do this are all initiated in the 'main.c' script in any dmods story folder.
&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(¤t_sprite,0);
}
The variables that do this are all initiated in the 'main.c' script in any dmods story folder.