Not sure if the title is elaborate enough...
I have 4 teams set up, and 5 heroes. The heroes are selectable through a series of dialogs, and when the player is ready to select his hero, they click "Lock In Hero"
Now, this works all fine and dandy with Player 1, and only player 1.
I have it doing this
Event - Any Player uses dialog item with Click
Condition - Used Dialog Item = Lock In Button
Action -
If -
(Triggering Player) == Triggering player from (Players on Team 1)
(hides UI, applies camera, pans camera, creates character, blah blah blah.
Now when I want to call Players on Team 2 it has the same exact setup, and I can't figure out why for the life of me it will not work for anyone but player 1.
It only works for player 1 because of the "triggering player from players on team 1" condition. For example, let's say that player 2 is the first player on team 2. The condition will check: (2 == player 2 from team 2). Since player 2 is the 1st player in team 2, the condition will fail. You'll want to replace that condition with "player is in player group".
Not sure if the title is elaborate enough... I have 4 teams set up, and 5 heroes. The heroes are selectable through a series of dialogs, and when the player is ready to select his hero, they click "Lock In Hero"
Now, this works all fine and dandy with Player 1, and only player 1.
I have it doing this
Event - Any Player uses dialog item with Click Condition - Used Dialog Item = Lock In Button Action - If - (Triggering Player) == Triggering player from (Players on Team 1) (hides UI, applies camera, pans camera, creates character, blah blah blah.
Now when I want to call Players on Team 2 it has the same exact setup, and I can't figure out why for the life of me it will not work for anyone but player 1.
Any thoughts?
Triggering player from (Players on Team 1)
If its teh EXACT same then that needs to be changed to Triggering player from (Players on Team 2)
and the fact taht it says ANY PLAYER uses dialog, shouldnt it be player in player group 1, uses dialog?
@eliek: Go
Guess its my turn to help you now :)
Event Dialog - Any Dialog item is used by Player Any Player with event type Clicked
Actions If Then Else
if- (used dialog item) == Lock in Hero
if- (Current player (Triggering player)color) == (player 02) Blue
Then
Create unit using integers and stuff blablabla
This can be your problem, the last line, i got mine based on 3 variables... let me know if it is and i post it for you.
@Chanito91: Go
ill take a look into this, ill get back to you on it.
@eliek: Go
It only works for player 1 because of the "triggering player from players on team 1" condition. For example, let's say that player 2 is the first player on team 2. The condition will check: (2 == player 2 from team 2). Since player 2 is the 1st player in team 2, the condition will fail. You'll want to replace that condition with "player is in player group".
@Khalanil1: Go
Pure genius. This worked, thank you. Finally realized I had to make that condition return true for:
(Triggering Player) is in (Players on Team 2) == true