damage
what is the formula the game uses to calculate the randomized damage reguarding the strength of something. say a fireball has strength of 10, doesn't always hit worth 10 pts of damage.
It's a random number between 1/2 * &str and &str, where &str is the strenght.
int &damage;
int &crap;
&crap = sp_strength(&sprite, -1);
//use &strength if &sprite = 1
&crap / 2;
&damage = random(&crap, &crap);
Would be the DinkC code.
LATE ADDITION: In earlier versions of Dink (1.06 and 1.07) you can't use &str as a variable, becuase it would conflict with &strength. Just to warn you for the consequences.
int &damage;
int &crap;
&crap = sp_strength(&sprite, -1);
//use &strength if &sprite = 1
&crap / 2;
&damage = random(&crap, &crap);
Would be the DinkC code.
LATE ADDITION: In earlier versions of Dink (1.06 and 1.07) you can't use &str as a variable, becuase it would conflict with &strength. Just to warn you for the consequences.
That's also the reason why my new DMODs will not be playable for 1.06/1.07. I love the new possibilities in terms of variable names.
