• 🏆 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!

Event Response Myths

Status
Not open for further replies.
Level 12
Joined
Feb 22, 2010
Messages
1,115
"All event responses are lost except triggering unit"

Who said this non-sense first?


Attacked Unit: Same thing with triggering unit
Attacking Unit: Working correctly

Buying Unit: Working correctly
Selling Unit: Working correctly
Sold Unit: Working correctly
Sold Item: Working correctly



I didn't want to test all these spell event responses, just don't use them
because they have weird behaviors.

Casting Unit: Usable after wait, but NOT MUI(like global variable)Has same behavior with all spell casting events.
Ability Being Cast: Usable after wait, but NOT MUI(like global variable)Has same behavior with all spell casting events.

-Begins Channeling Event-
Target Unit of Ability Being Cast: Works, but Unable to use after any wait
Target Point of Ability Being Cast: not tested
Target Item of Ability Being Cast: not tested
-Begins Cast Ability Event-
Target Unit of Ability Being Cast: Works, but Unable to use after any wait
Target Point of Ability Being Cast: not tested
Target Item of Ability Being Cast: not tested
-Starts Effect Event-
Target Unit of Ability Being Cast: Works, but Unable to use after any wait
Target Point of Ability Being Cast: sometimes works like casting unit, sometimes doesn't work after wait?
Target Item of Ability Being Cast: not tested
-Stop Cast Event-
Target Unit of Ability Being Cast: Works, but Unable to use after any wait
Target Point of Ability Being Cast: Works, but Unable to use after any wait
Target Item of Ability Being Cast: not tested
-Finish Cast Event-
Target Unit of Ability Being Cast: Doesn't work at all
Target Point of Ability Being Cast: Doesn't work at all
Target Item of Ability Being Cast: not tested


Cancelled Structure: Unable to use after any wait, probably because a cancelled structure gets removed from game.
Constructing Structure:Working correctly, but if structure cancelled while wait time it will return null.
Constructed Structure: Working correctly

Damage Source: Working correctly
Damage Taken: Working correctly

Decaying Unit: Working correctly

Dying Unit: Working correctly
Killing Unit: Working correctly

Hero Manipulating Item:Working correctly
Item Being Manipulated:Working correctly

Leaving Unit: Working correctly
Entering Unit: Working correctly

Leveling Hero: Working correctly

Loading Unit: Working correctly
Transporting Unit: Working correctly

Learning Hero: Working correctly
Learning Skill Level: Working correctly

Ordered Unit: Working correctly
Issued Order: ???
Target Unit of Issued Order: Usable after wait, but NOT MUI(like global variable)
Target Item of Issued Order: Usable after wait, but NOT MUI(like global variable)
Target point of Issued Order: Usable after wait, but NOT MUI(like global variable)

Ownership-changed Unit:Working correctly
Previous Owner: Working correctly

Resarching Unit: Working correctly

Revivable Hero: Who uses this really?
Reviving Hero: Who uses this really?

Summoned Unit: Working correctly
Summoning Unit: Working correctly

Targeted Unit: Working correctly(I think)

Trained Unit: Working correctly

Entered Chat String: Working correctly(I think)
Matched Chat String: Working correctly(I think)

Tournament Time Remaining: not tested???

Saved-game filename: not tested

Edit: Added some gosu colors.
 
Last edited:
Level 17
Joined
Apr 27, 2008
Messages
2,455
If my old list is still right, you forget these ones which are not MUI (can't remember if they return null or the last event after some wait) :

ability being cast
issued order
target point of ability being cast

For the ability stuff, IIRC it was linked to the end of channel or something like that, i mean it's not random it depends the characteristics of the ability.

Sold item should be the same as cancelled structure. It is not ?!
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
ability being cast

Thanks, added.

issued order

Thanks, added.But I don't understand something.I use this trigger:

  • Event
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (String((Issued order)))
      • Wait 3.00 seconds
      • Game - Display to (All players) the text: (After wait: + (String((Issued order))))
If I stormbolt something and order unit to attack, It prints this

thunderbolt
attack
After wait: attack
After wait: attack

but if I stormbolt and move(smart or move doesn't matter) it prints,

thunderbolt
move
After wait: thunderbolt
After wait: move

also if I stormbolt something and attack a target and if my mountain king hits a bash when attacking a target it prints

thunderbolt
attack
After wait:
After wait:


target point of ability being cast

This in in the list, I said this behaves weird because it acts differently with finishcasting event and other spellcast events.Also ,if I remember correctly, when I tested with starts effect of an ability event it was returning null after wait if casting unit finishes spell.But it is returning last used value if casting unit still continues spell (channeling spells)
 
Status
Not open for further replies.
Top