Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Culhwch
Member
 
Join Date: Jan 2007
Posts: 48

Old May 7th, 2007, 10:34 PM
I'm adding some new armor material types, and naturally I hit one that reduces the weight of an armor, but the reduction is not a mathematical function (like mithral's weight/2). Luckily, there's only a few base armors that the material can be applied too, and they all have different weights. But I can't seem to access the base armor's weight; container.parent.field[gWeight].value is returning a value of 0. How would I get the weight of the armor I'm working with?

Thanks.
Culhwch is offline   #1 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old May 8th, 2007, 10:06 PM
At 11:34 PM 5/7/2007, you wrote:
Quote:
I'm adding some new armor material types, and naturally I hit one that reduces the weight of an armor, but the reduction is not a mathematical function (like mithral's weight/2). Luckily, there's only a few base armors that the material can be applied too, and they all have different weights. But I can't seem to access the base armor's weight; container.parent.field[gWeight].value is returning a value of 0. How would I get the weight of the armor I'm working with?
It sounds like you are doing things right in terms of the mechanics. Most likely, the timing of your script is causing it to be evaluated BEFORE the "gWeight" field is being updated. The script that is setting that field is being evaluated in phase "Prelevel" at priority "5000". Make sure your script occurs in either a later phase or at a later priority within the same phase. That will ensure that the value has been setup properly before you access it.
rob is offline   #2 Reply With Quote
Reply


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 12:49 AM.


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