Testing for game end?
Testing for game end?
Is there a way for a map action to test for the end of a netgame? I want the game end to trigger a model animation, but can't seem to get it to work right.
The cake is a lie.
In Loathing map-actions simply create a "Netgame Time" action set to deactivate on success. On the middle row of buttons click "Add" and select "Game Over", select the game-over entry and hit the "Add" button at the bottom of the screen, enter a value of "true".
Now hit the middle "Add" button again to add an "Activates on Success" condition and add any actions you wish to trigger to the list at the bottom.
You can do time remaining less than as well if you want to do something 10 seconds before game-end, however it does not account for sudden death, so the closest you can get to the end game (without actually being end-game) is when sudden death begins, since it can end at any time. You are better off making sure your end-game actions can be reasonably completed within the time before the game switches back to the game-lobby.
Now hit the middle "Add" button again to add an "Activates on Success" condition and add any actions you wish to trigger to the list at the bottom.
You can do time remaining less than as well if you want to do something 10 seconds before game-end, however it does not account for sudden death, so the closest you can get to the end game (without actually being end-game) is when sudden death begins, since it can end at any time. You are better off making sure your end-game actions can be reasonably completed within the time before the game switches back to the game-lobby.