End game trigger?

setari

New Member
Reaction score
2
Ok, I finished my first map. Yay! But, I want the game to end when a person kills a specific creep at the end of the map, how would I set that, if it's possible?
 

Crusher

You can change this now in User CP.
Reaction score
121
Code:
Events:
A unit has been Killed

Conditions:
Dying Unit Equal To (Your unit)

Action:
Victory Player 1 (Red) etc
 

setari

New Member
Reaction score
2
Ok, I dont have another player on my map, so the "you win" thing comes up whenever I start the map, how can I take this away? I figure it has something to do with the

Code:
Melee Initialization
    Events
        Map initialization
    Conditions
    Actions
        Melee Game - Use melee time of day (for all players)
        Melee Game - Limit Heroes to 1 per Hero-type (for all players)
        Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
        Melee Game - Set starting resources (for all players)
        Melee Game - Remove creeps and critters from used start locations (for all players)
        Melee Game - Create starting units (for all players)
        Melee Game - Run melee AI scripts (for computer players)
        Melee Game - Enforce victory/defeat conditions (for all players)

Right?
 

Crusher

You can change this now in User CP.
Reaction score
121
Remove that....create a new trigger


Do exactly as I done in upper post....

EDIT:posting an Example for 1 minute!
 

Razed

New Member
Reaction score
44
Code:
Melee Game - Enforce victory/defeat conditions (for all players)

Remove that to fix that, I believe.

But if it's just a custom map made by you, why not remove the entire trigger? ;)
 

setari

New Member
Reaction score
2
Well I wasnt sure if the map would totally bug out if I did remove the trigger. Yeah it's a totally custom map. I'll try both of those suggestions.
 

Razed

New Member
Reaction score
44
I've tested it myself as well for you. And yes, by only removing that single action you take away the effect you were talking about.
 

setari

New Member
Reaction score
2
Woot, it worked, I just took away the

Code:
Melee Game - Enforce victory/defeat conditions (for all players)

Thanks guys! + rep to both of yas!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top