Skip to content

Combat settings ​

How fights work: the formulas for damage and hit chance, what the winner can do, who is protected, and the optional bounty, revenge and ranked-duel systems. Most fields are formulas, so read the help text under each one.

Where: Modules → Combat (needs the Combat module)
You need: the Manage settings permission

Modules → Combat. The numbers match the fields below.Modules → Combat. The numbers match the fields below.
Modules → Combat. The numbers match the fields below.

Fights

FieldWhat it isNotes
1Combat moderequiredChoice — one of: Turn by turn (legacy), Automatic (whole fight in one go)Turn: the attacker picks a weapon every round and the defender answers (legacy). Auto: the whole fight is played with the chosen weapon in one request, with the same rules, and the full log is shown. Fights in progress finish in the mode they started in.
2Only attack in the same cityOn/off
Starts as: Off
Legacy: "You can only attack someone in the same location!"
3Fight timeout (minutes)requiredNumberA fight with no action for this long ends as if the attacker fled (legacy kept it in the session).
4Most rounds in an automatic fightrequiredNumberAn automatic fight still undecided after this many rounds ends as if the attacker fled.
5Minimum target HPrequiredNumberTargets with less HP can't be attacked (legacy 5: "You can only attack those who have health").
6Items usable per fightrequiredNumberIn turn mode the attacker may use this many items (healing, boosts) instead of striking. 0 = off (legacy).
7Item types usable in a fightSeveral choices — pick from your game's own entriesNone = any usable item.

Formulas

FieldWhat it isNotes
8Energy needed to attackrequiredFormulaEnergy the attacker must have to start a fight (legacy: half their max energy).
9Energy cost of a fightrequiredFormulaTaken once, on the first strike.
10Damage with a weaponrequiredFormulaThe hitter is the subject, the victim TARGET_. Truncated to an integer, then the victim's armour is taken off (minimum 1).
11Damage with fistsrequiredFormulaUsed by a defender with no weapon equipped.
12Hit chance (%)requiredFormulaA hit when a roll of 1–100 is at most this.

Critical hits

FieldWhat it isNotes
13Critical roll: die sizerequiredNumberEvery hit rolls 1 to this (legacy 40).
14Critical hit facesrequiredSeveral choices — pick from a list of 40Rolls that make a critical hit (legacy 17: a 1 in 40 chance).
15Weak hit facesrequiredSeveral choices — pick from a list of 40Rolls that make a weak hit (legacy 25 and 8: 2 in 40). A face in both lists is a critical hit.
16Critical hit multiplierrequiredFormula
17Weak hit divisorrequiredFormula

Outcomes

FieldWhat it isNotes
18Mug: money stolenrequiredFormulaThe winner is the subject, the loser TARGET_. Capped at what the loser holds.
19Mug: hospital minutesrequiredFormulaLEVEL is the winner's level, as legacy.
20Hospitalise: hospital minutesrequiredFormula
21Leave: hospital minutesrequiredFormula
22Leave: exp gainedrequiredFormula
23Exp lost on defeatrequiredFormulaThe loser (attacker) is the subject. Legacy used PHP ^ (XOR) where a cube was probably meant; kept for balance. Exp never goes below 0.
24Extra winner choicesSeveral choices — one of: Steal an item, HumiliateOffered next to mug, hospitalise and leave. None = legacy.
25Humiliate: hospital minutesrequiredFormula
26Humiliate: exp gainedrequiredFormula

Protection

FieldWhat it isNotes
27Newbie protection: below levelrequiredNumberCharacters below this level can't be attacked. 0 = off (legacy).
28Newbie protection: first daysrequiredNumberCharacters younger than this many days can't be attacked. 0 = off (legacy).
29Attacking ends newbie protectionOn/off
Starts as: Off
A protected character who attacks someone loses their protection for good.
30Shield after a defeat (minutes)requiredNumberA beaten defender can't be attacked again until their hospital time ends plus this many minutes. 0 = off (legacy).
31Most attacks on the same player per 24 hoursrequiredNumber0 = no limit (legacy).

