Map Editor Example
The Map Editor bundled with WormsPX allows you to add complex objects on the map, such as trigger zones, teleport areas, and all kinds of things. Simply go to the "Worms Armageddon/Editors" directory and open MEd.exe to use it.
PX comes with a bunch of libraries which are coded by the PX development team. They allow you to add more objects to the map. To add a library, open Scripts -> Libraries while you are editing your map.
- editorsobj.pxl : adds simple objects to the editors
- Spawnpoints, for automatic placement on races and fort.
- ObjectCleaner, used to remove objects in a specified zone. For example, it could be used to remove mines on spawnpoints.
- turret.pxl adds a Mine Turret that shoots all the players
- partTraps.pxl adds Smoke Traps to the game which will disorient the players
- Traps.pxl is the library used to create obstacle races.
- Zone is used to specify the exact place where your traps should be activated
- Trap launches grenades, missiles, mortars or bazookas when a worm enters a specified zone
- Game Control is not an object. It can be placed anywhere on the map and it's used to change specific things in the game.
- There are two kinds of checkpoints
- Worms Supply is the place where it creates a new worm when a team reaches a checkpoint
- WormsCheckpoint is the place where a worm respawns after dying
- Teleport works like a portal. It teleports objects and worms to another teleport.
- Force Field is used for gravity, wind, and for explosive walls too
- CrateSupply is used to add crates to specified places on the map
First, open your map (32-bit maps are supported). And add the libraries below:
On the left side of the editor, you have a menu where you can create new objects, change their parameters or copy them.
After creating an object, your entity will appear on the map.
Let's suppose you want to create a mine on the magma of this map.
Simply select Mines and click on "CREATE".
A mine should appear on the top left of the Editor. Place it on the magma with your mouse.
Now let's see about the parameters. Each object has its own parameters. The parameters are values which are used to change the object. On the mine, we have 5 parameters.
- Damage is how big the explosion is. The default value is 50.
- Fuse is the time (in milliseconds) before the mine explodes when a worm goes near it. The default value is 1000.
- The radius is the maximum distance between the worm and the mine that could cause the explosion. The default value is 60.
- Floating is a bool, means this parameter can have only 2 values. If checked, gravity is ignored for the mine. Default value is false.
- RespawnTime is the number of rounds before the mine respawns. If the value is 0, the mine won't respawn. Default value is 0