Height Adjustment Not Working? Why?

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>


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
              • Custom script: call RemoveLocation (udg_Pt_BladestormUnitPos)
              • Custom script: call RemoveLocation (udg_Pt_TargetPos)
            • Else - 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
 

Accname

2D-Graphics enthusiast
Reaction score
1,465
its because storm crow is removed before you try to change the height[/QUOT]

you can change the height even if stormcrow has been removed.
actually you dont even need to add/remove it everytime the spell is casted but only at the units creation.
 

lionheadxO

New Member
Reaction score
3
I removed the "remove storm crow form" and it still works fine. Is there a different way that I can change his height? Because I know this skill works if I use other skills, to adjust the height.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top