Senior Member
Join Date: Jun 2010
Location: Florida
Posts: 235
|
So I am working on file for Beasts and Barbarians and stumped myself building this Edge: Hoplite Training.
In a nutshell: Quote:
|
|
#1 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
Okay, I have had a chance to test this code to make sure that it works before sharing it.
Phase: Pre-Traits Priority: 5000 Code:
var weight as number weight = 0 ~ Get total weight from equipped armor foreach pick in hero from Armor where "Equipped.Equipped" weight += eachpick.field[gearWeight].value nexteach ~ Get total weight from equipped shields foreach pick in hero from Shield where "Equipped.Equipped" weight += eachpick.field[gearWeight].value nexteach ~ Apply the half of the total as a reduction to total encumbrance. weight = round(weight / 2,0,-1) perform #resspent[resEncumb,-,weight,"Reduced Weight"] Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#2 |
|
|