Psuedocode follows, I apologize for those that aren't code geeks:
Variables:
AAPLoss = Amount of AP lost by the attacker
DAPLoss = Amount of AP lost by the defender
Bid = AP Bid (What the player actually says he bids)
OE = Offensive edge (Total edge the attack has)
DE = Defensive Edge (Total handicap the defense imposes on attacker)
WpnR = Weapon Rank ArmR = Armor Rank OMgE = Offensive Magic Edge (Offensive Edges from magic - Feats, spells,etc)
OE = WpnR + OMgE + OMnE
DE = ArmR + DMgE + DMnE
If (Defender must lose AP) then
DAPLoss = (Bid + (OE - DE) ) * RX
If (Actor must lose AP) then
AAPLoss = Bid * RX
RR
Powered by hypermail