• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

New item material

Provos

Well-known member
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
 
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.
 
Under custom weapons. When trying to choose what material then weapon is made out of.
 

Attachments

  • Materials.jpg
    Materials.jpg
    274.3 KB · Views: 4
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
 
Back
Top