HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

BUG FREE method of detecting unloading of units: and event responces to match!

06-02-2004, 10:59 PM#1
LegolasArcher
Events:
Unit - A unit Is issued an order targeting an object

Conditions:
(Issued order) Equal to (Order(unload))

Event Responces:
Ordered Unit = The transporting unit
Target Unit of Issued Order = the unit unloaded
This will detect when a player clicks on a portait of a unit to unload it. If they "Unload All", you will need to detect that in a different way, or prefably trigger it using a dummey ability (if there is enough demand for one, I'll try and slap something together).

This took ALOT of expermentation and time, so please use the reputation feature if you found it useful.
06-02-2004, 11:05 PM#2
Vexorian
Orders aren't that flawless but when there is n't other way they are good, I used orders to detect searing arrows too
06-03-2004, 12:09 AM#3
LegolasArcher
I agree with the orders comment, and for many things there aren't a good solution at all (such as triggered spells, where you would use Begins/Finishes casting an ability), but I don't think there is any other way to do this, and it's alot more bug-free than any alternatives (or atleast any I've seen).

Hopefully Blizard could add this event and event responces, sicne it can be so easily done.
06-03-2004, 12:09 AM#4
LegolasArcher
I agree with the orders comment, and for many things there aren't a good solution at all (such as triggered spells, where you would use Begins/Finishes casting an ability), but I don't think there is any other way to do this, and it's alot more bug-free than any alternatives (or atleast any I've seen).

Hopefully Blizard could add this event and event responces, sicne it can be so easily done.

Anyway, thanks for the reply, Lord Vexorian (BTW, I loved the beta I tried of your Hero Arena a while ago; I should really nab the new copy)!
04-08-2005, 11:15 PM#5
Tear25
Please post how you detected when the unit used the unload ability. I tried using
EVENT
unit begins casting an ability
CONDITION
ability being cast equal to unload unit (zeppelin transport)
ACTION
whatever..

and it carries out the action as soon as you click on where to unload.. so can you tell me please how to make it so when the unit is actually unloaded the trigger happens?
04-08-2005, 11:36 PM#6
Tear25
OK, I have realized that if you make the event "unit finishes casting an ability" it will work for my purposes.. im not sure if it works for multiple units in the transport but I would imagine it would. Oh and thanks a lot for the original post, it was great help!
04-09-2005, 03:18 PM#7
johnfn
Umm, in the future from now on please try not to revive posts over 1 week old, just make a new thread about them.