DinkC Questions
Is it possible to do mathematical equations with DinkC? If so is it possible to get it to drop fractions?
Um, it uses integer variables... so:
int &crap = 6;
&crap / 5;
would make &crap equal to 1.
The question is, is it possible to keep it from dropping fractions...
int &crap = 6;
&crap / 5;
would make &crap equal to 1.
The question is, is it possible to keep it from dropping fractions...
Okay thanks. A dmod I will soon begin working on will include many new stats and will need me to do equations that involve those new stats.
Okay is it possible to rename stats or are the names hardwired into the engine?
They're hardcoded in the engine. Basically all the default variables are (with a few exceptions like &story I guess) - and if they're not, they're used in so many default scripts, you end up using them anyway (like &save_x and &save_y)
dang! Oh well, I will have to find a new way to implement the features I am looking for in the dmod. Thanks for the help.
Dink's default speed is 3, 2 is herb boots speed and 1 is sonic speed. you change it with set_dink_speed(-1);
sp_speed(1, -1); might work too, not sure, in which case there's no limit you'd have to worry about.
sp_speed(1, -1); might work too, not sure, in which case there's no limit you'd have to worry about.
Thanks. Oh and I know how to change it, I just wasn't sure if there was a limit.
EDIT: I have discovered boots scripts that see dink_speed range from 1 to 5, depending on which script it is. What is speed 4 and 5 for?
EDIT: I have discovered boots scripts that see dink_speed range from 1 to 5, depending on which script it is. What is speed 4 and 5 for?