- Joined
- Mar 31, 2012
- Messages
- 169
I'm relatively new when it comes to the World Editor's triggering functionalities (coming from over a decade of Brood War modding) and I'm having difficulties setting up a variant of Critical Strike that deals flat damage and leaves a buff that deals damage over time. The flat damage was easy enough (part of the GUI for the ability in the Object Editor), but it's the DoT that's giving me trouble at the moment. I spent a few hours researching and experimenting and wound up with the mess you see below.
Obviously enough to anyone who's been around triggers for a while, this is hardly 'safe' code, mostly with regards to the 'attacked unit' being referenced when what I really need is a check to make sure the unit still has the buff before the damage is dealt to it and making sure that that unit is the one sustaining damage. Otherwise it just gets overwritten if the buff is applied to a second target, and so on and so forth.
Is there an obvious solution to my problem or is this something that's more convoluted?
Thanks a lot for your assistance.

Obviously enough to anyone who's been around triggers for a while, this is hardly 'safe' code, mostly with regards to the 'attacked unit' being referenced when what I really need is a check to make sure the unit still has the buff before the damage is dealt to it and making sure that that unit is the one sustaining damage. Otherwise it just gets overwritten if the buff is applied to a second target, and so on and so forth.
Is there an obvious solution to my problem or is this something that's more convoluted?
I swear I've seen this before, but I'm wondering if it's possible to lock out portions of the map (via pre-placed boundaries or what have you) and then expand them in the middle of the game. If this isn't possible I can just create a few copies of the map, since I'm working on a single player campaign, and just use the larger copy when the player returns to that map and have unlocked the new zone.
Thanks a lot for your assistance.