HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Help With A Trigger

07-30-2002, 11:07 PM#1
Guest
--Events
Unit - A unit owned by Player 1 Aqcuires an item

--Conditions
(Player1[1] has an item type of Katana) = True

--Actions
Player1[1] Drop item type of Short Sword

Variables Used
Player1 is the unit of Player 1 which is set when player 1 chooses his hero

Trigger Objective
To disallow having to swords at the same time
So if he has for example used above
A short sword and a Katana
He will drop the Short Sword

How do you get this to work!?
07-30-2002, 11:17 PM#2
Guest
It looks find to me. Are you sure you're setting your Player1[1] variable correctly?
07-31-2002, 07:15 AM#3
Guest
yes
I've tested the variables and working
07-31-2002, 07:34 AM#4
Guest
dont u need to test if the aquired item is a shortsword first?
07-31-2002, 09:37 AM#5
Guest
No, because the purpose is that he's acquired the katana, so drop the shortsword. If the unit has the shortsword, it should drop, it it doesn't nothing will happen, and nothing should happen.

But, I'd assume you have another trigger for when the unit acquires the short sword to drop the katana? Or is it that if the unit has the katana it can never pick up the short sword again?

If it's the former, I'd make the condition (Manipulated item) is equal to katana. You might want to change it to that anyway. There is the possibility that, even though the unit has acquired the item to activated the trigger, it doesn't actually have it yet.
07-31-2002, 10:09 AM#6
Guest
I just wanna know why wont it work..
Is the objective even possible?
Cause I spent 3 hours on it.
07-31-2002, 01:35 PM#7
3DGuy
ok this is what u do

player[1] acquires an item

acquired item equal to katana

if player[1] has an item of type shortsword, then do drop shortsword
07-31-2002, 03:08 PM#8
Guest
thx bro