• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

lag issue.... and bug

Status
Not open for further replies.
Level 14
Joined
Oct 18, 2008
Messages
595
i have been working on a recent spell i have made (that is not finished)
and i have come across mystery lag..... and my spell fails. i know i didnt set all the variables to actions yet but it should move the targeted unit. Maybe i have missed something, i dunno but if anyone can help here is the map...
 

Attachments

Last edited:
i have been working on a recent spell i have made (that is not finished)
and i have come across mystery lag..... and my spell fails. i know i didnt set all the variables to actions yet but it should move the targeted unit. Maybe i have missed something, i dunno but if anyone can help here is the map...

Couldn't hurt to actually build the trigger.


(The attached map is empty)
 
Hey aaron79, the error is fixed or the map size is fixed?However, I have made some changes.The lag wasnt total removed, but I could see the spell working.

  • init
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Fire Dominance
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • array Equal to 0
        • Then - Actions
          • Trigger - Turn on loop <gen>
        • Else - Actions
      • Set array = (array + 1)
      • Set caster[array] = (Casting unit)
      • Set Target[array] = (Target unit of ability being cast)
      • Set Point_C[0] = (Position of caster[array])
      • Set Point_T[0] = (Position of Target[array])
      • Set Distance[array] = (Distance between Point_C[0] and Point_T[0])
      • Set Speed[array] = 20.00
      • Set runs[array] = 18.00
      • Set height[array] = (Current flying height of Target[array])
      • Set Angle[array] = (Angle from Point_C[0] to Point_T[0])
      • Unit - Add Storm Crow Form to Target[array]
      • Unit - Remove Storm Crow Form from Target[array]
      • Custom script: call RemoveLocation(udg_Point_C[0])
      • Custom script: call RemoveLocation(udg_Point_T[0])
  • loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer array) from 1 to array, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Integer(runs[array])) Greater than 0
            • Then - Actions
              • Set Point_C[array] = (Position of caster[array])
              • Set Point_T[array] = (Position of Target[array])
              • Set Angle[array] = (Angle from Point_C[array] to Point_T[array])
              • Set Formula[array] = (Point_T[array] offset by Speed[array] towards Angle[array] degrees)
              • Unit - Move Target[array] instantly to Formula[array]
              • Custom script: call RemoveLocation(udg_Point_C[udg_array])
              • Custom script: call RemoveLocation(udg_Point_T[udg_array])
              • Custom script: call RemoveLocation(udg_Formula[udg_array])
              • Set runs[array] = (runs[array] - 1.00)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • runs[array] Less than or equal to 0.00
                • Then - Actions
                  • Set array = (array - 1)
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • array Equal to 0
                    • Then - Actions
                      • Set height[array] = 0.00
                      • Set array = (array - 1)
                      • Trigger - Turn off (This trigger)
                    • Else - Actions
                • Else - Actions
 
Status
Not open for further replies.
Back
Top