HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with triggers - seting very complicated Alliances

10-24-2002, 01:26 PM#1
Guest
I have problem with treating player X by player Y because it changes alltime. There are 2 teams: First contains 1 player, second the rest 7 players. Teams are enemies. Players in team2 are allies without shared vision or unit control. When someboby from T2 kills unit from T1, killing unit units dies and a new unit for him appears, but in T1. Owner of dying unit goes to Team2 and new unit for him is created. Now - owner of kiling unit must treat rest as enemies, even if they was allies before. Owner of DYING unit must now treat his enemies as allies, but only owner of killing unit is enemy for him. I cant do that, i tried in many ways but i just have not further idea. I hope somebody will help me, this forum seems to belong to experts so thats why i am writing post here. I would be realy grateful, if any experienced mapper knows what i mean in this problem, but wants concrets or doesnt understand everything, please send me email and I will send an alpha version of my map. When I finish triggers, I will make all other, easier things.
10-25-2002, 02:04 AM#2
Draco
Ok, create two Player Group Variables (Team1 and Team2). Now make a trigger like this:

EVENT - Time Elapsed is .01 seconds

ACTIONS:

Player Group - Add Player 1 to Team1
Player Group - Add Player 2 to Team2
Player Group - Add Player 3 to Team2
Player Group - Add Player 4 to Team2
Player Group - Add Player 5 to Team2
Player Group - Add Player 6 to Team2
Player Group - Add Player 7 to Team2
Player Group - Add Player 8 to Team2
Player Group - Pick every player in "Team 2" and do Action:
Player - Set Alliance - Make Player 1 treat 'Picked Player' as enemy
Player Group - Pick every player in "Team 2" and do Action:
Player - Set Alliance - Make 'Picked Player' treat Player 1 as enemy
Player Group - Pick every player in "Team 2" and do Action:
Player - Set Alliance - Make 'Picked Player 'treat 'Picked Player' as an 'ally'

- - -
Whew. Now make a trigger like this:

EVENT - Unit Dies (However you want to do this)

CONDITION - Unit - Killing Unit equal to Random unit from random player in "Team 2"

ACTIONS:

Player Group - Remove player of 'killing unit' from 'Team 2'
Player Group - Remove player of 'dying unit' from 'Team 1'
Player Group - Add Player of Dying unit to "team 2''
Player Group - Add Player of killing unit to "team 1''


- - -
Now for the ally part to change:

Event - Every 3 sec (or however long you want)

Actions:

Player Group - Pick every player in Team 2 and do action:
- Player - Set Alliance - Make Picked Player treat random player from 'Team 1' as enemy.

Player Group - Pick every player in Team 1 and do action:
- Player - Set Alliance - Make Picked Player treat random player from 'Team 2' as enemy. PLEASE NOTE - I couldn't find a better action for this one right here. I recomend copying THIS action like 50 times just to make sure that team1 is enemy with all of team 2.


- - - OMG I think I'm done. Good Luck. - - -



[edit] BTW, if anyone sees any mistakes I made, please say so.
10-25-2002, 12:24 PM#3
Guest
Thank you very much!:DD That is what i couldnt do - taking players to another team, thx Draco!!!!!!
10-25-2002, 12:47 PM#4
Guest
Hm i tried but there is no "team1" or "team2" player group, as you wrote:

Player Group - Add Player 1 to Team1

instead on Team1 i can choose from: players1-12, neutral, hostile & victims, VARIABLES or function for example 'all players', 'allies of player X"! but there is no team1 or team2, or any force.... thats the problem... if you have upgraded editor, plz give me link for it and i'll download so.
10-25-2002, 01:06 PM#5
Guest
I'll try to make a integrier name team1 and team2 but tell me is that right:)
10-25-2002, 01:36 PM#6
SuperIKI
integrier???
Maybe you should make team1 and team2 player group variables.
10-25-2002, 01:45 PM#7
Guest
yeah i used wrong word, i do lot of mistakes.

but heh lol this is all wrong!!! I made that I treat myself as an ally (paradox but it looks funny in game).
maybe draco you just take look on my map....

my mail= [email protected]

if anyone could help, thx much
10-25-2002, 08:17 PM#8
Draco
Didn't you READ my first line? It says it right there to create a player group variable.

P.S. Sorry if I sound mad ;) I'm not.


[edit] You do know how to creat variables right?

Push 'Control-B' in triggers menu.
10-26-2002, 10:08 AM#9
Guest
Sorry i missed this line. However i made teams variables. I also made other triggers you wrote, but that just doesnt work :/
Read again - i treat MYSELF like an ally and i lose control of my units.... thats so ****in complicated :(
10-30-2002, 01:54 AM#10
Draco
Yes I know it's wierd to set yourself as ally. But, it IS neccessary in the periodic trigger. What do you mean it won't work? The trigger looks fine to me. Anyone else see anything wrong with it?


[edit] I thought you wanted to lose control of unit!!???
10-30-2002, 03:44 PM#11
Guest
i dont see any mistake here.... so what? So nothing. That doesn't work. ****, I cant make map, nobody can help, doleful...