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

[Trigger] Multiplayer co-op RPG trigger help

Status
Not open for further replies.
Level 1
Joined
Apr 7, 2020
Messages
5
Hey all,

First post here but have been an avid lurker for quite some time.

I finally decided to take the plunge into map making after fixing the pathing on an old TD I found. Deciding to take an easier route I decided to pick an RPG I can play with my two buddies instead.

So I have the terrain all fine, I set up some zoom triggers (which took longer than I'd like to admit) but now I want to set my victory / defeat conditions.

Ideally I would like the victory condition to be after we defeat the final boss of the map. He'll be a unique unit so I'm assuming I can set the trigger for when that specific unit dies, it triggers the victory. However, I'm having great difficulty figuring it out.

Any help I've looked up online has to do with buildings or farms being destroyed, not specific units.

Can anybody point me in the right direction for how I should set up the trigger?

If it helps, I'd like me and my two friends to be on a team, not sure if that changes the trigger or not.


Edit: it could also be a victory condition by finishing a quest. I can set a quest to kill the final boss and when the quest completes, the victory is achieved. Either one works for me.
 
Last edited:
Level 2
Joined
Mar 31, 2020
Messages
12
Use Event Unit Dies and Action Game - Victory.

You probably want to add some text to display or whatever on victory. If your final boss is spawned into the map and not present on the map in the editor, you'll have to link the event to a unit variable and when you spawn the final boss, set that unit variable to the boss so this trigger will go off.
  • Untitled Trigger 001
    • Events
      • Unit - Water Elemental (Level 3) 0233 <gen> Dies
    • Conditions
    • Actions
      • Quest - Mark bossquest as Completed
      • Wait 30.00 seconds
      • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
EDIT: Not approved fast enough, question already answered :p
 
Last edited:
Level 15
Joined
Feb 7, 2020
Messages
398
You can simply change the building in any of the examples you've looked up into a unit (buildings are actually considered units just with different properties).

This is extremely simple but since you're new I don't think it has to be over-engineered:

  • victory example
    • Events
      • Unit - Fortress (Horde) 0030 <gen> Dies
    • Conditions
    • Actions
      • -------- display a message to players: --------
      • Game - Display to (All players) the text: UNIT has been vanqu...
      • -------- arbitrary wait so victory splash isn't jarring: --------
      • Wait 15.00 seconds
      • -------- loop through players in the game who win: --------
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • Game - Victory (Player((Integer A))) (Show dialogs, Show scores)
As for setting up players, it's very easy:

upload_2020-4-8_7-54-20.png
 
Level 1
Joined
Apr 7, 2020
Messages
5
Awesome thanks!

I know how to set the players and teams, I just wasn't sure if the trigger would have to change if we were all on the same team haha.

So all I need to change in that trigger is the Fortress part and the Victory message where it says UNIT and I should be good to go?
 
Status
Not open for further replies.
Top