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

Strings....

Status
Not open for further replies.
Level 36
Joined
Mar 15, 2006
Messages
7,941
I think thats what this involves. Anyway this is what I want to do. I need to be able to make a text message to all players telling which one of them has been selected for a position.

For example in my map, one player is randomly selected to become the zombie sheep for the round. I want to inform the other players which one got selected as the zombie sheep. How can I do this?

Thanks :)
 
Well after you randomly selected one player, display an game Message to all Players.

Just add the Game Message Display within you selection Trigger or however you select the random player :wink:

I would do it like this.
  • ZombieSheep
    • Events
    • Conditions
    • Actions
      • Set Random = (Random integer number between 1 and 10)
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Integer A) Equal to Random
            • Then - Actions
              • Unit - Create 1 ZombieSheep for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing (270.0) degrees
              • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Player((Integer A)))) + is the Zombiesheep)
            • Else - Actions
              • Unit - Create 1 Sheep for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing (270.0) degrees
 
  • Like
Reactions: Rui
Status
Not open for further replies.
Back
Top