HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Loading and Unloading Help please :/

07-09-2006, 06:36 PM#1
Modmaker2004
Im having a issue. I have it so that my unit loads into a building which will increase the value of the integer +1 Everytime. But i caint find out where i can get it so it says if unit unloads. I already have it so that it will -1 but caint find a event that lets me use it as unload. Any help?
07-09-2006, 06:59 PM#2
MasterofSickness
Did you search?

Try these:
Link1
Link2
07-09-2006, 08:10 PM#3
Modmaker2004
Right but i dont understand this

A unit is loaded into a transport, and then a unit is issued an order targeting an object(With an orderstring condition for unload)

the target of unload is the UNIT, not the transport. even when you unload by click thier portrait.

Event- Unit is Loaded Into a Transport
Then what? Im confused >_>
07-09-2006, 08:50 PM#4
Alevice
the (Transporting Unit) even response is what you want.
Something like
Trigger:
Melee Initialization
Collapse Events
Unit - A unit Is loaded into a transport
Collapse Conditions
(Transporting unit) Equal to YourTransport
Actions

EDIT: Damn, I misread, hold on a little.

EDIT2: Okay, so you want to check which unit unloads another unit right?

You might want to use any of the unit casts an ability events, check if the ability being cast equals to Unload (on a building, I'd assume it would be 'Adri', you check which is the one you use), and check who was casting unit.
07-09-2006, 09:11 PM#5
Modmaker2004
No heh. What i am doing is Making a building and Worshipers Load into it This would Make my Varible go RedGod+1 Each time one worshiper went in. What i want to do is then When he leaves the Temple (Transporting unit) It would then RedGod-1
07-09-2006, 09:31 PM#6
Alevice
Wouldn't 'check if an unit "casted" Unload' work?
07-10-2006, 03:20 PM#7
The)TideHunter(
Maybe not, because you can click on the unit (on the UI where damage and stuff is) and it will unload that unit, not using an ability.