- Joined
- Mar 9, 2016
- Messages
- 5
Hello, I have a problem regarding a custom spell I made for a hero (Gnoll Chieftain) called "Gnoll Patrol". The spell in question summons different Gnoll-Type units that last forever to fight alongside the Gnoll Chieftain. In order to make the spell summon different units, I made the main Ability that the hero learns summon Melee Gnolls units, then I made a sub-spell that a dummy uses to summon the other Ranged Gnoll units at the same time (At level three another sub-ability is used to summon another type of unit). The problem however is that the units that the dummy summons don't last forever, while the ones that Gnoll Chieftain summons do. Is there a certain trigger I have to use that makes the units stay forever or is there a certain data field I forgot to change?
Here is the trigger:
Here is the trigger:
-
Gnoll Patrol Spell
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Gnoll Patrol [Melee]
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Gnoll Patrol [Melee] for (Casting unit)) Equal to 1
-
-
Then - Actions
-
Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
-
Unit - Add Gnoll Patrol [Ranged] to (Last created unit)
-
Unit - Order (Last created unit) to Orc Far Seer - Feral Spirit
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Gnoll Patrol [Melee] for (Casting unit)) Equal to 2
-
-
Then - Actions
-
Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
-
Unit - Add Gnoll Patrol [Ranged] to (Last created unit)
-
Unit - Set level of Gnoll Patrol [Ranged] for (Last created unit) to 2
-
Unit - Order (Last created unit) to Orc Far Seer - Feral Spirit
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
-
Else - Actions
-
Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
-
Unit - Add Gnoll Patrol [Ranged] to (Last created unit)
-
Unit - Add Gnoll Patrol [Special] to (Last created unit)
-
Unit - Set level of Gnoll Patrol [Ranged] for (Last created unit) to 3
-
Unit - Order (Last created unit) to Orc Far Seer - Feral Spirit
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
-
-
-
-
-