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

World editor - How to make a rematch option..

Status
Not open for further replies.

bloodblade

B

bloodblade

at the end of the game.
It's kind of annyoing playing a game and when it ends Me and friends (or random people) wanna play again then we have to remake blah blah.
so can annyoing tell me how to make a rematch option at the of the game?
 
Instead of inserting a defeat condition where it would normally go to end your game, enter a dialog that asks if the players would like a rematch.

After you've run checks to see if the majority of the players voted for "yes", run the necessary triggers to recreate any units that need to be alive that were destroyed, reset any variables that were modified throughout the game etc.

It's a lot more work than you'd originally think (especially if your map is complicated. For a simpler map like enfo's, it isn't too hard).
 
Status
Not open for further replies.
Back
Top