C2G: Difference between revisions

846 bytes added ,  7 February 2019
no edit summary
No edit summary
Line 154: Line 154:


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.
=== Gender choices ===
C2G scripting can be used to send the player to different levels depending on whether they finished the level as Chip or Melinda. This will require setting up labels, similar to exit checkpoints.
After calling the appropriate level's "map", the following lines will be required:
<nowiki>male gender == do goto <#label>
female gender == do goto <#label></nowiki>
Replace <#label> with the appropriate labels. The "male" line is for Chip, and the "female" line for Melinda; the order of the two lines can be changed.
If there are several players in the level, the gender of the last one to finish the level will be the one used by the C2G script. If an invalid label is called, or no line is specified for a specific gender, the game will continue to work through the C2G file as it would normally.


=== Editor ===
=== Editor ===
The following line
The following line
  edit
  edit
will open the game's built-in editor.
will open the previous level in the game's built-in editor.


=== Automatic replays ===
=== Automatic replays ===