HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Argh I hate it when I cant figure stuff out! =)

08-04-2002, 12:59 PM#1
Guest
Ok here is the deal, I need to keep track of who is allied with who in my map. Ive played with this for an hour now and can't get it working, maybe someone can see my error.

All players are allied to all players when this trigger is run.

Event: Player 1 types "allies"
Actions:
&nbspFor each (Integer A) from 1 to 12, do
&nbsp&nbsp Pick every player in (All players) and do
&nbsp&nbsp&nbsp If (Player[Integer A]) is giving (Picked Player) alliance Equal to True
&nbsp&nbsp&nbsp&nbsp then do Player group - Add (picked player) to Allies[Integer A]
&nbsp&nbsp&nbsp&nbsp else do Player group - Add (picked player) to Enemies[Integer A]


Problem is that the groups stay empty... Allies[] and Enemies[] are player group arrays.

Can anyone see anything wrong with this?? I hate not being able to figure stuff out on my own =(


__________________
"I’m on the Zoloft to keep me from killing y’all"
08-05-2002, 01:14 AM#2
Newhydra
I think arrays of player groups don't work...Can't remember how to actually get them to work, But its not obvious, I think you need to set a player group var first as in PlayerGroup B

Then set the slot of the array = to that player group variable

alliances[1]=PlayerGroup B and repete that for every slot in the array, using a new var for each one...
08-05-2002, 02:17 AM#3
Guest
ah dam. well thanks, that does seem to be the only explanation =(
I got the map workin tho =)

Nuther thing I learned - there is no Triggering Player in event-alliance change