• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

having problem

Status
Not open for further replies.
Level 6
Joined
Sep 13, 2013
Messages
155
First, go to sound editor, In abilities\spell\human\avatar and right click on the sound file and click on "Use As Sound" button, then go to triggers and do this:


  • Item Pickup
  • Events:
  • Unit - A Unit Acquires an item
  • Conditions:
  • (Item being manipulated) Equal to Crown of Kings +5 0000 <gen>
  • (Hero Manipulating Item) is A Hero Equal to True
  • Actions:
  • Sound - Play Avatar <gen>
Notice that Crown of Kings is just an example.
this is the simple trigger when you want the game to play the sound only when a unit picks up a specific item, but if it's gonna be numbers of these items in your map then you should do this:
make this type of item undroppable so people won't troll your map by dropping/picking up the item time and time again to play the avatar sound over times. and create variable of type "Unit group" to stop playing the sound time and time again by acquiring numbers of this type of item, and add the triggering unit into the unit group and add a If/Then/Else action which checks that if the triggering unit already has an item of this type (better to say the unit is in your unit group or not) if yes, play no sound (Do nothing), else, play the sound.
 
Level 6
Joined
Oct 10, 2013
Messages
173
10xxx very much :D

First, go to sound editor, In abilities\spell\human\avatar and right click on the sound file and click on "Use As Sound" button, then go to triggers and do this:


  • Item Pickup
  • Events:
  • Unit - A Unit Acquires an item
  • Conditions:
  • (Item being manipulated) Equal to Crown of Kings +5 0000 <gen>
  • (Hero Manipulating Item) is A Hero Equal to True
  • Actions:
  • Sound - Play Avatar <gen>
Notice that Crown of Kings is just an example.
this is the simple trigger when you want the game to play the sound only when a unit picks up a specific item, but if it's gonna be numbers of these items in your map then you should do this:
make this type of item undroppable so people won't troll your map by dropping/picking up the item time and time again to play the avatar sound over times. and create variable of type "Unit group" to stop playing the sound time and time again by acquiring numbers of this type of item, and add the triggering unit into the unit group and add a If/Then/Else action which checks that if the triggering unit already has an item of this type (better to say the unit is in your unit group or not) if yes, play no sound (Do nothing), else, play the sound.
cannot find hero manupilating icon can u help me?
*edit
found :D

do not work :/
 
Last edited by a moderator:
Level 6
Joined
Sep 13, 2013
Messages
155
so i have a question
the item that you are talking about can be bought from shops or is it a boss item and a specific item that is only one of it can be found in the map ?

sorry for my mistake and forget my question lol
the action Play sound is incorrect and you need to use this one :
  • Sound - Play Avatar <gen> at 100.00% volume, attached to (Triggering unit)
 
Last edited by a moderator:
Status
Not open for further replies.
Top