HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Teams

08-31-2004, 03:38 AM#1
Xodus-Wing
ok in my capture the flag map, I have adjusted the force properties to match my likings (two teams, 5 playable characters on each team, and 1 computer on each team) Now I need to know how to make these teams with triggers

rep points for whomever succesfully helps me out, thanks
btw, i want team one to be Team Magnus, and team two to be Team Malus.... thanks
08-31-2004, 04:31 AM#2
Azhag
If you go into the triggers and look under actions, you may be able to find a team trigger under players. What exactly do you want to do with the team trigger? Please explain more, and I'll answer.
08-31-2004, 06:07 AM#3
fulix
events-Map Initiation
conditions-none
action-(im not sure EXACTLY but something like this) player (player 1 red) ally player two blue
08-31-2004, 04:19 PM#4
Xodus-Wing
well... this is a trigger I was told to do before for in capture the flag when someone is bringing the flag back to their base and gets killed on the way, the flag is returned to the enemys base...

Code:
Melee Initialization
    Events
        Unit - A unit Dies
    Conditions
        Or - Any (Conditions) are true
            Conditions
                ((Triggering unit) has an item of type Flag1) Equal to True
                ((Triggering unit) has an item of type Flag2) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Owner of (Triggering unit)) is in (Team1)) Equal to True
            Then - Actions
                Item - Create Flag2 at (Center of (Team2 flag <gen>))
                Item - Remove (Item carried by (Triggering unit) of type Flag2)
            Else - Actions
                Item - Create Flag1 at (Center of (Team1 flag <gen>))
                Item - Remove (Item carried by (Triggering unit) of type Flag1)

and in that trigger, it requires stuff like

Code:
((Owner of (Triggering unit)) is in (Team1)) Equal to True

see the team 1? how do I do that... cuz I can't select the teams I made in the force properties...
08-31-2004, 04:35 PM#5
cheese_doodle
ok, if you look in the trigger window thing select the x button for variables, create one for team 1 and two, and set the variable to PLAYER GROUP and you done
(im pretty sure thats what you want)
08-31-2004, 04:38 PM#6
Xodus-Wing
hmmm.... i'll try it out, if it works, i'll be sure to give you your rep points ;)

edit: sorry, is it an empty player group?
09-01-2004, 05:26 AM#7
Azhag
I think an empty player group means melee. So no teams.