• 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.

[Trigger] Why this skill stucks :@

Status
Not open for further replies.
Level 11
Joined
Dec 31, 2007
Messages
780
hey guys... i made an ability coz a guy requested it to me... but i cant find the glitch that makes my hero get stucked after a few executions... so as i am out of ideas ill post the map here so that somebody can tell me where is the problem

+rep for assistance ^^
 

Attachments

  • wolfs2.w3x
    21.6 KB · Views: 39
Level 3
Joined
Jun 6, 2007
Messages
48
I've had a look at it and have found where it freezes:

  • Forward to Target
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set Location[3] = (Position of Target)
      • Set Location[4] = (Position of Caster)
      • Set Location[5] = (Location[4] offset by 40.00 towards (Angle from Location[4] to Location[3]) degrees)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between Location[4] and Location[3]) Greater than 60.00
        • Then - Actions
          • // - Here
          • Unit - Move Caster instantly to Location[5], facing Location[3]
        • Else - Actions
          • Trigger - Run Upside attack <gen> (ignoring conditions)
          • Trigger - Turn off (This trigger)
      • Custom script: call RemoveLocation(udg_Location[5])
      • Custom script: call RemoveLocation(udg_Location[3])
      • Custom script: call RemoveLocation(udg_Location[4])
Your trigger runs flawlessly the first time, the second time around the trigger is setting the casters location every 0.03 seconds so it looks like the unit is disabled or paused but infact it's just getting moved to the same spot quite often. (Try and cast the Channel spell again when your stopped, you'll notice he trys to raise his sword but because he's being moved every 3 miliseconds he can't finish the spell.)
 
Level 11
Joined
Dec 31, 2007
Messages
780
yep... but why?

what i mean... sometimes it randomly stops when he wants to... no matter what condition i use or whatever... he freezes there :/

btw thx for bothering taking a look at it

EDIT: did you try targeting the other creep? not the first... the second murlock... it executes the triggers like 4 times and then stuck again -.- ... i if would care about this, it would be driving me crazy :p
 
I tested the spell yesterday and i noticed that you can put 3 triggers in one(or two, i forgot) so after i did that he did the moves, a bit different, but it worked, but i think its something when you replace a unit with another.
Hmmm, i would sudgest that you check after every trigger if unit is equal to dummy(the second blademaster used) and replace it back to normal and than changing it again to dummy in next trigger. Dunno rethink that. (i"m at school PC so i can"t check it, and yesterday my PC crashed.. )
 
Level 11
Joined
Dec 31, 2007
Messages
780
yesterday i was changing it a little ... but the way it is, i cant see why it gets stuck... if i tell him to move certain offset... why he gets stuck? -.-

ill try to change things a little bit today... and see if it works...

but what bothers me more than anything is that if you target the first murlock, it executes only once. If you target the seconds murlock it executes 4 times... stupid bug
 
Level 11
Joined
Dec 31, 2007
Messages
780
xD... ill try that

EDIT:you wont believe me... but i created a priest in another part of the map... and now it works ¬¬... at least for the priest
 

Attachments

  • wolfs2.w3x
    21.6 KB · Views: 41
Last edited:
Status
Not open for further replies.
Top