Warcraft III resources & community, 2003–2006 · archived

Computer abilites and drop items on death help

7 posts
#1

Computer abilites and drop items on death help

How do I make it where the unit controlled by the computer uses it's abilities ? The computer controlled unit on my map doesnt use any of it's abilities.

Also how do I make a enemy unit drop items on death ? When he isnt on the map untill later.
#2
To 1. Use fixed player settings (Scenario/Force Properties), and be sure you set the controller of the player to computer (in Scenario/Player Properties)

To 2. Looking up the triggers, plz wait

Hm, there's no trigger to add an item drop to a unit. But you can do it by triggers, e.g.

ItemCreation
Events
Unit - A unit Dies
Conditions
Actions
Item - Create (Random level 3 item-type) at (Position of (Dying unit))
#3
Actually, there is. It's just located under Hero (Hero - Drop Item from Hero)
#4
@oz02

That's for items in the heros inventory. But I think DrumMage wanted solution for dropping items on unit's death (like the creeps do on melee maps)
#5
Oh, sorry. I guess i misunderstood the question.
#6
I dont think I was clear on the second question.

I wanted a hero to drop a certain item when he is killed but since the hero is not on the map untill later im not sure how to add it.

I tried the stuff you guys suggested and some others but it still wont work.
#7
You mean: A hero shall drop an item out of his inventory on his death (specific item or all items?)

I will create a trigger for a specific item drop on dead and add it to this post in some mins

OK, here it is.


Events
    Unit - A unit Dies

Conditions
[list]((Dying unit) is A Hero) Equal to True
Or - Any (Conditions) are true
Conditions
    (Item-type of (Item carried by (Dying unit) in slot 1)) Equal to [YourItem]
    (Item-type of (Item carried by (Dying unit) in slot 2)) Equal to [YourItem]
    (Item-type of (Item carried by (Dying unit) in slot 3)) Equal to [YourItem]
    (Item-type of (Item carried by (Dying unit) in slot 4)) Equal to [YourItem]
    (Item-type of (Item carried by (Dying unit) in slot 5)) Equal to [YourItem]
    (Item-type of (Item carried by (Dying unit) in slot 6)) Equal to [YourItem]
[/list:u]
Actions
    Hero - Drop (Item carried by (Dying unit) of type [YourItem]) from (Dying unit)



@oz02 1:1 (now I think I missunderstood it)