So I know how to destroy a point using a quick custom script if it is not an array, and even if it is an array with integers. but this is my spell. I don't know how to destroy the point given to the player, and I don't want to destroy all points in the array, since I want it to be MUI. I don't know how to make it refer to Player Number of Owner of Casting Unit for the index #.
-
Krep Ki Suj Time Warp
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Time Warp
-
-
Actions
-
Game - Display to (All players) the text: cast
-
Set uniqueloc[(Player number of (Owner of (Casting unit)))] = (Position of (Casting unit))
-
Set uniquehp[(Player number of (Owner of (Casting unit)))] = (Integer((Life of (Casting unit))))
-
Wait 5.00 seconds
-
Unit - Reset ability cooldowns for (Casting unit)
-
Unit - Move (Casting unit) instantly to uniqueloc[(Player number of (Owner of (Casting unit)))]
-
Special Effect - Create a special effect at temploc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
-
Special Effect - Destroy (Last created special effect)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Casting unit) is alive) Equal to True
-
-
Then - Actions
-
Else - Actions
-
Skip remaining actions
-
-
-
Set regainedhp = (uniquehp[(Player number of (Owner of (Casting unit)))] - (Integer((Life of (Casting unit)))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
regainedhp Greater than 0
-
-
Then - Actions
-
Else - Actions
-
Skip remaining actions
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Time Warp for (Casting unit)) Equal to 1
-
-
Then - Actions
-
Set regainedhp = (regainedhp x ((1 / 4) + ((Intelligence of (Casting unit) (Include bonuses)) x (1 / 1000))))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Time Warp for (Casting unit)) Equal to 2
-
-
Then - Actions
-
Set regainedhp = (regainedhp x ((35 / 100) + ((Intelligence of (Casting unit) (Include bonuses)) x (1 / 1000))))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Time Warp for (Casting unit)) Equal to 3
-
-
Then - Actions
-
Set regainedhp = (regainedhp x ((1 / 2) + ((Intelligence of (Casting unit) (Include bonuses)) x (1 / 1000))))
-
-
Else - Actions
-
-
Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + (Real(regainedhp)))
-
-