Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Savage Worlds (http://forums.wolflair.com/forumdisplay.php?f=59)
-   -   User-defined weight on an object (http://forums.wolflair.com/showthread.php?t=56680)

SeeleyOne September 29th, 2016 03:33 PM

User-defined weight on an object
 
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


zarlor September 29th, 2016 04:57 PM

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!

CapedCrusader September 30th, 2016 02:49 PM

I usually just create a copy in the editor and change the weight on the copy.

SeeleyOne September 30th, 2016 03:36 PM

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.


All times are GMT -8. The time now is 11:17 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.