Changes

Jump to navigation Jump to search

FF7/DamageFormula

1,090 bytes added, 19:52, 29 March 2012
Added Secondary Formulae. Will add Accuracy checks eventually
XA:
<pre>Damage = ( Attack's Power + Number of Targets - 1 ) / Number of Targets</pre>
 
==Additional Checks==
Sadness( Damage ):
End If
Return Damage
</pre>
 
 
=Secondary Damage Formulae=
X0:
<pre>
Damage = Attacker's HP
</pre>
X1:
<pre>
Damage = Target's MHP - Target's HP
</pre>
X8:
<pre>
Dice_Count = Attacker's Level / 10
 
If Dice_Count < 2 then
Dice_Count = 2
Elseif Dice_Count > 6
Dice_Count = 6
End If
 
total_dice_roll = 0
For ( d_loop = 0; d_loop < Dice_Count; d_loop++ )
die = [0..5]
all_dice[d_loop] = die
total_dice_roll += die + 1
 
set die visualization based on roll
Loop
 
value_repeat = 0
For ( d_value = 0; d_value < 6; d_value++ )
 
repeat_count = 0
For ( d_loop = 0; d_loop < Dice_Count; d_loop++ )
 
If all_dice[d_loop] = d_value then
repeat_count++
End If
Loop
 
If repeat_count > value_repeat then
value_repeat = repeat_count
End If
 
Loop
 
Damage = value_repeat * 100 * total_dice_roll
</pre>
X9:
<pre>
Damage = Number of Successful Escapes
</pre>
XA:
<pre>
Damage = Target's HP - 1
</pre>
XB:
<pre>
Damage = (Game Time Hours * 100) + (Game Time Minutes)
</pre>
XC:
<pre>
Damage = Target's Kill Count * 10
//This is intended to be used only on players
//This will cause a memory leak if done on enemies
</pre>
Anonymous user

Navigation menu