Please create an account or Login! Have fun!
Editing C2G
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 248: | Line 248: | ||
In the example above, Normal.c2m will be level 9. | In the example above, Normal.c2m will be level 9. | ||
No matter how your level numbering is set up, completing a level will always briefly display the current level as being its previous value | No matter how your level numbering is set up, completing a level will always briefly display the current level as being 1 + its previous value. This is unavoidable. | ||
=== Speed === | === Speed === | ||
Line 276: | Line 276: | ||
=== Chaining === | === Chaining === | ||
Scripts can be "chained" using the chain directive | Scripts can be "chained" using the chain directive. This can be useful for compartmentalizing long scripts associated with particular levels. | ||
<nowiki>chain "anotherscript.c2g"</nowiki> | <nowiki>chain "anotherscript.c2g"</nowiki> | ||
Line 282: | Line 282: | ||
chain "scriptinanotherdirectory.c2g"</nowiki> | chain "scriptinanotherdirectory.c2g"</nowiki> | ||
Note that if the first c2g file CC2 reads chains to another script but does not provide a map itself, CC2 will say the levelset is invalid. This is because it specifically checks the first c2g it reads for the use of "map" followed by a valid map. To avoid this, put a valid map ''after'' calling the chain, such that it will never be accessed since the parser will be chained away from the script before reaching it. | Note that if the first c2g file CC2 reads chains to another script but does not provide a map itself, CC2 will say the levelset is invalid. This is because it specifically checks the first c2g it reads for the use of "map" followed by a valid map. To avoid this, put a valid map ''after'' calling the chain, such that it will never be accessed since the parser will be chained away from the script before reaching it. | ||
== Comments box == | == Comments box == |