Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: HLD_Prophecy on January 14, 2016, 10:46:10 am
-
Hey all!
So I'm trying to use the guidelines laid out in Axem's tutorial (http://www.hard-light.net/wiki/index.php/Tutorial_-_Directive-value_SEXP (http://www.hard-light.net/wiki/index.php/Tutorial_-_Directive-value_SEXP)).
I want to track the number of turrets remaining on this pirate installation. As far as I can tell, I've followed the intructions properly. But it doesn't work.
The Value shown in the directive only changes once. The first time anyone destroys a turret, the value changes from 5 to 4. But any other subsequent turret destruction aren't recorded, and the directive never registers as true. I've attached a screenshot of my event for tracking the turrets.
Can someone please help me out? Did I miss something in the tutorial?
Thanks!
[attachment DELETED!! by Strong Bad]
-
Your repeat count is set to "1". That means the SEXP triggers exactly once, the first time it becomes true. You need to set it to at least 5 for this to work properly.
There may be other magic that needs to be done to prevent it from re-triggering due to the same turret being destroyed, but I'm not sure what that would be...
-
Leave repeat count at 1, set trigger count to 5, set interval time to 0.
-
That magic is handled by the invalidate-argument.
-
Thanks chaps!
Ehm, how do I set the repeat count, trigger count, and interval time? Which Operator are we talking about here?
-
They're not operators; they're options settable on a per-event basis. They're to the right of the event list, below the new/insert/delete event buttons.
-
Thanks, I found the options!
Will test it and make sure it works. :)
EDIT: Great, that fix solved the problem! Thanks a bunch guys. Now I can focus on balancing the mission. :)