The Dink Network

DinkC Questions

August 1st 2005, 11:12 PM
dragon.gif
Is it possible to do mathematical equations with DinkC? If so is it possible to get it to drop fractions?
August 2nd 2005, 12:17 AM
goblinm.gif
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...
August 2nd 2005, 12:26 AM
dragon.gif
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.
August 2nd 2005, 12:27 AM
dragon.gif
Okay is it possible to rename stats or are the names hardwired into the engine?
August 2nd 2005, 07:17 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
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)
August 2nd 2005, 03:00 PM
dragon.gif
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.
August 2nd 2005, 03:30 PM
dragon.gif
Is there a limit to dink's speed?
August 3rd 2005, 02:07 AM
spike.gif
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.
August 3rd 2005, 02:41 AM
dragon.gif
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?
August 3rd 2005, 05:40 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
If 3 is default, and 1 is extra fast, it occurs to me that 4 and 5 are for a slower Dink.