Monster spawns
In MEC a "monster spawn" is a rectangle zone where monsters periodically appear at a border of the zone, move to the opposite border and disappear. A monster spawn has a label, a monster type, a direction (four possibilities) and a frequency (number of monsters appearing per second). You can create several monster spawns per level.
-
-createMonsterSpawn (crmsp) ‹monsterSpawnLabel› ‹monsterLabel› ‹direction› [‹frequency›]Creates a monster spawn. You type the command then make two clicks defining the place of the spawn zone.
- You give to your monster spawn a label of your choice. The label allows you to specify you monster spawn to use other commands allowing to modify or remove the monster spawn. All monster spawns of a same level must have different labels.
- You choose a monster type to be used for your monster spawn. All monsters of the spawn will be of this type.
- You specify the direction of you monster spawn. There are four possibilities : leftToRight or ltr, upToDown or utd, rightToLeft or rtl and downToUp or dtu. For example, if you choose leftToRight, the monsters will appear to the left border at a random position vertically, and then move to the right side, to the same place vertically.
- You can define the frequency of your monster spawn. If you don't, the default frequency will be chosen : 2. The minimum frequency is 0.1 whereas the maximum frequency is 30.
Examples-createMonsterSpawn crabUpDown crab upToDown 5
-crmsp giants1 g ltr -
-setMonsterSpawnLabel (setmsl) ‹oldMonsterSpawnLabel› ‹newMonsterSpawnLabel›Changes the label of a monster spawn. All monster spawns of a level must have different labels.Examples-setMonsterSpawnLabel crabUpDown crabs2
-setmsl g1 giants1 -
-setMonsterSpawnMonster (setmsm) ‹monsterSpawnLabel› ‹monsterLabel›Changes the monster type of a monster spawn. All new monsters of the spawn will be of this type.Examples-setMonsterSpawnMonster cabUpDown crab
-setmsm giants2 g -
-setMonsterSpawnDirection (setmsd) ‹monsterSpawnLabel› ‹direction›Changes the direction of a monster spawn. All the monsters spawned before the command is typed, are removed. There are four possibilities of directions : leftToRight or ltr, upToDown or utd, rightToLeft or rtl and downToUp or dtu. For example, if you choose leftToRight, the monsters will appear to the left border at a random position vertically, and then move to the right side, to the same place vertically.Examples-setMonsterSpawnDirection crabUpDown downToUp
-setmsd giants2 rtl -
-setMonsterSpawnFrequency (setmsf) ‹monsterSpawnLabel› ‹frequency›Changes the frequency of a monster spawn. The frequency is the number of monsters appearing per second. The minimum frequency is 0.1 and the maximum one is 30.Examples-setMonsterSpawnFrequency crabUpDown 6.5
-setmsf giants2 0.5 -
-displayMonsterSpawns (dms)Displays the information of all the monster spawns of the level you are making. If you didn't use the setMakingLevel command, your making level is the current level. Here is how the information are displayed : label, monster type, direction then frequency.Examples-displayMonsterSpawns
-dms -
-deleteMonsterSpawn (delms) ‹monsterSpawnLabel›Deletes a monster spawn among all the monster spawns of the level you are making. If you didn't use the setMakingLevel command, your making level is the current level.Examples-deleteMonsterSpawn crabUpDown
-delms giants2