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

Show Dialogs?

Status
Not open for further replies.
Level 6
Joined
May 13, 2013
Messages
111
How can I make the dialog to show only in first user player like:

If the first user is Red and playing then the dialog will show to Player 1(Red), else, show the dialog to Player 2(blue) and so on. Does anybody show me the trigger of it?
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
  • Set p = Neutral passive
  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • p Equal To Neutral passive
          • ((Player((Integer A))) slot status) Equal To Playing
          • ((Player((Integer A))) controller) Equal To User
        • 'THEN'-Actions
          • Set p = (Player((Integer A)))
        • 'ELSE'-Actions
  • Dialog - Show <dialog> for p
Remember to update it if the one who is currently seeing the dialog leaves the game.
 

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
  • For each DummyLoop from 1 to 12, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Player((DummyLoop))) slot status) Equal To Playing
          • ((Player((DummyLoop))) controller) Equal To User
        • Then - Actions
          • Set p = (Player((DummyLoop))
          • Set DummyLoop = 13
        • Else - Actions
  • Dialog - Show <dialog> for p
dont use loop int A
 
Status
Not open for further replies.
Top