HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need a little help with items please

06-02-2006, 02:24 PM#1
AtOmIc_PeAnUt
Hihi, what I would like to know is whether it is possible to stop certain unit types from picking up certain item types, e.g. so a warrior can't pick up a spell tome, as a mage can't pick up a huge sword etc... I'm sorry if this is a noobish question
06-02-2006, 02:46 PM#2
PerfectlyInsane
Trigger:
Collapse Events
Unit - A unit Acquires an item
Collapse Conditions
(Item-type of (Item being manipulated)) Equal to Sword
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Unit-type of (Triggering unit)) Equal to Mage
Actions
06-02-2006, 03:11 PM#3
AtOmIc_PeAnUt
But would that actually stop the unit picking it up?
06-02-2006, 03:35 PM#4
Captain Griffen
Add an action to make him drop the item.
06-02-2006, 03:40 PM#5
The)TideHunter(
This is how i would do it:
Its quite the same
Trigger:
Drop Sword
Collapse Events
Unit - A unit Acquires an item
Collapse Conditions
(Item-type of (Item being manipulated)) Equal to Sword
(Unit-type of (Triggering unit)) Equal to Mage
Collapse Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Game - Display to (All players) for 10.00 seconds the text: (Your class dosent let you use + (Name of (Item being manipulated)))
06-03-2006, 08:57 AM#6
AtOmIc_PeAnUt
OK, lol, sorry for being a pain, but what about tomes? They dissapear when they are picked up so I couldn't use that action seeing as their will be no item left to drop.
06-03-2006, 09:22 AM#7
PerfectlyInsane
I left the second part blank because there is alot of ways you can handle it


now wont diablo II be silly if your playing as a barb.. and you kill Baal.. and he drops a windforce.. and you can't pick it up becuase your not an amazon
06-03-2006, 12:10 PM#8
AtOmIc_PeAnUt
No, that's not my point lol. It would seem silly if for example a warrior picked up a tome for a spell he can't learn (because he's a warrior) so the tome just vanishes, i.e. is used automatically with out going into the inventory first, and takes no effect, when it would be much better if he couldn't pick it up in the first place, and it is left there until a mage comes along...
06-03-2006, 12:48 PM#9
shadow1500
Make the tome not use on pick up, so that the warrior could trade it for money instead.
06-04-2006, 10:54 PM#10
weaaddar
to disable pickup it's easier to use the order event only because it will stop him in his track...

Something like
Trigger:
Event-
Unit Is Issued an Order with a target
Condition-
Triggering unit is a mage
Manipulated item is sword of pwnage+5
Action-
Unit-Pause Unit
Unit-Issue Unit Order with no target "stop"
Unit-Unpause Unit
Game Display Text Message "A mage can't use a sword of pwnage+5!"