HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A loop within a trigger, requiring no Run Trigger action?

11-18-2003, 09:28 PM#1
YellowSubmarine
Okay, I put this in Grater's custom aura topic in the repository, but got no response, so I'm asking here.

I'm making a custom aura that applies to enemy units, adding a negative version of Runed Bracers to each. I want the ability to be added to each unit X number of times, where X is the hero's current level of the spell. Normally, I would make a variable and set it equal to the level, then use Run This Trigger and add the ability and subtract 1 from the variable, running it until the variable hits 0.

The problem is, if I use Run Trigger in that periodic trigger used to make a custom aura, the game crashes. How can I create such a loop within a trigger without using Run Trigger?
11-18-2003, 09:37 PM#2
Eriond
If I understand your post, this is what you should do.

Use the Function

Loop Integer 1 to A , where A is an integer variable, that levels up with the spell. Put the things you want to loop in underneath the loop.
11-18-2003, 10:06 PM#3
YellowSubmarine
That works, thanks.