View Single Post
SeeleyOne
Senior Member
 
Join Date: Nov 2009
Posts: 891

Old September 29th, 2016, 03:33 PM
Sometimes as a user needs to be able to change the weight of an object. For example there are enchanted items that weight less than normal. The easiest fix for this that I came up with was to create an "edge" as follows:

Uniqueness: No
Description: This is used to customize the weight of any equipment that is on the character. This is not really an Edge, and the cost is zero, but Edges allow a user to enter an integer as well as pick from a dropdown list.

Advancement Slots: 0
Omit from Print-outs (checked, unless you have cheater players)
Require Domain Specification (checked)
Domain Term: Weight
Menu #2 Source: All Picks on Hero
Menu #2 Tag Expression: component.Gear & !Equipment.Natural & !Print.NoPrint

Eval Script
Phase: Initialization
Priority: 2101
Code:
var input as string
var weight as number
input = this.field[domDomain].text
weight = input

foreach pick in hero where "component.Gear"
   if (eachpick.uniqindex = field[usrChosen2].chosen.uniqindex) then
      eachpick.field[gearWeight].value = weight
      eachpick.field[gearNet].value = weight
   endif
nexteach

Evil wins because good rolls poorly .... or the players are not paying enough attention to the game.
SeeleyOne is offline   #1 Reply With Quote