The Dink Network

Reply to Re: mathmod

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 27th 2006, 01:43 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
int &halflifemax = &lifemax;
&halflifemax / 2;//here, I corrected redink1's script
&life += &halflifemax;
if (&life > &lifemax)
{
&life = &lifemax;
}

I guess you wanted to use math_div instead of math_mod, but this way, if dink's life was higher than half of his lifemax, it would lower dink's life(and I guess you didn't want that).