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

[Trigger] Question about game mode

Status
Not open for further replies.

argggghh

A

argggghh

how to create game mode ? :pal:

example : player 1 type -20

game will end after a player kills 20 hero :thumbs_up:
 
You make a trigger that does exactly that.

Event - Player 1 types as an exact match -
Conditions - Substring of typed string equal to "-" at (0,1)
Actions - Set HeroKillsNeeded to substring of type string at (1,3)

HeroKillsNeeded is a integer variable.

Then, you make another trigger counting the number of kills each player gets. When that number >= HeroKillsNeeded, you run victory for the player with the kills and defeat for everyone else.
 
u need to know how to trigger victory and defeat conditions.
u must use a trigger, have whichever conditions u want, and then use the actions for victory and defeat. u must then make this trigger initially off, and turn it on via triggers based on chat.
if u dont know how to make a trigger, i suggest u read some tutorials for basic ones before attempting to use game modes
 
Status
Not open for further replies.
Back
Top