• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

what is wrong?

Status
Not open for further replies.
Level 9
Joined
Jun 26, 2005
Messages
509
i made this trigger, and when ever i use it, warcraft crash to desktop with no error messages.

  • booster
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(stop))
    • Actions
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Unit - Move (Ordered unit) instantly to ((Position of (Ordered unit)) offset by 20.00 towards (Facing of (Ordered unit)) degrees)
          • Wait 0.10 seconds
 
well, i'm not sure, but maybe the "move instantly" action automaticaly give a stop order to the unit (for exemple, when the unit move, it is moved and stopped)

if i'm right, you've created and infinite loop:
when a unit receive stop order, you give it 20 stop order...
 
i made this trigger, and when ever i use it, warcraft crash to desktop with no error messages.

  • booster
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(stop))
    • Actions
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Unit - Move (Ordered unit) instantly to ((Position of (Ordered unit)) offset by 20.00 towards (Facing of (Ordered unit)) degrees)
          • Wait 0.10 seconds

From what i understand the unit will just move to it's current position, crashing the game, please expand on what you would like to happen.
 
i made the unit cast an ability, thats all i changed and added leak remove.

i want to make a trigger that when a unit uses this ability it will make them go zoom fast on where thier facing, so far what is happening now is, when a unit uses this ability it makes them move to center of map, the position of triggering unit is not working.
 
This worked for me:
  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to Divine Shield
  • Actions
    • For each (Integer A) from 1 to 20, do (Actions)
      • Loop - Actions
        • Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 30.00 towards (Facing of (Triggering unit)) degrees)
Change divine shield to the name of your spell.
 
why dont u just make the trigger so it moves the unit then add a wait and then copy n paste that 20 times

unit starts ability (or finishes)

move unit offset by 20
wait 0.01 (or w.e)
move unit offset by 20
wait 0.01 (or w.e)
move unit offset by 20
wait 0.01 (or w.e)

etc... 20 times
 
Deathclaw24, his trigger was crashing the game

doing exactly the same thing with an other paraphrase won't change anything

the move action order the unit to stop, so you can't use a move action in a stop order event detect, that make an infinite recursivity:
he order the unit to stop, that's run the trigger
the trigger order the unit to stop 20 time, that's rerun the trigger 20 time
the 20 triggers order the unit to stop 20x20 time
20x20x20
20x20x20x20
20x20x20x20x20
and it's never end until warcraft overflow the ram and crash...

PS: i'm not sure of all that, i haven't checked this
 
Status
Not open for further replies.
Back
Top