• 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

Order of operations

Erich

Well-known member
I'm trying to wrap my head around how Hero Lab times edges and hinderences.
If I have the rich edge, which multiplies starting funds by three, and then take the disowned hinderence, which reduces the starting funds by half, I assume that I want to add the edge first then add the hinderence.
Is this done by setting the priority on the edge/hinderence?
For example, rich set to 5000 and the disowned to 5001.

Thanks
-Erich
 
That would be my guess, or you could also use the "Timing" button if you know what "script" to run yours before or after. However, I've never actually had issues with that before. I think it does Edges then Hindrances, but I'm not positive (they may talk about that on the Wiki, and in my Code Samples thread it tells you were to go for the better section of the local help file that I know talks a bit about timing, which I may look at more closely later.)

As for which way takes precedent, however, you could also ask on the Pinnacle forum for official clarification. Clint is awesome about getting back with official rulings in a very timely manner.
 
OK, then here's the problem I'm having.
I add rich to a character, it has this script:

herofield[acCashMult].value += 2
it is set to phase setup, priority 4000 and index 1.

this edge acts as expected, setting wealth to £15 which is 3 times the starting value of £5.

I then add disowned, it has this script:

herofield[acCashMult].value = .5
It is set to phase setup, priority 5000 and index 1.

The expected behavior is that it will change the wealth to £7.5, which is half of the £15 pounds the rich edge gives.
What is happening is that the wealth is being set to £2.5, which is half of the basic starting wealth of £5.

Any ideas?

Thanks
-Erich
 
Definitely getting further into the weeds than I've generally gone yet. But, you might try looking at the timing report to compare the two in there and see if it gives some clues on what scripts are running in there and maybe you can then set them to run in the correct order. One way to pull that report up is to go to the appropriate Edge or Hindrance and on the Eval Script screen hit the Timing button then click on the View button to see the report. Maybe search for the UnigueIDs of your Edge and Hindrance to see if you can work it out from there?
 
Oh wait, Erich, on the second line you have herofield[acCashMult].value set to being EQUAL to exactly .5, which would overwrite any previous modifiers in the acCashMult field (you added +2 to it before? So what! I want it to now only be .5! Muuhahahah!). I think you need to change it to += .5? Which is probably what Cape is saying... I think.
 
WHOO HOOO!!!
I got the poverty/disowned/rich/very rich combo working.
It turns out I needed to use *=, so we were on the right track.

-Erich
 
Last edited:
Great Job - Can't for your file - I have been playing Space1889 since GDW brought it out back in the day and have been looking forward to running it in Savage Worlds.
 
Again, one of those when I was in too much of a hurry. Zarlor was obviously exactly right, and so were you. Let me add my WooHoo!
 
Back
Top