The Dink Network

Reply to Re: Stat Reliant Stats

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:
 
 
December 31st 2005, 01:36 AM
anon.gif
toa
Ghost They/Them
 
"The only problem with that is that it would raise by too much because each time it runs it would add an ammount and eacg ammount would stake."

An easy way is (to add half of your stat to defense):

&defense -= &mystat_modval;
&mystat_modval = &mystat_val;
&mystat_modval / 2;
&defense += &mystat_modval;

In other words, subtract the old modifier value before adding the new modifier value. If the calculation between the subtract/add is done without a wait(), then the status display shouldn't get all jumpy (displaying a lower val then a higher val).