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

[REQUEST] 2 triggers

Status
Not open for further replies.
Level 3
Joined
Sep 15, 2008
Messages
31
Into: Hey,Im tom, Im new to this site and making maps.

Project: for making my first map. im doing something simple. hide n go seek. All i need is to make units respawn and a win system

Request:
I want to make a trigger that'll all units( not creeps ) respawn at random locations.
And a win system that winning needs 50 kills
plz dont make a map showing the triggers, post it plz
 
Last edited:
Level 5
Joined
Sep 13, 2008
Messages
165
Well, the 50 kills would be a simple trigger,

Variables
-Kills_Array [How many players there are]

  • Events
  • - A unit dies
  • Conditions
  • - Triggering unit is A Hero = True (Only if you are using heros not units, this will stop the player getting points if they kill a neutral creep)
  • Actions
  • If
  • Kills_Array [Owner of Killing Unit] equal to 50
  • Then
  • Remove [Owner of Killing Unit] from Players
  • Show Victory screen to Owner of Killing Unit
  • Defeat all players in Players showing message: Defeat
  • Else
  • Set Kills_Array [Owner of Killing Unit] to (Kills_Array [Owner of Killing]+1)
That should work,

For the Revival trigger, it would be a bit more complicated, because it would probably have to use Jass for local variables.

Hope this helped
 
Last edited:
Status
Not open for further replies.
Top