• 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.

How do I make my dungeon bosses talk?

Status
Not open for further replies.
Level 2
Joined
Oct 31, 2010
Messages
23
I'm new to the whole scripting thing and I am unable to find a guide for what I need. What I need help with is how to make a boss "talk" when I engage him, and when he's at 75%, 50%, 25% and when he dies.

I have the soundfiles ready, but I have no idea how to do this.

Any help with this simple (?) thing?
 
If your boss is preplaced on the map you can do something like this.

  • Crazy Boss
    • Events
      • Unit - BossUnit <gen>'s life becomes Less than or equal to 750.00
    • Conditions
    • Actions
      • Sound - Play YourSound
      • Turn off this trigger
It's a very simple example.

If you haven't already then import you sound files via the import manager.
Then go to the sound manager. Right-Click the imported sounds and use them as sounds.
Thereafter you can use them in the action: "Sound - Play YourSound"
 
Level 2
Joined
Oct 31, 2010
Messages
23
no luck.jpg
It still doesn't work for some reason. Can you spot the problem? The sound files works just fine if I add them to units. I even tried using one of the footman sound files...
 
Level 2
Joined
Oct 31, 2010
Messages
23
Nvm, I finally got it to work! I had to restart the world editor two (2!) times. Weird stuff I tell you, haha. Thanks a lot for the help!
 
Level 2
Joined
Oct 31, 2010
Messages
23
Can I add sound files to spells in general to any unit/spell? For example, if I had a Lich King and I resurrected a unit, could he start yelling "Apocalypse!" if I had the sound file?
 
Can I add sound files to spells in general to any unit/spell? For example, if I had a Lich King and I resurrected a unit, could he start yelling "Apocalypse!" if I had the sound file?

Yup you can. You can even attach a sound to a spell. Not sure if it works with imported sounds, but then you can just trigger is easily.
 
Level 2
Joined
Oct 31, 2010
Messages
23
Now how would I do if I want the boss to use a spell at, let's say, 50%? :D

Jesus christ I hate scripting haha.
 
It depends on what kind of ability he is supposed to cast (point target, unit target, no target).

Again a very simple example:
  • Crazy Boss Spell
    • Events
      • Unit - BossUnit <gen>'s life becomes Less than or equal to 500
    • Conditions
    • Actions
      • Unit - BossUnit <gen> to Orc Tauren Chieftain - War Stomp
      • Trigger - Turn off (This trigger)
This is if the boss' ability is based on the War Stomp ability. The order sting will then be "War Stomp".
Hope you can figure out what to do if the spell is point or unit targeted.
 
Level 2
Joined
Oct 31, 2010
Messages
23
I'm trying to copy what you did but I just simply cannot find what I am supposed to find. I never get it to look like Unit - (Name) <gen> to (Hero) - War Stomp

What I am trying to do is to make sure he casts an empowered version of War Stomp that I named Malkorok Stomp...
 
I never get it to look like Unit - (Name) <gen> to (Hero) - War Stomp

  • Unit - BossUnit <gen> to Orc Tauren Chieftain - War Stomp
Because the boss is preplaced you can select it directly in the action.
Simply click the unit and locate the tab on the right side of the window that pops up which says "Select Unit". Then select your boss unit.

For the order.
Because the spell is based on War Stomp (a "no target" ability)
You need to issue an order with no targets.
Here is a pic.
8DEDD9q.jpg


Edit:
Oh.
And you cannot get it to say "Order Boss to Boss - War Stomp".
Again you use War Stomp as the base ability and the order sting for that is simply "Orc Tauren Chieftain - War Stomp".
Don't worry about that.
 
Level 2
Joined
Oct 31, 2010
Messages
23
You're awesome, man. I did figure out another way to do it, and that was to just simply make sure that the boss would learn the spell and then he would use War Stomp (Or Malkorok Stomp) directly after. However, he would only cast it if there were plenty of enemies around since he refuses to do it against a single target.
 
That probably happens because the player who owns the boss unit is set to "Computer".
This is because of the default coding of War Stomp.

But that is a longer story so don't mind that.

I would suggest that you wait with adding your spell until the boss actually needs to use it.
Make him cast the spell with the trigger above, and then remove the ability again (assuming the boss is meant to only use the ability once).
That way you can make sure that the boss will not use it at random.
 
Level 2
Joined
Oct 31, 2010
Messages
23
What I did was that I added the maximum cooldown to the spells. That way he will only be able to use it once. But your idea was good though if I ever want the boss to use the same spell several times.

I can't stress enough how much you have helped me. Thanks a lot, mate!
 
Level 2
Joined
Oct 31, 2010
Messages
23
Actually, I have one last question. If my boss kills a unit, can he make a sound effect from that? Would be pretty sweet if he killed a, let's say, footman and he would say "Huahaha, mess with the bull!"
 
Sure you can. Almost as easy as the other triggers.
Tell, or show me, how you would do the trigger.

On that note.
To post a trigger directly into your post you can right click your trigger name in the editor and press "copy as text".
Then to have it shown correctly here write
[trigger][/trigger]
and paste in between.

Like:
[trigger]paste here[/trigger]
Becomes:
  • paste here
 
This is my "healing energy" map, with my sounds (voice acting o.o), lets see if it is what you want: View attachment 133318

This is not to put you off man. But I assure you, no one, no one will want to hear sounds remotely near to what is in that map.
I will have nightmares the next month.

