312
edits
Please create an account or Login! Have fun!
(Removed extraneous sentence) |
Chipster1059 (talk | contribs) No edit summary |
||
Line 76: | 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 the | In order to do this, the C2G script needs this line at the beginning of the file (after the set name): | ||
<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, placed before calling the level's "map": | ||
<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 117: | Line 117: | ||
=== Time levelset === | === 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. In order to do this, the following code must be added to the beginning of the file, after the "game" directive: | ||
<nowiki>ktime flags | flags = | <nowiki>ktime flags | flags =</nowiki> | ||
<#> tleft =</nowiki> | Before the first level, this code will also be required: | ||
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. | <nowiki><#> 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. After the time limit reaches 0, or if a level is skipped, all future levels will be untimed. | |||
=== Editor === | === Editor === | ||
Line 131: | Line 132: | ||
<nowiki>1 level = | <nowiki>1 level = | ||
50 highspeed = continue replay | silent | flags =</nowiki> | 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. | added to the beginning of the file (after the set name) 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. |