[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > Triggers & Scripts


Triggers & Scripts In this forum you may ask for help on fixing a trigger or script. But if you need help getting started with a trigger, this is not the right place — use the World Editor Help Zone.

Closed Thread
 
Thread Tools
Old 07-09-2012, 08:05 PM   #1 (permalink)
Registered User LittleBigApple
User
 
Join Date: Jul 2012
Posts: 14
LittleBigApple has little to show at this moment (2)
Sound problems

Hello hive members
I have this problem with this map that i'm creating. I wan't a soundfile to start at each bossfight, however, the sound only plays at the very first boss.

Here is the trigger I use:
Music as Sipron the Deadly
Events
Unit - Sipron the Deadly 0048 <gen> Is attacked
Conditions
Actions
Trigger - Turn off (This trigger)
Sound - Play 30_War <gen>
LittleBigApple is offline  
Old 07-09-2012, 08:07 PM   #2 (permalink)
Registered User Battlehound
User
 
Battlehound's Avatar
 
Join Date: May 2009
Posts: 124
Battlehound has little to show at this moment (15)Battlehound has little to show at this moment (15)
Maby destroying the sound after it was played would help. Not Sure.
__________________
Your average noob.
Battlehound is offline  
Old 07-09-2012, 08:11 PM   #3 (permalink)
Registered User LittleBigApple
User
 
Join Date: Jul 2012
Posts: 14
LittleBigApple has little to show at this moment (2)
Have already tried it out, and it doesn't work. :)
LittleBigApple is offline  
Old 07-10-2012, 12:51 AM   #4 (permalink)
Registered User Lambdadelta
Guest
 
Lambdadelta's Avatar
 
Join Date: Jul 2009
Posts: 821
Lambdadelta is just really nice (333)Lambdadelta is just really nice (333)Lambdadelta is just really nice (333)
Um. You turn the trigger off so it'll never fire again unless you turn it back on, therefore the sound will play only the first time. I would guess that Sipron the Deadly isn't the only boss, but that's the only trigger we can see.
__________________
Lambdadelta is offline  
Old 07-10-2012, 08:15 AM   #5 (permalink)
Registered User LittleBigApple
User
 
Join Date: Jul 2012
Posts: 14
LittleBigApple has little to show at this moment (2)
Well, the trigger I posted was just an example for one of the bosses. I have used this trigger on every boss (ofc with different 'events'), like you guessed.

But thanks for commenting, I will be more clear on the subject next time.
LittleBigApple is offline  
Old 07-10-2012, 12:12 PM   #6 (permalink)
Registered User Lambdadelta
Guest
 
Lambdadelta's Avatar
 
Join Date: Jul 2009
Posts: 821
Lambdadelta is just really nice (333)Lambdadelta is just really nice (333)Lambdadelta is just really nice (333)
Have you tried stopping the sound than playing it again?
__________________
Lambdadelta is offline  
Old 07-10-2012, 02:22 PM   #7 (permalink)
Registered User LittleBigApple
User
 
Join Date: Jul 2012
Posts: 14
LittleBigApple has little to show at this moment (2)
Thanks for the tip. I tried a few things with the 'Stop Sound', and atlast I actually worked fine. :)
My trigger looks like this now (btw, I made every boss 'Ancient')
EnableBossSound START
Events
Map initialization
Conditions
Actions
Set Enable_BossSound = True
Play BossSound
Events
Unit - A unit Is attacked
Conditions
((Attacked unit) is An Ancient) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Enable_BossSound Equal to True
Then - Actions
Set Enable_BossSound = False
Sound - Play 30_War <gen>
Else - Actions
Do nothing
EnableBossSound
Events
Unit - A unit Dies
Conditions
((Triggering unit) is An Ancient) Equal to True
Actions
Sound - Stop 30_War <gen> Immediately
Set Enable_BossSound = True

But thanks for all, you helped me with some ideas!
LittleBigApple is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 01:10 AM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle