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

Rematch System???

Status
Not open for further replies.
Level 2
Joined
Feb 11, 2010
Messages
29
hi im making a slide map and i want when all player units die to show choice if you want rematch or no and not to end the game. Can someone tell me how can i do this :cry:
 

Yan

Yan

Level 6
Joined
Aug 20, 2009
Messages
142
Hi,
try like this :

  • Rematch dialogue
    • Evénements
      • Unité - A unit Dies
    • Conditions
      • And - All (Conditions) are true
    • Conditions
      • (Number of units in (Units owned by Player 1)) Egal à 0
      • (Number of units in (Units owned by Player 2)) Egal à 0
      • (Number of units in (Units owned by Player 3)) Egal à 0
      • (Number of units in (Units owned by Player 4)) Egal à 0
      • (Number of units in (Units owned by Player 5)) Egal à 0
      • (Number of units in (Units owned by Player 6)) Egal à 0
      • (Number of units in (Units owned by Player 7)) Egal à 0
      • (Number of units in (Units owned by Player 8)) Egal à 0
      • (Number of units in (Units owned by Player 9)) Egal à 0
      • (Number of units in (Units owned by Player 10)) Egal à 0
      • (Number of units in (Units owned by Player 11)) Egal à 0
      • (Number of units in (Units owned by Player 12)) Egal à 0
      • Actions
        • Dialogue - Clear rematch
        • Dialogue - Change the title of rematch to Do you want to rematch?
        • Dialogue - Create a dialog button for Difficult labelled Yes
        • Set Choice[1] = (Last created dialog Button)
        • Dialogue - Create a dialog button for Difficult labelled No
        • Set Choice[2] = (Last created dialog Button)
        • Dialogue - show rematch for Player 1
        • Dialogue - show rematch for Player 2
        • Dialogue - show rematch for Player 3
        • Dialogue - show rematch for Player 4
        • Dialogue - show rematch for Player 5
        • Dialogue - show rematch for Player 6
        • Dialogue - show rematch for Player 7
        • Dialogue - show rematch for Player 8
        • Dialogue - show rematch for Player 9
        • Dialogue - show rematch for Player 10
        • Dialogue - show rematch for Player 11
        • Dialogue - show rematch for Player 12
  • yes button
    • Evénements
      • Dialogue - A dialog button is clicked for rematch
    • Conditions
      • (Clicked dialog button) Egal à Choice[1]
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Evaluation count of (This trigger)) Egal à (Number of players in (All players matching ((((Matching player) slot status) Egal à Joue) and (((Matching player) controller) Egal à Utilisateur))))
              • (Evaluation count of (This trigger)) Supérieur à ((Number of players in (All players matching ((((Matching player) slot status) Egal à Joue) and (((Matching player) controller) Egal à Utilisateur)))) / 2)
        • Alors - Actions
          • Déclencheur - Run "your initialisation trigger" (checking conditions)
        • Sinon - Actions
  • no button
    • Evénements
      • Dialogue - A dialog button is clicked for rematch
    • Conditions
      • (Clicked dialog button) Egal à Choice[2]
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Evaluation count of (This trigger)) Egal à (Number of players in (All players matching ((((Matching player) slot status) Egal à Joue) and (((Matching player) controller) Egal à Utilisateur))))
              • (Evaluation count of (This trigger)) Supérieur à ((Number of players in (All players matching ((((Matching player) slot status) Egal à Joue) and (((Matching player) controller) Egal à Utilisateur)))) / 2)
        • Alors - Actions
          • Partie - Defeat player 1 with the message: You died !
            • Partie - Defeat player 2 with the message: You died ! Partie - Defeat player 3 with the message: You died !
          • Partie - Defeat player 4 with the message: You died !
          • Partie - Defeat player 5 with the message: You died !
          • Partie - Defeat player 6 with the message: You died !
          • Partie - Defeat player 7 with the message: You died !
          • Partie - Defeat player 8 with the message: You died !
          • Partie - Defeat player 9 with the message: You died !
          • Partie - Defeat player 10 with the message: You died !
          • Partie - Defeat player 11 with the message: You died !
          • Partie - Defeat player 12 with the message: You died !
        • Sinon - Actions
info:
- rematch (dialogue variable)
- Choice ( dialogue button array)

np, i hope it's useful

Yan
 
Level 5
Joined
Dec 13, 2008
Messages
141
whats that on the trigger Evénements or Alors, Partie ? can you fix it

Thats EVENTS.
Alors, Sinon, Partie are other words:
Alors meaning Then
Sinon meaning Not (From the If/Then/If Not action)
And Partie being Game.

I guessed with the knowledge of what those triggers are supposed to be from WE.
 
Status
Not open for further replies.
Top