HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unique Item

09-26-2006, 05:52 PM#1
Siphonized
I am making this CTF map and I want a Hero to be able to only carry one flag at a time. And the thing is, I want the trigger to go off and stop the unit before he picks it up.

I have a variable that keeps track of whose flag the unit is carrying.
If I pick up another teams flag this would mean I would overwrite the previous flag with the new flags value, and this would f- the game up.

So in short, I need a solution to how to get a hero to NOT pick up an item it has selected to pick up. Without the event "A unit aquires an item".
09-26-2006, 06:08 PM#2
PhoenixFeather
Trigger:
Untitled Trigger 001
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Target item of issued order) Equal to Flag
((Triggering unit) has an item of type Flag) Equal to True
Collapse Actions
Unit - Order (Triggering unit) to Stop

Is this of any use?
09-26-2006, 06:20 PM#3
Siphonized
I just tried that, and it doesn't stop my unit.

It shows the text, but doesn't stop the unit.

Trigger:
One Flag Rule
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
((Triggering unit) has an item of type CTF Flag) Equal to True
(Item-type of (Target item of issued order)) Equal to CTF Flag
Collapse Actions
Unit - Order (Triggering unit) to Stop
Game - Display to (Player group((Owner of (Ordered unit)))) the text: |cffff0000Error!|r ...

I've tried using both Triggering Unit and Ordered Unit and neither works, the Hero keeps moving towards it and picks it up.
09-26-2006, 06:23 PM#4
Siphonized
Nvm, I'm a fuckup.
09-26-2006, 06:26 PM#5
Siphonized
Humm, it only works if I use a Wait before the entire trigger... Very odd.
09-26-2006, 06:47 PM#6
Captain Griffen
Pause/Order/Unpause.
09-26-2006, 07:13 PM#7
Siphonized
Pause did the trick, but I can't use text output in the same trigger.
09-26-2006, 07:40 PM#8
Captain Griffen
Why not? Just pause the unit, order it, unpause the unit. Has no effect on text output.
09-26-2006, 07:52 PM#9
Siphonized
Just doesn't work. It spams the text output like a billion times if I try it.