When i run my map in the editor, the victory screen comes up when it is meant to, works as it should and ends the game for the player. As soon as i publish the map the victory dialog does not come up at all and the game does not end.
Does anyone have any ideas to why this is happening or to why it works in the test map but not published? :(
(Number of Living units in (Any units in (Entire map) owned by player (Owner of (Triggering unit)) matching Excluded: Structure, Missile, Dead, Hidden, with at most Any Amount)) == 0
Actions
General - Pick each integer from 1 to 8, and do (Actions)
Actions
Game - End game in Defeat for player (Triggering player) (Show dialogs, Show score screen)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Number of players in (Enemies of player (Killing player))) == 0
Then
Game - End game in Victory for player (Killing player) (Show dialogs, Show score screen)
Game - End game in Victory for player (Number of players in (Allies of player (Killing player)))
(Show dialogs, Show score screen)
The issue at the mo is the trigger. The dialog is coming up when all the players are defeated instead of when all the players that are not on the killing players team are defeated.
Events
Unit - Any Unit dies
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Number of players in (Enemies of player (Killing player))) == 0
Then
Game - End game in Victory for player (Killing player) (Show dialogs, Show score screen)
Game - End game in Victory for player (Number of players in (Allies of player (Killing player)))
(Show dialogs, Show score screen)
You have now posted two versions of your trigger. I guess your second post shows the updated one?
Look at your last action. It ends the game for player "Number of players in (Allies of player (Killing player))", which is obviously not a usual player ID. For example, if the killing player has two allies, then this action would end the game for player 2! Instead, loop through all allies of the killing player and call the "End Game" action in every loop.
Another thing I noticed is that, in your second version, there is no action which lets a player end in defeat.
Hi :)
When i run my map in the editor, the victory screen comes up when it is meant to, works as it should and ends the game for the player. As soon as i publish the map the victory dialog does not come up at all and the game does not end.
Does anyone have any ideas to why this is happening or to why it works in the test map but not published? :(
Any information would be greatly appreciated. :)
When and how do you display the victory screen? Could you post the trigger please?
Events
Unit - Any Unit dies
Local Variables
Conditions
(Number of Living units in (Any units in (Entire map) owned by player (Owner of (Triggering unit)) matching Excluded: Structure, Missile, Dead, Hidden, with at most Any Amount)) == 0
Actions
General - Pick each integer from 1 to 8, and do (Actions)
Actions
Game - End game in Defeat for player (Triggering player) (Show dialogs, Show score screen)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Number of players in (Enemies of player (Killing player))) == 0
Then
Game - End game in Victory for player (Killing player) (Show dialogs, Show score screen)
Game - End game in Victory for player (Number of players in (Allies of player (Killing player))) (Show dialogs, Show score screen)
Else
So you have issue with "victory dialog" or with your trigger?
Did you tried any other form of noticing if any action fires before/after victory dialog?
The issue at the mo is the trigger. The dialog is coming up when all the players are defeated instead of when all the players that are not on the killing players team are defeated.
Events
Unit - Any Unit dies
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Number of players in (Enemies of player (Killing player))) == 0
Then
Game - End game in Victory for player (Killing player) (Show dialogs, Show score screen)
Game - End game in Victory for player (Number of players in (Allies of player (Killing player))) (Show dialogs, Show score screen)
Else
You have now posted two versions of your trigger. I guess your second post shows the updated one?
Look at your last action. It ends the game for player "Number of players in (Allies of player (Killing player))", which is obviously not a usual player ID. For example, if the killing player has two allies, then this action would end the game for player 2! Instead, loop through all allies of the killing player and call the "End Game" action in every loop.
Another thing I noticed is that, in your second version, there is no action which lets a player end in defeat.