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 44: | Line 44: | ||
"clever tricks and" ; some are also evil | "clever tricks and" ; some are also evil | ||
"is guaranteed" | "is guaranteed" | ||
"to be enjoyable" | "to be enjoyable." | ||
" " | " " | ||
"Have fun!" | "Have fun!" | ||
Line 62: | Line 62: | ||
== Advanced scripting == | == Advanced scripting == | ||
In addition to the features described above, C2G files can support some additional keywords that provide extra features. '''Note that any information beyond this point may be incomplete or inaccurate.''' | In addition to the features described above, C2G files can support some additional keywords that provide extra features. '''Note that any information beyond this point may be incomplete or inaccurate.''' | ||
=== Score === | === Score === | ||
Line 97: | Line 76: | ||
C2G files can make it possible to allow the player to keep [[item]]s and [[key]]s across levels. | C2G files can make it possible to allow the player to keep [[item]]s and [[key]]s across levels. | ||
In order to do this, the C2G script needs | In order to do this, the C2G script needs the line: | ||
<nowiki>ktools flags | flags =</nowiki> | <nowiki>ktools flags | flags =</nowiki> | ||
This allows the player to keep tools (and keys) into the next level, instead of the key and tool inventories being reset like normal. With this flag set, the player can set up his inventories in one level and keep them into the next. | This allows the player to keep tools (and keys) into the next level, instead of the key and tool inventories being reset like normal. With this flag set, the player can set up his inventories in one level and keep them into the next. | ||
Alternatively, the set designer can use the C2G script to preset the player's inventories explicitly. This can be done with the following code | Alternatively, the set designer can use the C2G script to preset the player's inventories explicitly. This can be done with the following code: | ||
<nowiki><#> keys = ; to preset the key inventory | <nowiki><#> keys = ; to preset the key inventory | ||
<#> tools = ; to preset the tools inventory</nowiki> | <#> tools = ; to preset the tools inventory</nowiki> | ||
Line 137: | Line 116: | ||
Note that tool codes > 16 will be reduced to a value <= 16, and key counts > 9 will be reduced to 9. These limits do not apply when either inventory is carried over from the previous level. | Note that tool codes > 16 will be reduced to a value <= 16, and key counts > 9 will be reduced to 9. These limits do not apply when either inventory is carried over from the previous level. | ||
=== | === Time levelset === | ||
C2G files make it possible to set a time limit for the entire levelset, rather than individual levels. | C2G files make it possible to set a time limit for the entire levelset, rather than individual levels. This is done with the following code: | ||
<nowiki>ktime flags | flags = | <nowiki>ktime flags | flags = | ||
<#> tleft =</nowiki> | |||
Replace "<#>" with the desired time limit for the set. This will ignore any time limits set for individual levels. Time limits will be carried over from one level to the next, and restarting the level does not reset the time limit. [[Time bonus]]es and [[time penalty|time penalties]] can still be used. It is currently unknown what happens when the time limit reaches 0. | |||
Replace "<#>" with the desired time limit for the set. This will ignore any time limits set for individual levels. Time limits will be carried over from one level to the next, and restarting the level does not reset the time limit. [[Time bonus]]es and [[time penalty|time penalties]] can still be used. | |||
=== Editor === | === Editor === | ||
Line 272: | Line 130: | ||
The following lines | The following lines | ||
<nowiki>1 level = | <nowiki>1 level = | ||
50 | 50 highspeed = continue replay | silent | flags =</nowiki> | ||
will cause the game to automatically replay the recorded solutions for all levels in the set, in extremely high speed. This can be used to quickly verify that all levels are solvable and have recorded replays. | |||