Formula Needed
Every other level Dink gains, I want something to happen. So how would I calculate if the level is an even number?
There seem to have a file called "lraise.c" in the develop folder,you can change what happens when level raises...
Get the level's modulo of 2 by using math_mod. Like this:
int &whatever = math_mod(&level, 2); if(&whatever == 1) say("The number isn't even!", 1); else say("The number is even.", 1);
But what do you want to do with that?And there seem to have some mistakes in the sentences...
Ah thanks, I knew it would be something simple.. I'm just not in a thinking mood right now
Edit
I'm actually working on a Respec system. Every other level you can get a respec. Just needs a few finishing touches and a readme.
Edit
I'm actually working on a Respec system. Every other level you can get a respec. Just needs a few finishing touches and a readme.
Uh, mistakes? Didn't check, but I recall math_mod was added in 1.08. For example, you could use something like that to make Dink get more hit points every other level, or something.
yeah, MOD function. you know, like those english dudes who wear black suits
I got bored so I added a little extra something to this dev file.. It will be fun...