Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Savage Worlds
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:41 PM.


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