- Joined
- Feb 1, 2024
- Messages
- 44
Hi, I'm making a spell which is similar to Mirror Image but instead it will create more than 10 illusions at a time. Even if I can change the number in Object Editor high than 10, it will always create 9 and my hero will vanish into nowhere with invulnerability.
So I consecutively create dummies to cast mirror image with less than 10 illusions at a time until it reachs the desired number of illusions but the problem is the last created dummy is not removed! So when that dummy dies enemy also gains bounty and experience.
The slight delay between casts is tolerable but do you have any suggestions to remove the last dummy or achieve the same result?
So I consecutively create dummies to cast mirror image with less than 10 illusions at a time until it reachs the desired number of illusions but the problem is the last created dummy is not removed! So when that dummy dies enemy also gains bounty and experience.
The slight delay between casts is tolerable but do you have any suggestions to remove the last dummy or achieve the same result?
-
Fymryn Discoporate
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Fymryn_Discoporate
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
FymrynDiscoporate Less than 2
-
-
Then - Actions
-
Wait 0.08 seconds
-
Set FymrynDiscoporate = (FymrynDiscoporate + 1)
-
Unit - Create 1 Fymryn Dummy for Player 1 (Red) at ((Position of Fymryn) offset by 150.00 towards 90.00 degrees) facing (Facing of Fymryn) degrees
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Hero - Set (Last created unit) Hero-level to (Level of Fymryn), Hide level-up graphics
-
Set FymrynDummy = (Last created unit)
-
Unit - Add Fymryn_Discoporate to (Last created unit)
-
Unit - Order (Last created unit) to Orc Blademaster - Mirror Image
-
Wait 0.09 seconds
-
Unit - Remove (Last created unit) from the game
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
FymrynDiscoporate Equal to 2
-
-
Then - Actions
-
Unit - Remove FymrynDummy from the game
-
Set FymrynDiscoporate = 0
-
-
Else - Actions
-
-
-
-
-