Please create an account or Login! Have fun!

C2G: Difference between revisions

Jump to navigation Jump to search
90 bytes added ,  7 February 2019
no edit summary
No edit summary
No edit summary
Line 151: Line 151:
script
script
"This is the end."</nowiki>
"This is the end."</nowiki>
In the example above, the game will load the level stored in the file ChooseYourFuture.c2m; if the player exits using the first exit in reading order, the game will then display the THIS IS THE END. message. If the player exits using the second exit, however, the game will load the level in the file SuperSecretFinalLevel.c2m instead.
In the example above, the game will load the level stored in the file ChooseYourFuture.c2m; if the player exits using the first exit in reading order, the game will then display the THIS IS THE END. message. If the player exits using the second exit, however, the game will load the level in the file SuperSecretFinalLevel.c2m instead, and the THIS IS THE END message will be displayed after the level has been solved.


If there are several players in the level, the exit used by the last player to finish the level will be the one used by the C2G script. If an invalid label is called, or no label is assigned for the exit that was used, the game will continue to work through the C2G file as it would normally.
If there are several players in the level, the exit used by the last player to finish the level will be the one used by the C2G script. If an invalid label is called, or no label is assigned for the exit that was used, the game will continue to work through the C2G file as it would normally.
Line 169: Line 169:


The following line must be added at the beginning of the file (after the set's name):
The following line must be added at the beginning of the file (after the set's name):
  <nowiki>no_bonus | flags =</nowiki>
  <nowiki> no_bonus flags | flags =</nowiki>


With this flag set, bonus flags become [[acting floor]] to [[Chip]], [[Melinda]], their [[player mirror|mirrors]] and [[rover]]s. It has no impact on other monsters and blocks that would not normally pick up the flags.
With this flag set, bonus flags become [[acting floor]] to [[Chip]], [[Melinda]], their [[player mirror|mirrors]] and [[rover]]s. It has no impact on other monsters and blocks that would not normally pick up the flags.

Navigation menu