Weapons and armour

FieldWhat it isNotes
32Slots that count as armourSeveral choices — one of: primary, secondary, armourArmour of the items equipped in these slots protects in a fight. None = every slot.
33Players can pay to repairOn/off
Starts as: Off
Items with durability wear out; this opens the repair page. Repair items (effect "Repair equipped items") work either way.
34Repair costrequiredFormula

Revenge and bounties

FieldWhat it isNotes
35Revenge energy discount (%)requiredNumberA player who was beaten pays this much less energy to attack the winner back, once. 0 = off (legacy).
36Revenge window (hours)requiredNumber
37BountiesOn/off
Starts as: Off
Players can put money on another player's head; it is held until someone beats them.
38Smallest bountyrequiredNumber
39Bounty fee (%)requiredNumberPaid on top of the bounty and never refunded.
40Bounty lifetime (days)requiredNumberUnclaimed bounties go back to the placer after this. 0 = never.
41How a bounty is claimedrequiredChoice — one of: Any win, Only the "Claim the bounty" choice

Rewards

FieldWhat it isNotes
42Win streak titlesrequiredLong text{"5": "Brawler", "10": "Warlord"}: the title shown next to the name of a player on that many wins in a row. Empty = none.

Ranked

FieldWhat it isNotes
43Ranked duelsOn/off
Starts as: Off
Players who opt in can duel for rating: no mugging, no hospital, no exp lost.
44Starting ratingrequiredNumber
45Rating change factor (K)requiredNumber
46Season length (days)requiredNumberAt the end of a season the top players get their rewards and every rating resets. 0 = no seasons.
47Season rewardsrequiredLong text{"1": [{"type": "currency", "config": {…}}], "2": […]}: item effects given to each final rank.

Anti-farming

FieldWhat it isNotes
48Flag fights between players on the same IPOn/off
Starts as: Off
49Flag more than this many attacks on the same playerrequiredNumber0 = off.
50Repeat window (hours)requiredNumber

Things to know about the fields ​

  • Combat mode: Turn means the attacker picks a weapon every round and the defender answers (as in the original game). Auto plays the whole fight with the chosen weapon in one request and shows the full log. Fights already in progress finish in the mode they started in.
  • Fights: Fight timeout ends a fight with no action as if the attacker fled. Minimum target HP stops attacks on players with too little health. Items usable per fight lets the attacker heal or boost instead of striking in turn mode (0 is off).
  • Formulas decide the energy to attack and to fight, the damage with a weapon or with fists (the hitter is the subject and the victim TARGET_; the victim's armour is then taken off, minimum 1) and the hit chance (a roll of 1–100 must be at most the result).
  • Critical hits: every hit rolls a die; the critical and weak faces you pick decide which rolls count. A face in both lists is a critical hit.
  • Outcomes set what the winner gets for each choice (mug, hospitalise, leave, and optional Steal an item and Humiliate) and the experience the loser loses. In these formulas the winner is the subject and the loser TARGET_.
  • Protection: newbie protection (by level or by account age), a shield after a defeat and a limit on attacks on the same player per 24 hours. 0 turns each off.
  • Weapons and armour: Slots that count as armour pick which equipped slots protect. Players can pay to repair opens the repair page; items with a repair effect work either way.
  • Revenge and bounties: revenge gives a beaten player an energy discount for one counter-attack. Bounties let players put money on another player's head, held until someone beats them; the fee is paid on top and never refunded.
  • Win streak titles is a map like {"5": "Brawler", "10": "Warlord"}: the title shown next to the name after that many wins in a row.
  • Ranked: players who opt in can duel for rating, with no mugging, no hospital and no experience lost. A season ends after Season length days: top players get the Season rewards and every rating resets. 0 means no seasons.
  • Anti-farming flags fights between players on the same IP, or too many attacks on one player, for review on the Combat flags page.
  • Item profiles, Fight drops, Combat flags (Combat) and Fight logs (Modules).