Please don't ever do that again. Use standard sounds.
 
Level 1
Joined
Jun 13, 2008
Messages
132
This is not to put you off man. But I assure you, no one, no one will want to hear sounds remotely near to what is in that map.
I will have nightmares the next month.

Please don't ever do that again. Use standard sounds.

That is for him to add any sound he would like, besides, it is imposible that an ability you made have the exact same sound as any sound in wc3. I mean, for example my ability "healing energy", there is no such sound in wc3, you have to create it and import it.
The same goes for custom dialogs, instead of making the boss just say something in words, you can talk, record and import.
 
I mean, for example my ability "healing energy", there is no such sound in wc3, you have to create it and import it.
That may be. But have you actually heard the sound?
I mean, my ears are still bleeding.
I would highly recommend if someone wants to record his/her own voice, to invest in some proper equipment for that purpose.
And even then I highly doubt anyone will want to listen to some random guy yelling "Healing Energy", "Pants On Fire" or "Unicorns Are Awesome" while playing.

If custom sounds are to be used I suggest trying to find something similar to the needs from another game/movie/piece of music and import that.
 
Level 1
Joined
Jun 13, 2008
Messages
132
That may be. But have you actually heard the sound?
I mean, my ears are still bleeding.
I would highly recommend if someone wants to record his/her own voice, to invest in some proper equipment for that purpose.
And even then I highly doubt anyone will want to listen to some random guy yelling "Healing Energy", "Pants On Fire" or "Unicorns Are Awesome" while playing.

If custom sounds are to be used I suggest trying to find something similar to the needs from another game/movie/piece of music and import that.

What a troll!
 
Level 2
Joined
Oct 31, 2010
Messages
23
  • Warbringer 60 Shockwave
    • Events
      • Unit - Horde Warbringer 0022 <gen>'s life becomes Less than or equal to 600.00
    • Conditions
    • Actions
      • Unit - Add Warbringer Wave to Horde Warbringer 0022 <gen>
      • Unit - Order Horde Champion 0003 <gen> to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
      • Trigger - Turn off Warbringer 60 Shockwave <gen>
Right, I have no idea how to make my boss cast Shockwave properly... :(

I give up, I have tried for about 2 hours now lol. Could someone lend a hand?
 
Level 1
Joined
Jun 13, 2008
Messages
132
  • Warbringer 60 Shockwave
    • Events
      • Unit - Horde Warbringer 0022 <gen>'s life becomes Less than or equal to 600.00
    • Conditions
    • Actions
      • Unit - Add Warbringer Wave to Horde Warbringer 0022 <gen>
      • Unit - Order Horde Champion 0003 <gen> to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
      • Trigger - Turn off Warbringer 60 Shockwave <gen>
Right, I have no idea how to make my boss cast Shockwave properly... :(

I give up, I have tried for about 2 hours now lol. Could someone lend a hand?

You didn't specify your point...

For shockwave you need a point to cast...

Create a TempPoint variable, is has to be a point then:
Set TempPoint: position of Horde Warbringer 0022 with polar offset 600 towards facing angle of Horde Warbringer 0022.
Afterwards custom script and write: call RemoveLocation (udg_TempPoint)
 
Level 2
Joined
Oct 31, 2010
Messages
23
Right, I give up trying to find it myself after several hours of pure frustration. How do I make a TempPoint?
 
You create a point variable (here called TampPoint).
In the action you set this point variable to the desired location (in this case Target point of ability being cast).
Then order the unit to use the Shockwave at TempPoint.
  • Unit - Order Horde Champion 0003 <gen> to Orc Tauren Chieftain - Shockwave (TempPoint)
Then you remove the point again (NOT the variable, to avoid confusion).
And you remove it by following this link, which you should get familiar with anyway:
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=27219
 
Level 2
Joined
Oct 31, 2010
Messages
23
I got the Shockwave thing to work properly, but right now I am facing another issue. I am trying to make one of my bosses talk each time he cast a spell, and I can do that. The problem is that he keeps repeating the line not-so-synced with the spell -- he says "Freeze!" the first time properly, but then he says "Freeze!" again when the spell isn't even ready yet.

This isn't my first trigger attempt at this, but this is what I got at the moment.
  • Frost Nova Sound
    • Events
      • Unit - The Revenant 0005 <gen> Takes damage
    • Conditions
    • Actions
      • Unit - Order The Revenant 0005 <gen> to Undead Lich - Frost Nova (Random unit from (Units within 512.00 of (Position of (Triggering unit))))
      • Sound - Play Ahune_3 <gen>
I tried to add a condition that when he casts Frost Nova he should make that sound, but then he refuses to cast it. But with the trigger that I currently use he will at least use Frost Nova, but he won't do it properly and timely with the sound...
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
If your map is multiplayer you must remember to correctly restrict who hears the sounds to those they are appropriate for. This means that sounds yelled when an ability is cast should probably be 3D sounds originating at the unit (so it sounds like he is yelling it in person) and any dialog sound (which you want to immerse the user in so is played flat) is only played to people it is relevant to.

There is nothing worse than someone engaging a boss while I am on the other side of the map, doing something totally unrelated to the boss, and suddenly I am drowned by all his dialog and ability taunts. It would be like Diablo III having the bosses spam their taunts even if you are in town because you just joined the game while the other people where in the boss fight, not something you want to happen.
 
Status
Not open for further replies.
Top