Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Savage Worlds

Notices

Reply
 
Thread Tools Display Modes
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old December 12th, 2017, 04:20 PM
Ok, I'm working on Savage Rifts, and in it the Glitter Boy Power Armor provides a strength of d12+4 (value of 9) when worn.

I'm trying this:Pretraits/5500
Code:
~Strength starts at value of 2 (d4)
var DiffStr as number
DiffStr = 7 - #trait[attrStr]

if (field[grIsEquip].value <> 0) then
   #traitcreation[attrStr] += DiffStr
   hero.child[attrStr].field[trtMaximum].value += 4
   endif
This successfully provides a strength of D12+4 if strength hasn't had any points put into it (and at a d4).

If strength is at a d6 before equipping the GB armor, Then strength becomes d12+5 when equipped. However, if it is at a d8, it still only goes up to a d12+5. At that point, when unequipped STR becomes a D6 abd there is an attribute point to spend.

Is there a used way to set an attribute to a specific value when an item is equipped?

Thoughts?
Thomas

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #1 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old December 14th, 2017, 08:53 AM
Anyone? Any thoughts?

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #2 Reply With Quote
zarlor
Senior Member
 
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819

Old December 14th, 2017, 08:56 AM
Not from me, yet. I've been mulling it over but I'd have to find some time to really work on it and I've been just too busy. If it helps any I would probably look fro the treatcreation macro on the Wiki or in the source code to see what it's doing and maybe that could give some clues on a way to set a value without trying to do the Diff value stuff.

Lenny Zimmermann
Metairie, LA, USA

Data files authored (please let me know if you see any issues with any of these if you have/use them):
Official (In the downloader)
50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome
Coming Eventually
Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me)
zarlor is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 08:58 PM.


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