• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Hypothetical: play sounds, set quests for different players

Status
Not open for further replies.
Level 14
Joined
Aug 30, 2004
Messages
909
I'm brainstorming for a new map and had a few hypothetical questions. You don't need to post triggers or anything (if I need them I can always come back).

The map would be a multiplayer Battle.Net map.

1. Would it be possible to play a custom sound files for 1 player but not others?

2. Is it possible to set up quests, so some players will see some quests, and other players will see other quests?
 
1. Yes. There is a function called StartSoundForPlayerBJ() which you can use to play sound for a specific player. Are you using triggers? You can use a custom script: StartSoundForPlayerBJ( Player(0) , "MySound.mp3" ) to play for Red player.

2. Quests are a bit more tricky. You can use GetLocalPlayer() to make things differ between the various players and apparently it works with strings, so theoretically, you'd need to create a set of Quest and Quest Requirement type objects and then use GetLocalPlayer() to set quest titles and descriptions.
 
Status
Not open for further replies.
Back
Top