Weapon settings summary
From Worms Knowledge Base
This article's goal is to sum up the weapons settings.
- Each weapon's settings are 4 bytes long. A byte can theorically store a value between 0 and 255. Each byte correspond to a different setting:
- Crate Probability
- You can consider there are 2 main categories of weapon: regular ones and super ones.
- You can't edit super weapons' power or crate probability settings. Those unused bytes allowed some WormKit modules to store their settings directly in the scheme file: RubberWorm is a good example of that phenomenon.
- In WWP schemes and in W:A v1 schemes (for version 3.0), you can't edit super weapons' settings at all.
Here are the super weapons (they appear in that order in scheme files) :
|2||Super Banana Bomb|
|4||Girder Starter Pack|
|6||Scales Of Justice|
|8||Mike's Carpet Bomb|
|9||Patsy's Magic Bullet|
|10||Indian Nuclear Test|
|17||French Sheep Strike|
A 10 value or a value between 128 et 255 (both included) means infinite.
However, you'll need an external scheme editor to set a value above 10.
Warning: editing super weapons' power settings won't change anything. Also, in WWP, the limit is indeed 1-5 for every weapon.
The ingame scheme editor only lets you set this value from 1 to 5, whilst you can actually set it from 1 to 256.
However, most of the weapons don't go that far with power settings. There is no general rule that is the same for every weapon, but we can still notice that most of the weapons' standard power values go from 1 to 20, and that many of them follow the pattern shown below (where the percentage shown in the "Damage" column is a comparison with power 3).
- You have some weapons in the Detailed Weapon Settings section just below.
- Jet Pack's power setting can be edited since 18.104.22.168. It can go from 1 to 256, 1-5 meaning 30 fuel, 6 meaning infinite fuel. 7-256 values mean fuel amount + 6 (7-6=1 so 7 means 1 fuel, and so on).
- By editing the Girder's power setting, you actually edit its max distance from the active worm. The values goes by steps of 200, from 200 to 51,000 pixels. The Girder's power setting also affect the Girder Starter Pack.
- Ninja Rope: any value above 5 means unlimited shots.
- Editing the Parachute, Bungee and Teleport's power settings is eye-candy, but is still possible.
- Editing all the first row's utilities' power setting isn't possible; it's eye-candy for all of them as well (so far, I only found a possible use for the Low Gravity).
Any unhandled values will simply makes the affected weapons not exploding at all.
Detailed Weapon Settings
This table does not include any additional damage caused by the bat, such as fall damage. The hit distances are measured in pixels, are only horizontal distances between same ground levels, and are valid when the bat's angle is set to 45°. Sliding is not included.
|Setting||Damage||Hit Distance||Setting||Damage||Hit Distance||Setting||Damage||Hit Distance||Setting||Damage||Hit Distance|
|1||24 hp||410 px||6||24 hp||410 px||11||15 hp||156 px||16||15 hp||156 px|
|2||27 hp||514 px||7||27 hp||514 px||12||21 hp||310 px||17||21 hp||310 px|
|3||30 hp||643 px||8||30 hp||643 px||13||30 hp||643 px||18||30 hp||643 px|
|4||33 hp||773 px||9||33 hp||773 px||14||45 hp||1444 px||19||39 hp||1083 px|
|5||36 hp||927 px||10||36 hp||927 px||15||60 hp||2584 px||20||45 hp||1444 px|
Any setting from 21 results in 0 hp damage, and the attacked worm is not moved from its original position. Note that there can be an error of around 3 pixels for the hit distances.
Damage is applied by substracting a fixed percentage of the target's health, depending on its power setting. If, however, a worm with 1 health point is attacked, it will die.
Any setting from 6 to 241 results in 0% damage. However, the worm is still smashed into the ground, thus the player can move its worm through it.
How many turns will players have to wait before using a weapon, but also before they can find it in a crate?
Almost works in the same way the ammo setting works: difference is that values considered as infinite are only 128-255, not 10;128-255.
There, you would ask me, how can infinite delay be useful? Well, with this you can prevent some super weapons from appearing in weapon crates.
Crate Probability Setting
First of all, editing this setting will be useless if there are no weapon crates at all, and if you don't want to create a Rubber schemes.
Yes, I just mentioned Rubber Worm. Since super weapons' crate probabilities' are officially unused, some modules, like Rubber Worm, use these bytes in order to store special settings in this byte. If you don't want your scheme to be Rubber Worm, then keep the super weapons' crate probability to 0, otherwise there will be desynchronisations between players using Rubber Worm and players not using Rubber Worm.
So, as said above, you can't edit the super weapons' crate probability. You can only tell whether they might appear in crates or not. However, there, Select Worm acts a little bit differently: it always has a 0.5 crate probability, just in case super weapons are disabled and all other weapons have a 0 crate probability. In order to prevent it from appearing into crates, either give it infinite ammo or infinite delay (players will never be able to use the Select Worm, though).
Last, but not least, you can't edit the Utilities' crate probability, because the game has an already defined set of probabilities.