HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

hrm...I'm perplexed

07-09-2003, 08:29 PM#1
Natari
Is there some sort of limit to the number of actions you can have in the Pick all players in Player Group and Do Multiple actions action? Because twice now I have had a problem where I would have 3-6 ppl in a player group in which I tryed to use this action on and when I run it in game it only preforms the actions in the loop for the first player in the player group and skips the rest.


Quote:
Player Group - Pick every player in Team1 and do (Actions)
Loop - Actions
If (PlayerHero[(Player number of (Picked player))] Not equal to No unit) then do (Camera - Pan camera for (Picked player) to (Center of Team1Start <gen>) over 0.50 seconds) else do (Do nothing)
Unit - Move PlayerHero[(Player number of (Picked player))] instantly to (Center of Team1Start <gen>), facing 0.00 degrees
If ((Number of players in Team1) Greater than (Number of players in Team2)) then do (Unit - Set life of PlayerHero[(Player number of (Picked player))] to 70.00%) else do (Unit - Set life of PlayerHero[(Player number of (Picked player))] to 100.00%)
Unit - Set mana of PlayerHero[(Player number of (Picked player))] to ((Percentage mana of PlayerHero[(Player number of (Picked player))]) + 40.00)%


For this one I was able to fix the problem by disabling 3 out of the 4 actions in the loop. I figured that I had messed up in the making of one of those actions and I was going to go back later and fix it. but then it happened again...

Quote:
Player Group - Pick every player in Team1 and do (Actions)
Loop - Actions
Set PlayerTemp = (Picked player)
Player Group - Pick every player in Team1 and do (Player - Make PlayerTemp treat (Picked player) as an Ally with shared vision)


This time I can't remove any of the looped actions and as far as I can tell they should work fine so I'm not sure what to do.

Any help would be appreciated. =/
07-09-2003, 08:50 PM#2
ph33rb0
Instead of using your own group variable try using All allies of player 1 (for all of team 1) and all allies of player 7, or whatever (for all of team 2)

I think your group might be a little messed up.
07-09-2003, 09:30 PM#3
Natari
My map uses random teams that are frequently changed throughout the game so I don't think that will work. Because there will be times when player 1 and player 7 will be on the same team.


As for my Groups they are setup fine as far as I can tell. I used this trigger to test them and nothing was missing.

Quote:
Show Team1 Info
Events
Player - Player 1 (Red) types a chat message containing Team1 as An exact match
Conditions
Actions
Player Group - Pick every player in Team1 and do (Game - Display to (All players) the text: (((Name of (Picked player)) + - ) + (Name of PlayerHero[(Player number of (Picked player))])))