• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Computer abilites and drop items on death help

Status
Not open for further replies.
Level 2
Joined
Jun 11, 2004
Messages
9
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.
 
Level 13
Joined
May 5, 2004
Messages
1,330
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))
 
Level 2
Joined
Jun 11, 2004
Messages
9
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.
 
Level 13
Joined
May 5, 2004
Messages
1,330
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
  • ((Dying unit) is A Hero) Equal to True
    Or - Any (Conditions) are true
    Conditions
    [list:c4c4aa0c0b](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:c4c4aa0c0b]
Actions
  • Hero - Drop (Item carried by (Dying unit) of type [YourItem]) from (Dying unit)


@oz02 1:1 (now I think I missunderstood it)
 
Status
Not open for further replies.
Top