(Solved) Pulling my hair out plz help
In order for my spell to work the user must already have the ability based of metamorphis however I dont want the icon too appear this spell has to be MUI so no actiavate/deactivate spell for player.
long story short how can I completley hide the ability or is there any other way around my dilema.
The spell is for a Bearwolf. it basically leaps towards the target and transforms midair(which is where im using metamorphis)
heres my triggers
and if you need to see the map here it is.
View attachment Bearwolf.w3x
In order for my spell to work the user must already have the ability based of metamorphis however I dont want the icon too appear this spell has to be MUI so no actiavate/deactivate spell for player.
long story short how can I completley hide the ability or is there any other way around my dilema.
The spell is for a Bearwolf. it basically leaps towards the target and transforms midair(which is where im using metamorphis)
heres my triggers
-
Transformation Leap
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Transformation Leap
-
Actions
- Unit - Pause (Target unit of ability being cast)
- Unit Group - Add (Casting unit) to Transformation_Leap_Ugroup
- Unit - Add Crow Form to (Casting unit)
- Unit - Remove Crow Form from (Casting unit)
- Unit - Pause (Target unit of ability being cast)
- Unit - Turn collision for (Casting unit) Off
- Animation - Change (Casting unit) flying height to 500.00 at 2000.00
- Hashtable - Save Handle Of(Target unit of ability being cast) as 1 of (Key (Casting unit)) in Transformation_Hashtable
- Hashtable - Save 1000.00 as 2 of (Key (Casting unit)) in Transformation_Hashtable
- Hashtable - Save (Angle from (Position of (Casting unit)) to (Position of (Target unit of ability being cast))) as 3 of (Key (Casting unit)) in Transformation_Hashtable
- Hashtable - Save True as 4 of (Key (Casting unit)) in Transformation_Hashtable
-
Events
-
Transformation Moving
-
Events
- Time - Every 0.02 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in Transformation_Leap_Ugroup and do (Actions)
-
Loop - Actions
- Set Transformation_Leap_Loc = ((Position of (Picked unit)) offset by 20.00 towards (Load 3 of (Key (Picked unit)) from Transformation_Hashtable) degrees)
- Unit - Move (Picked unit) instantly to Transformation_Leap_Loc
- Hashtable - Save ((Load 2 of (Key (Picked unit)) from Transformation_Hashtable) - 20.00) as 2 of (Key (Picked unit)) in Transformation_Hashtable
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Load 2 of (Key (Picked unit)) from Transformation_Hashtable) Less than or equal to 650.00
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Load 4 of (Key (Picked unit)) from Transformation_Hashtable) Equal to True
-
Then - Actions
- Hashtable - Save False as 4 of (Key (Picked unit)) in Transformation_Hashtable
- Unit - Add BearForm to (Picked unit)
- Unit - Remove BearForm from (Picked unit)
- Set Transformation_Damage_Loc = (Position of (Picked unit))
- Unit - Create 1 Footman for (Owner of (Picked unit)) at Transformation_Damage_Loc facing Default building facing degrees
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Unit - Add Damage bonus Bearwolf to (Last created unit)
- Unit - Order (Last created unit) to Human Priest - Inner Fire (Picked unit)
- Custom script: call RemoveLocation(udg_Transformation_Damage_Loc)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Load 2 of (Key (Picked unit)) from Transformation_Hashtable) Less than or equal to 350.00
-
Then - Actions
- Unit - Add Crow Form to (Picked unit)
- Unit - Remove Crow Form from (Picked unit)
- Animation - Change (Picked unit) flying height to 0.00 at 2000.00
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Load 2 of (Key (Picked unit)) from Transformation_Hashtable) Equal to 0.00
-
Then - Actions
- Unit - Cause (Picked unit) to damage (Load 1 of (Key (Picked unit)) in (Last created hashtable)), dealing (100.00 + (50.00 x (Real((Level of Transformation Leap for (Picked unit)))))) damage of attack type Spells and damage type Shadow Strike
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (100.00 + (50.00 x (Real((Level of Transformation Leap for (Picked unit)))))))
- Unit Group - Remove (Picked unit) from Transformation_Leap_Ugroup
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_Transformation_Leap_Loc)
-
Loop - Actions
-
Unit Group - Pick every unit in Transformation_Leap_Ugroup and do (Actions)
-
Events
View attachment Bearwolf.w3x
Last edited: