Levels and visibilities

When you create monsters, meteors or visibilities during the game, you always create them for a specific level. If you didn't take care about levels, everything will be associated to the first level, level number 0. A level contains a start zone where the heroes revive, and a end zone where to go to finish the level and start the next one. When a level ends, the monsters and meteors disapear and the next level takes place with its own monsters and meteors. The visibility rectangles enable you to discover the new level. When you go to the end of the last level, a message says "congratulations" and that the game will restart soon.
  • -createStart (crs) [next(n)]
    Creates the start zone (a rectangle formed with two clicks) of the "making level" or the next one if specified (if the parameter "next" is present). The start zone of a level is where the heroes revive, when someone reaches the level or when all die. Be sure the zone doesn't touch a death terrain. When using the command "-createStart next", if the the next level doesn't exist yet, it is created just before creating its start zone. This method to create a level is more recommended than using the newLevel command.
    Examples
    -createStart
    -crs next
  • -createEnd (cre)
    Creates the end zone (a rectangle formed with two clicks) of the making level. The end zone of a level is not the same one as the start zone of the next level. A start zone must not touch any death terrain or heroes could die at revive, whereas a end zone must touch death terrains in order to be sure that it is impossible to avoid it, because it must be touched to enable the checkpoint. Really, don't hesitate to make the end zone widely touch death terrains.
    Examples
    -createEnd
    -cre
  • -setMakingLevel (setmkl) ‹levelId› | current(c)
    Sets the level you choose personnaly to create or continue creating (put "0" for the first level). The default value is "current" which means working on the current level, whatever it is. At the beginning of the game, everybody works on the same level, the current one. If the players want to work on different levels, each one can use this command. Warning, this command works only if the specified level already exists. When a level is the making level of at least one player, it is enabled, which means the monsters are present, the meteors too, and the visibilities are enabled. All commands which act on a specific level, like those to create of delete monsters, act only on the making level of the player typing the command. For example, you can delete monsters of your making level only. To be back to the normal state, just use the command with the "current" parameter.
    Examples
    -setMakingLevel 3
    -setmkl current
  • -getMakingLevel (getmkl)
    Displays the id of the level you are creating (the first one is id 0). If the level you are creating is the current level, displays the words "same as current level" too.
    Examples
    -getMakingLevel
    -getmkl
  • -newLevel (newl)
    Creates a new level after the last one. There can be 200 levels at maximum. The "-createStart next" command is more recommended to create a new level, because it creates the start zone too, which is compulsory.
    Examples
    -newLevel
    -newl
  • -setLivesEarned (setle) ‹livesNumber› [‹levelId›]
    Sets the number of lives earned at the specified level. For the first level (level 0), sets the number of lives at the beginning of the game. If you don't specify the second parameter (‹levelId›), the command sets the number of lives for your making level.
    Examples
    -setLivesEarned 3
    -setle 2 1
  • -setStartMessage (setsm) [‹message›]
    Sets the start message of the making level (spaces allowed). You can't use the "," character because its role is to split commands. But, if you really want to put "," in the message, you can add it with the JNGP, "JASS GENERATOR\Init levels" trigger. If you put no parameter to this command, it deletes the message for the making level.
    Examples
    -setStartMessage
    -setsm Warning ! Reverse slide !
  • -getStartMessage (getsm)
    Displays the start message of the making level. If there is no start message, displays "is not defined".
    Examples
    -getStartMessage
    -getsm
  • -nbLevels (nbl)
    Displays the number of levels that are currently in the map.
    Examples
    -nbLevels
    -nbl
  • -removeLastLevel (remll)
    Removes the last level and everything it contains, like monsters, meteors, visibilities... It is impossible to remove the first level. Warning, this command is very powerfull and there is no way back.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -removeLastLevel
    -remll
  • -createVisibility (crv)
    Creates visibility rectangles for the making level. Each couple of right clicks creates one visibility zone. To get more information of how to create visibilities, read the tutorial.
    Examples
    -createVisibility
    -crv
  • -removeVisibilities (remv)
    Removes all visibility rectangles existing for the making level. Use this command when you are not satisfied of how the visibilities of the level are.
    Examples
    -removeVisibilities
    -remv