HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Mini Games In RPG maps

03-10-2006, 01:31 AM#1
Dr.Nexus
I'm working on a map: Hero City I'm planning on it being a 4 player map, but so far I only have triggers for two players, anywho, I need help on making a mini game where the skeletons rush the Players and The Player has to survive XXX number of waves, and I want to Have it so when The Hero stands over a circle of power in the graveyard and Types "!minigame" it would teleport him to the game area, how would I do this? if it's possible
03-10-2006, 03:32 AM#2
Panto
We'll start by moving you to the triggers forum, wherein all sorts of help regarding triggered events can be found!
03-11-2006, 08:42 PM#3
Dr.Nexus
sorry
03-11-2006, 08:57 PM#4
TaintedReality
Well..yes that's possible and everything but that would be a pain to type everything out for it and most of us have other things to do =P. So, go try to figure it out yourself by looking at the triggers in the trigger editor, then if (when) you run into problems come back here and ask. Now if someone wants to make all that for you they can go right ahead but not I. I'm sure you can figure it out though, most of the triggers are self explanatory.

But basically, use the event "Unit - Unit Within Range", and as the unit it's in range of choose your circle of power. Then, use the Unit - Move Unit Instantly command to move your unit to the minigame area. As soon as you do that, start a timer. Every time the timer expires, you should spawn another group of skeletons and order them to attack the players. Use a variable to keep track of what wave they are on. When they defeat all the waves, pick all units in your mini game region and use Move Unit Instantly to move them back to the graveyard. If they die, you can have them respawn back at the graveyard or whatever you want. Good luck making it ; ).
03-11-2006, 09:09 PM#5
Dr.Nexus
thanks, I've figured out how to move the units and everything but now I'm stuck on how to move them back after the minigame is finished, thanks for your help and I don't want some one to write it all out for me I just want a brief explaination of how something might be accomplished
03-11-2006, 09:42 PM#6
TaintedReality
Well make a region over the area where the minigame takes place. Once all the waves are finished (make sure you're keeping track of what wave they're on), select all units in minigame region matching unit is an ally of player 1 red (if player 1 is one of your human players), and matching unit is a hero (assuming they're all heroes). Then, Move Picked Unit to location of Circle of Power.
03-11-2006, 09:50 PM#7
Dr.Nexus
thanks, but now I have another problem though, when the hero goes to the circle of power it doesn't even get a chance to type the Command for the Minigame
03-12-2006, 04:09 PM#8
TaintedReality
Change the event from Unit Comes Within Range to this, and change your Move Instantly part to this.
Trigger:
Collapse Events
Player - Player 1 (Red) types a chat message containing !minigame as An exact match
Player - Player 2 (Blue) types a chat message containing !minigame as An exact match
Player - Player 3 (Teal) types a chat message containing !minigame as An exact match
Player - Player 4 (Purple) types a chat message containing !minigame as An exact match
Conditions
Collapse Actions
Collapse Unit Group - Pick every unit in (Units within 300.00 of (Position of Circle of Power) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Collapse Loop - Actions
Unit - Move (Picked unit) instantly to (Center of (MiniGame_Rect))

That way when they type it, it will select all hero units nearby the circle of power and move them to your minigame zone.