• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

lag issue.... and bug

Status
Not open for further replies.
Level 14
Joined
Oct 18, 2008
Messages
599
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

  • Fire Dominance.w3x
    14.4 KB · Views: 36
Last edited:
Level 6
Joined
Mar 20, 2008
Messages
208
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)
 
Level 8
Joined
Aug 4, 2008
Messages
279
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.
Top