- Joined
- Jun 20, 2013
- Messages
- 769
Hello, i'm using the tutorials to learn about triggers and got to the loop tutorial. To not use Integer A to do actions instead of the version with their own variable.
The idea of this is, make the dummy cast firebolt 3 times; Text appear 3 times, but Firebolt is cast only once, instead of three times, so i'm in a lost about what i did wrong.
The Caster ability is based on Acid Bomb.
Dummy is based on Firebolt.
And the Dummy unit was made following all the recommendations for values.
The idea of this is, make the dummy cast firebolt 3 times; Text appear 3 times, but Firebolt is cast only once, instead of three times, so i'm in a lost about what i did wrong.
The Caster ability is based on Acid Bomb.
Dummy is based on Firebolt.
And the Dummy unit was made following all the recommendations for values.
-
Repeating Single Target Missile
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Repeating Arrow (Caster)
-
-
Actions
-
Set RSTM_Caster = (Triggering unit)
-
For each (Integer RSTM_Integer) from 1 to 3, do (Actions)
-
Loop - Actions
-
Game - Display to (All players) for 15.00 seconds the text: Loop 1 to 3
-
Unit - Create 1 Missile Dummy (Caster 1) for (Owner of RSTM_Caster) at (Position of RSTM_Caster) facing Default building facing degrees
-
Unit - Add Firebolt (Dummy) to (Last created unit)
-
Unit - Order (Last created unit) to Neutral - Firebolt (Target unit of ability being cast)
-
Unit - Hide (Last created unit)
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
-
-
-
Attachments
Last edited: