Heyo. I'm very new (~2 days of exp) to the WC3 editor. I'm no stranger to coding, and understand basic things like triggers, spell customization, regions, etc., but am clearly missing a few key points unique to the WC3 engine. Was wondering, how could I make... say, a bale of hay catch fire, and have it consistently damage units in range of it?
This is what I have set up right now; a simple region surrounding a fire doodad. The unit steps inside, and takes 5 damage.
It works, and the unit takes damage. Problem here, is that I'm struggling to make this loop until the unit leaves the trigger. Right now, the unit is ticked for damage a single time, nothing further.
Like sure, this makes it loop, but then I just keep taking damage forever, even after I leave the region. How could I go about turning a loop like this off? Could I have it check to see if the unit is inside of a region, and have it only function if that returns true?
Ty!
This is what I have set up right now; a simple region surrounding a fire doodad. The unit steps inside, and takes 5 damage.

It works, and the unit takes damage. Problem here, is that I'm struggling to make this loop until the unit leaves the trigger. Right now, the unit is ticked for damage a single time, nothing further.

Like sure, this makes it loop, but then I just keep taking damage forever, even after I leave the region. How could I go about turning a loop like this off? Could I have it check to see if the unit is inside of a region, and have it only function if that returns true?
Ty!