lionheadxO
New Member
- Reaction score
- 3
So this is my trigger for a Bladestorm that makes you fly foward. I've got this trigger to work for other spells such as a leap in different directions, but it doesn't work when I activate it with Bladestorm, is it just the way the skill works? Or is there a way to make my guy fly? I'm making Yoshimitsu from Tekken
Trigger:
- Bladestorm
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Bladestorm
- Actions
- Unit Group - Add (Triggering unit) to Unitgrp_Bladestorm
- Set Int_PeriodicCheckBladestorm[(Player number of (Owner of (Triggering unit)))] = 0
- Set BladestormPos = (Triggering unit)
- Unit - Turn collision for (Triggering unit) Off
- Unit - Add Storm Crow Form to (Triggering unit)
- Unit - Remove Storm Crow Form from (Triggering unit)
- Trigger - Turn on Bladestorm Periodic <gen>
- Events
Trigger:
- Bladestorm Periodic
- Events
- Time - Every 0.01 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in Unitgrp_Bladestorm and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Int_PeriodicCheckBladestorm[(Player number of (Owner of (Picked unit)))] Less than 40
- Then - Actions
- Set Int_PeriodicCheckBladestorm[(Player number of (Owner of (Picked unit)))] = (Int_PeriodicCheckBladestorm[(Player number of (Owner of (Picked unit)))] + 1)
- Set Pt_BladestormUnitPos = (Position of (Picked unit))
- Set Pt_TargetPos = (Pt_BladestormUnitPos offset by 15.00 towards (Facing of (Picked unit)) degrees)
- Unit - Move (Picked unit) instantly to Pt_TargetPos
- Set Real_FlyHeight = (200.00 - (Power((20.00 - (Real(Int_PeriodicCheckPounce[(Player number of (Owner of (Picked unit)))]))), 2.00)))
- Animation - Change (Picked unit) flying height to Real_FlyHeight at 0.00
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Int_PeriodicCheckBladestorm[(Player number of (Owner of (Picked unit)))] Equal to 40
- Then - Actions
- Animation - Change (Picked unit) flying height to 0.00 at 0.00
- Unit - Turn collision for (Picked unit) On
- Unit Group - Remove (Picked unit) from Unitgrp_Bladestorm
- Else - Actions
- If - Conditions
- Custom script: call RemoveLocation (udg_Pt_BladestormUnitPos)
- Custom script: call RemoveLocation (udg_Pt_TargetPos)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in Unitgrp_Bladestorm) Equal to 0
- Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- Unit Group - Pick every unit in Unitgrp_Bladestorm and do (Actions)
- Events