- Joined
- Aug 31, 2011
- Messages
- 125
I have created a spell called Invulnerable Field and it has leaks, i know , but anyways i removed leaks and stuff and now the spell can be casted more than one time at a time . But! i am running into a problem. Its just the extra Special Effects tho, but even still what it does is...
When the spell is casted One time at a time: Success
When the spell is casted Two times/More at a time: Failed, Reason: When it it casted at first the special effects in the middle (Tome of Retraining) it does good, but once someone else uses it, the person who is casting it first, there special effects are gone and it moves instantly to the second person's special effect area... I would also like to know if i can improve the main trigger of it also, like leaks and stuff.
Heres the Trigger:
Andddd,,, thats it . Please tell me how i can improve the spell and the special effects trigger. Thanks in advanced. ~xIceShotx
When the spell is casted One time at a time: Success
When the spell is casted Two times/More at a time: Failed, Reason: When it it casted at first the special effects in the middle (Tome of Retraining) it does good, but once someone else uses it, the person who is casting it first, there special effects are gone and it moves instantly to the second person's special effect area... I would also like to know if i can improve the main trigger of it also, like leaks and stuff.
Heres the Trigger:
-
Invulnerable Field
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Invulnerable Field
-
Actions
-
For each (Integer A) from 1 to 72, do (Actions)
-
Loop - Actions
- Unit - Create 1 Laser Effects (Hidden) for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 700.00 towards (10.00 x (Real((Integer A)))) degrees) facing Default building facing degrees
- Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Trigger - Run Special Effects <gen> (ignoring conditions)
- Unit - Create 1 Invulnerable User for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
- Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
- Set Laser_Taker[1] = (Last created unit)
- Hero - Set (Last created unit) Hero-level to 6, Hide level-up graphics
- Unit - Add Invulnerable Field (Unit) to (Last created unit)
- Unit - Order (Last created unit) to Orc Shadow Hunter - Big Bad Voodoo
- Unit - Create 1 Laser Taker for Neutral Hostile at (Position of (Triggering unit)) facing Default building facing degrees
- Set Laser_Taker[2] = (Last created unit)
- Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
-
For each (Integer A) from 1 to 72, do (Actions)
-
Loop - Actions
- Unit - Create 1 Laser Effects for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 700.00 towards (30.00 x (Real((Integer A)))) degrees) facing Default building facing degrees
- Unit - Order (Last created unit) to Human Blood Mage - Siphon Mana Laser_Taker[2]
- Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Set Position = (Triggering unit)
- Set PositionReal = (Position of Position)
- Set UnitGroup = (Units within 700.00 of PositionReal matching (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True))
- Unit Group - Pick every unit in UnitGroup and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing 300.00 damage of attack type Spells and damage type Normal)
- Custom script: call RemoveLocation(udg_PositionReal)
- Custom script: call DestroyGroup(udg_UnitGroup)
-
For each (Integer A) from 1 to 72, do (Actions)
-
Events
-
Special Effects
- Events
- Conditions
-
Actions
-
For each (Integer B) from 1 to 25, do (Actions)
-
Loop - Actions
- Wait 1.00 seconds
- Special Effect - Create a special effect at (Position of Laser_Taker[1]) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
-
For each (Integer B) from 1 to 25, do (Actions)