HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to not allow certain heroes/players pick up certain items

08-28-2002, 09:06 PM#1
MiCroSlave
Is there a way?

I want to be able to make it so each player (1-4) cannot pick up his own free item, but everyone else can pick it up.

Ex.
Player 1 cannot pick up Item 1, but can pickup Items 2-4.
Player 2 cannot pick up Item 2, but can pick up Item 1,3,4.

Can this be done?
08-28-2002, 11:42 PM#2
Guest
A way you can do this is to make the player always drop the item type you dont want them to have...For example...

Event: Player Owned Unit aquires an item

Condition: Item equal to X or X or X

Action: Drop item X from Hero X

{and if you want}
Display game message (your class prohibits you from using this item)

And repeat this as many items as there are items you dont want that player to have. This way it covers all of the items you dont want them to have. Hope this works for you.
08-29-2002, 12:34 AM#3
MiCroSlave
Event: Player Owned Unit aquires an item

Condition: Item equal to X or X or X

Action: Drop item X from Hero X


Ok, just to clarifiy (I am major Editor Newbie), I have it setup like this:


Events:
Unit - A unit owned by Player 1 (Red) Aquires an item

Conditions:
(Item Being manipulated) Equal to player1item

*Is this correct?

Actions:
Hero - Drop player1item from (Triggering Unit)

*What does I use here? There is nothing that really fits from the drop-down list. Should I use "Hero Manipulating Item" ?
Game - Display to Player Group - Player 1 (Red) the text: You cannot pick up your own item

*This works, kinda. If I try to pick up my own item, it will display the text, but won't drop the item, so I think my "Hero - drop item" action is wrong.

Thanks for the help.
08-29-2002, 10:11 AM#4
wiebbe
simple:

the drop item case:
wait 0.10
Hero - Drop(item being manipluated) from (Triggering Unit)

I have noticed that without the wait, the hero doesnt have the item yet because he "picks" it up, so wait 0.10 fixes that..