• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

User-defined weight on an object

SeeleyOne

Well-known member
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
 
Dang, that's just something I'd been dealing with fairly recently. I think I'm going to have use that in my local HouseRules file. Thanks a ton!
 
But that requires you to make an actual version of the object in your data set. I came up with the above so that my gaming group can fix some things without having to go to the editor. I don't like putting single-use things (i.e. party-specific) things into the editor. Editing the weight is not an option on items.
 
Back
Top