[EO 3.0] What does this snip mean?

It is under modCombat in the server.

' take away armour

	 Damage = Damage - rand(1, (Npc(npcNum).stat(Stats.Agility) * 2))

What exactly does that line do? Reason being that I’m trying to rewrite the formulas, and change stats to make a difference from bonuses that armours give.

Looks like it takes away a bit of damage from your attack on the NPC by an amount that’s dependent on the NPC’s agility. The comment is misleading :P.

Thanks, that commented line was kind of throwing me off…I didn’t want to put the wrong formula there lol.

Log in to reply