Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Provos
Senior Member
 
Join Date: Mar 2011
Location: USA
Posts: 132

Old September 23rd, 2011, 11:13 PM
Me again.
I am having trouble with adding in some new materials for weapons and armor. I can adjust damage and weight with no problems but I cannot get the item costs to change. Here is my eval script
Code:
Phase First Priority 10000 index 1
~ Divide our weight by 2
    container.parent.field[gWeight].value /= 2


~ Reduce our damage by 1.
      container.parent.field[wDamBonus].value -= 1


~ Set our 'general cost' field to the items cost times 0.5
  container.child[gCustMagic].field[gCustCost].value *= 0.5
As always any help is appreciated
Provos is offline   #1 Reply With Quote
Provos
Senior Member
 
Join Date: Mar 2011
Location: USA
Posts: 132

Old September 27th, 2011, 06:04 PM
Anyone have any ideas on how to do this?
Provos is offline   #2 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 29th, 2011, 02:55 PM
Let me fiddle with this later on after I am finished with my current thing and I'll get back to you.
Lawful_g is offline   #3 Reply With Quote
Provos
Senior Member
 
Join Date: Mar 2011
Location: USA
Posts: 132

Old September 29th, 2011, 05:05 PM
One of my problems is that the develop tab enable data file debugging does not work on the pop up windows so there seems to be no way to see the field names.
Provos is offline   #4 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 29th, 2011, 07:33 PM
Of which pop up windows do you speak?
Lawful_g is offline   #5 Reply With Quote
Provos
Senior Member
 
Join Date: Mar 2011
Location: USA
Posts: 132

Old September 29th, 2011, 07:48 PM
Under custom weapons. When trying to choose what material then weapon is made out of.
Attached Images
File Type: jpg Materials.jpg (274.3 KB, 4 views)
Provos is offline   #6 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 29th, 2011, 08:03 PM
Ok, so looking at the different materials in the program it looks like there is one material that multiplies the base item cost (which is what you're shooting for, right?). Cold Iron doubles the base item cost and has this eval script:

First 10000
~ Double our weapon cost.
container.child[gCustMagic].field[gCustSCost].value *= 2

Comparing that to the relevant portion of your code:

container.child[gCustMagic].field[gCustCost].value *= 0.5

It seems that the only problem is that you are multiplying the "gCustCost" field, but you should be multiplying the "gCustSCost" field
Lawful_g is offline   #7 Reply With Quote
Provos
Senior Member
 
Join Date: Mar 2011
Location: USA
Posts: 132

Old September 29th, 2011, 08:23 PM
Thanks, wow, I feel dumb that I missed that.

Oh, it works now.
Provos is offline   #8 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 06:10 AM.


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