Gameplay

Items and loot

Change and add items, quality prefixes and "of X" suffixes, named bonuses and the port's new item properties, the shop's stock and what random loot rolls - the Items, Prefixes & Suffixes, Bonuses and Loot & Store editors.

Four editors in the Gameplay section change the game's items, all writing the mod's gamedata/items.toml:

Editor Changes
Items Every base and unique item, and new ones
Prefixes & Suffixes The loot rollers' quality prefixes (Rusty, Ancient...) and "of X" suffixes
Bonuses New property keywords that give several properties at once, or run a script
Loot & Store The shop's stock, which items random loot rolls, and combines

How the table editors work

The Items, Prefixes & Suffixes, Bonuses, Loot & Store, Skills and Rules & Vars editors all work the same way:

  • The list has the game's entries (what the game converted from your disc) with the mod's on top: * marks an entry the mod changes, + one it adds.
  • A changed key shows in colour; hover it for the original value. Revert drops one change; Revert all or Delete the whole entry.
  • New... adds an entry, as a copy of the selected one or empty.
  • Every edit is an undo step. Save (or Save All) writes only the keys that differ from the game.
  • Problems, under the fields, checks the entry the way the game reads it: types and ranges, item strings, unknown classes. The Details panel lists the mod's whole diff against the game.
  • Every property string field has a + button: a picker of every property keyword (the disc's, the port properties by group, the mod's bonuses), with what each does. It appends one with example numbers.

Item strings

Items, chests, shops, scripts and saves describe an item as an item string: a base item, then up to its slot count of properties (four unless the item says otherwise), each a keyword with up to three numbers.

longsword+damageincrease25+strengthbonus5
ring+goldfind25
shortsword+damageincrease-25+requiredlevel1

Numbers are written a, a-b or a,b-c. The disc's 42 property keywords are:

resistfire resistcold resistpoison resistdisease resistmagic resistall healthbonus manabonus strengthbonus intelligencebonus dexteritybonus staminabonus healthregeneration manaregeneration armorbonus attackspeed firedamage colddamage poisondamage shockdamage diseasedamage bugzapper bugexploder undeadbonus undeaddestroy critical stunresistance fireburst frostburst poisonburst lightningburst damageincrease weightmodifier costmodifier requiredlevel requiredstrength requiredintelligence requireddexterity requiredstamina requiredclass requiredblunt requiredslashing

Items

Filter by category, bases or uniques. The fields:

Field Means
Category Weapon, armour or misc
Slot One-handed, two-handed / bow / thrown, shield, body, ring, neck, quiver, gloves, boots, helmet, leggings, earring, accessory, not equippable
Kind Weapons: one-handed, two-handed sword, two-handed axe / hammer, staff / polearm, bow, thrown
Damage type Blunt, piercing, slashing
Damage, attack, armour The numbers
Min level The lowest item level random loot rolls it at
Price Its value (0: computed from its numbers)
Weight, count Pounds, and the stack size it comes in
Flags Each bit named: stackable, skin variants, never rolled, materials, cloth, unique, quest, figurine...
Skin, icon, model Its worn / held look and its model on the ground
Unique, order A unique item (its whole string is its key); its place in the table
Grid The inventory cells it covers, 1 to 4 each way (unset: from its icon's size)
Slots Its property ("gem") slots, 1 to 8: see Property slots
Script A Lua script whose hooks run while it's worn
Label Its shown name in words, for a new item without a text key <item>_name
Accessory, fits all, mesh, worn light An item worn on the hips, the lower back, the neck or the shoulders, with its own model: see Accessories
Held light, light radius / colour / height / at, light flame A torch or another light: see Lights
Icon (image) icon = "ui/icons/<name>.png": an inventory icon from an image in the mod, for any item

The preview shows the item's shown name (and edits its text), value, buy and sell prices, weight, the level the rollers stamp, a unique's properties, and the restrictions. The game has no race restrictions on items.

Item Preview (a panel of its own) shows the item as the game does, rolled with a sample prefix, suffix, skin and race: its icon, its cells in an inventory page (two sliders set the grid; Use the icon's size removes it) and its tooltip in the game's words. 3-D view shows its model in the viewport, the one the hero wears or holds, turning.

# gamedata/items.toml (from the example-gameplay-rules example)
[item.lantern]                   # a new item: a lantern held in the off hand (see Lights below)
category = 2                     # misc: the backpack's misc page
slot = 3                         # an off-hand item
count = 1
weight = 3
price = 60                       # x 0.6 in the shop: 36 gold
flags = 65536                    # never rolled as loot
held_light = true                # held in the torch slot beside the shield
light_radius = 420
light_colour = [170, 190, 255]   # a cold, blue-white light
light_flame = false
mesh = "@rtn-addons/torch"       # drawn with RTN Addons' torch (the example requires that mod)

[store]
misc_fixed = "lantern; recallpotion"   # the shop sells it first on the misc page

Changing a disc item lists only the keys that change:

[item.longsword]
damage = [8, 14]

An item's shown name is the text key <name>_name (add it in Text), else its label (label = "Froglock Scale Mail": words, no text file needed), else its key. Use the Developer Tools' Item Spawner to try new items (Testing).

Description

A misc item (not a weapon, armour or quiver) can carry a line of words under its tooltip: description = "...", wrapped to the box, in the inventory, the stash and the devkit's preview. It may name a text key instead (Text), for a translated line. RTN Addons' Wisp Pouch:

description = "This pouch carries a wisp that will light your way and enhances your potion effectiveness."

Lights

An item can light the area as a torch does, held or worn. RTN Addons' torch and lantern are made this way: they are its items, with its models and icons, so copy and change them as any mod's (Accessories).

  • Held light (held_light = true): held in the off hand in a slot of its own beside the shield (L1 cycles shield, torch, ranged), carried up in front, and never sheathed. Make its model held at the grip, its length along +Y in Blender (the torch: the haft from the grip up to its head). It goes out under water.
  • Worn light (worn_light = true): an accessory that lights the area while worn, the hands free. As a held light, it gives no light under water (RTN Addons' Wisp Pouch does). Under Remastered Weather's Torch Shadows its own model casts no shadow, but the wearer's body does, right up to the light: put the light a little out from the body (the lantern's hangs about two units off the hip), or the body will shade it.
Field Key Means
Light radius light_radius How far it reaches, in units (the torch: 330)
Light colour light_colour [red, green, blue], 0 to 255 (the torch: [200, 150, 50])
Light height light_height How far up its model the light sits, in units (the torch: 21, the top of its head)
Light at light_at Instead: the light's point in the model as you made it, [x, y, z] in units (41.7 a metre; +Y up, +Z the front). The lantern's is in its glass
Light flame light_flame A held light's head burns (the fire's flames at the light). false for a light behind glass

The game adds the flames and the swing trail at the light's point; the model needs nothing for them. An item's mesh may name another mod's model ("@rtn-addons/torch") when your mod requires that mod (requires in mod.toml).

# gamedata/items.toml (from RTN Addons)
[item.hiplantern]
label = "Lantern"
category = 2
accessory = "hip_right"
fits_all = true
worn_light = true
light_radius = 330
light_colour = [200, 150, 50]
light_at = [-2.38, -5.32, 0]     # in the glass
light_flame = false
mesh = "@rtn-addons/lantern"
icon = "ui/icons/lantern.png"

Sway

An accessory worn on a hip or the lower back can swing on its hook as the hero walks, runs, stops and turns, as RTN Addons' lantern does. It swings the whole piece about one point like a pendulum, so a rigid object keeps its shape. Use it instead of the Cloth Painter, which bends a model's vertices and suits capes and hair. Set it up visually in the Sway Editor (the Sway Editor... button under Model), or turn on sway in the Items editor and set:

Field Means Default
Sway It swings on its hook (any of the fields below turns it on too) off
Sway pivot The point it hangs from, in its model as you made it: [x, y, z] in units (41.7 a metre; +Y up, +Z the front, as Light at) [0, 0, 0], the belt's face
Sway fixed Boxes [x0, y0, z0, x1, y1, z1], one after another: each piece of the model (its connected triangles) whose middle is in a box stays put, such as the hook it hangs from none: it all swings
Sway frequency Swings a second when let go. Higher is stiffer 1.3
Sway damping How fast it settles: 0 swings on and on, 1 stops without swinging back 0.2
Sway angle The furthest it swings, in degrees 14
Sway strength How hard the hero's movement pushes it (1: a real pendulum) 0.5

The swing is only drawn. The game never reads it, so it is safe online, and the inventory's 3-D view shows the item hanging still. A worn light swings with its model.

# addons/rtn-addons/gamedata/items.toml: the lantern on the right hip
[item.hiplantern]
accessory = "hip_right"
sway = true
sway_pivot = [-2.38, 1.1, 0]      # where its ring hangs on the hook
sway_fixed = [-0.5, -1, -1, 0.6, 1.5, 1,  -3.3, 0.7, -1, -0.5, 1.5, 1]   # the hook's clip and arm stay on the belt
sway_frequency = 1.3
sway_damping = 0.2
sway_angle = 12                   # a gentle sway
sway_strength = 0.5

For a smaller swing, lower Sway angle or Sway strength. For a quicker, tighter one, raise Sway frequency. For one that settles sooner, raise Sway damping.

Weapon trails

With the Weapon Trails graphics setting on (the launcher's Extra Settings, or Video Options in the game), a melee weapon's swing leaves a trail from its guard to the end of its blade. Each weapon can have its own trail: where along the blade it runs, its colour, how solid it is, how long it lingers, glow, and which band of the game's trail texture it uses. Players with the setting off see the original's short trail whatever the weapon says.

Select a melee weapon in the Items editor and open Weapon Trail in the Item Preview panel (bows and thrown weapons swing no trail). Editing a weapon of the game writes only its trail keys to your mod.

The swing preview

Tick Swing preview in the viewport: the 3-D view turns on and the weapon's held model swings and leaves the same trail the game draws, so you can tune it without loading the game. Pick Side slash, Overhead or Spin; Swing speed sets how fast (a hero's blow takes about 0.3 seconds), Pause stops it, Dark background shows a glowing trail as it looks in a dark place, and Show the span marks where the trail starts (blue) and ends (red) on the blade. The preview uses the player's default settings (Trail length 0.35 s, Strength 150%), so a player who changes them sees your trail longer or fainter in proportion. The trail's texture comes from the game disc, so set the disc in the devkit's settings to see it.

The trail

In the editor Field Means Default
Swing trail Trail It swings with a trail. Off: none for this weapon (its blood flicks stay) on
Start Trail base Where the trail starts, in units from the grip out along the blade (41.7 a metre). Auto: the guard the guard
End Trail tip Where the trail ends, in units from the grip out along the blade. Auto: the blade's end the blade's end
Colour Trail colour [red, green, blue]: 128 draws the trail texture as it is (the original's grey), 255 twice as bright [128, 128, 128]
Strength Trail strength How solid, times the player's Strength setting 1
Length Trail length How long it lingers behind the swing, times the player's Trail length setting 1
Glow Trail glow It adds light, like fire or magic, instead of a see-through band. Dark colours vanish when it glows off
Texture Trail style The band of the game's trail texture (trail.tex) it is drawn with, 0-8. Each fades along the trail differently 3, the original's

Each slider's R button puts back the default, and Default trail removes every trail key of the weapon from your mod. The trail is only drawn: the game never reads it, so it is safe online, and each player sees it with their own Weapon Trails settings.

# a flaming long sword: orange, glowing, lingering
[item.longsword]
trail_colour = [255, 140, 40]
trail_glow = true
trail_length = 1.5

Property slots

Every weapon, armour piece and piece of jewelry has property slots ("gem slots"): each of the disc's properties an item carries takes one, whether it came with the item, from a quality prefix or "of X" suffix, or from a gem combined into it. The original gives every item four. Set slots (1 to 8) to give an item its own count:

[item.longsword]
slots = 6

The tooltip shows the slots as pips, a full one per property, in two rows that grow to the right: four slots are the original's 2 x 2, six are 3 x 2 and eight are 4 x 2. Jewelry's slots are never shown, as in the original. Combining a gem refuses an item whose slots are full ("too many"). Port properties never take a slot.

RTN Rebalance

RTN Rebalance is one of the game's own folder mods, addons/rtn-rebalance beside the game, listed in the launcher's mods like any other (off by default offline). Return to Norrath Online always plays with it: every online game loads the copy beside the game, as the server does, whatever its switch. With it:

  • An item's required level is part of the item itself. It is still shown and checked, but it no longer takes one of the item's slots, so a rolled item's properties and the gems combined into it get them all.
  • Port properties go in the slots like the disc's: each takes one, and the pips count them.
  • A quality prefix's numbers (Yttrium, Jar Nal, Ruined...) are part of the item, like its required level: the damage bonus on a weapon (its damage and Attack Bonus), the armour bonus on armour and shields (its armour), and the weight and value modifiers. They take no slot and get no line of their own in the tooltip.
  • Enchants stack: a gem may add a property the item already has, as a property of its own. A +105 Mana unique combined with a +25 mana stone has two properties, +105 Mana and +25 Mana, each in its own slot (two pips, two rows in the Item Editor); the tooltip shows them as one line, +130 Mana, and the hero gets +130 Mana. In item strings the second one is written +stack<property> (+manabonus105+stackmanabonus25).
  • Item level: rolled weapons and armour carry a hidden item level, the level of the creature that dropped them (a chest's: the area's; a shop's: drawn from the shop's roll, between half its level and its level). It is not a requirement; Detailed Tooltips show it. It is written into the item string as +itemlevelN.
  • Rolled sockets: random loot, chest and shop weapons and armour without a suffix roll how many slots they have, from what their own properties already take up to their kind's count below, at most 4 up to item level 30, 5 up to level 50 and 6 above. A base axe from a level 1 creature rolls at most 4; from a level 65 one, up to 6. Items a script gives by name get the most they may have (by their required level). The rolled count is written into the item string as +slotsN (+slots0: none).
  • Magic (blue) items show no slot pips: they can't take a gem anyway.
  • Items without their own slots get a count for their kind:
Items Slots
One-handed swords, maces, clubs and hammers 6
Daggers and rods 4
Two-handed swords, axes and hammers 6
Staves and polearms 6
Bows, thrown weapons (not thrown potions) 4
Helmets, gloves, boots 4
Chest and leg armour 6
Small shields (4 inventory cells) 4
Large shields (6 inventory cells or more) 6
Accessories 6
Rings, amulets, earrings 8 (hidden)

The whole mod is one table in its gamedata/items.toml, [rebalance], which the Loot & Store editor's Item slots tab edits. Any mod with the table turns the rebalance on, with its own counts (1 to 8; a key left out keeps the count above):

[rebalance]
enabled = true      # false: the table changes nothing
one_handed = 6      # one-handed swords, maces, clubs and hammers
dagger = 4          # daggers (the wizards' flag, or "dagger" in the name)
rod = 4             # rods ("rod" in the name)
two_handed = 6
staff = 6
polearm = 6
bow = 4
thrown = 4
helmet = 4
body = 6            # chest armour
legs = 6            # leg armour
gloves = 4
boots = 4
small_shield = 4
large_shield = 6    # shields covering at least large_cells inventory cells
large_cells = 6
accessory = 6
jewelry = 8         # rings, amulets and earrings (never shown)
other = 4           # anything else
quality_in_base = true    # a quality prefix's numbers are the item's own (false: they take a slot, as the original)
stack_enchants = true     # a gem may add a property the item has (false: "already has that attribute")
random_sockets = true     # rolled weapons and armour roll their slots (false: every item has its kind's count)
sockets_low_level = 30    # up to this item level (the dropping creature's) ...
sockets_low = 4           # ... at most this many slots (0 to 8)
sockets_mid_level = 50
sockets_mid = 5
sockets_high = 6          # above sockets_mid_level
summon_formations = true  # summons keep a formation (below)

RTN Rebalance also improves some creature AI. With summon_formations (on unless set to false), a hero's summons keep a formation instead of all walking to the one spot just ahead of him:

  • Skeletons (and raised or converted creatures): while he stands, a wall across his front, up to four a row, facing the way he faces. While he moves, two files ahead of him at his sides, leaving his way open, laid out from where he is heading.
  • Badgers walk one at each side of the Shaman; any more scatter behind him.

They route around walls over the level's walk grid and run to catch up when well out of place. A place he couldn't walk to straight, or on a floor well above or below his, is pulled in toward him. A summon that gets stuck on its way (barely moving for 2 seconds, or no nearer him for 6) or falls 900 behind is put back at its place. Without RTN Rebalance, or with summon_formations = false, they follow as in the original.

To change RTN Rebalance's counts, copy addons/rtn-rebalance into your mods/ folder (the copy there stands in for the game's own offline) and change the numbers. Online games play with the game's own copy.

RTN Rebalance's gems

RTN Rebalance retunes the upgrade gems (the components combined into weapons and armour). Each gem has a [rebalance_gem.<component>] table in the mod's gamedata/items.toml, used in place of the component's own [combine.N] strings while RTN Rebalance is on:

[rebalance_gem.imbuedbloodstone]
weapon = "+staminabonus30"    # what it adds to a weapon (left out: the component's own)
armor = "+staminabonus30"     # what it adds to armour ("" for nothing)
level = 33                    # combining it raises the item's required level to 33 when lower
  • Level: putting a gem in raises the item's required level to the gem's level when the item's is lower; it is never lowered. The gem's tooltip (with Detailed Tooltips) shows the level beside what it adds.
  • Health and mana: the soul gems' and vampire fangs' health and mana bonuses count with RTN Rebalance (the original game overwrites them, so they did nothing there).
  • Regeneration: regen and mana stones give Health / Energy per 5 Seconds (healthperfive / energyperfive, in tenths: +healthperfive10 is 1 per 5 seconds).
  • Attack speed: misty globes give fasterattack, a percent that adds up over all the hero's gear ("+15% Faster Attack Rate"), in place of the original's speed tiers.
  • Diamonds drop as random gems by their own minimum level, like the other gems (diamond_drops = true in [rebalance]; the original game never rolls them).

The Loot & Store editor's component tab edits a gem's RTN Rebalance weapon, armor and level under each component.

An item's own slots wins over the table, with or without RTN Rebalance. A shield's size is its grid, else its icon's.

RTN Rebalance also adds Blink (gamedata/skills.toml), a skill on no class's tree that items give with the Grant Skill property, its spell id 900 (+grantskill900,1): the hero vanishes and appears a short way ahead at once, through walls and up ledges, onto ground it could walk on. It is a designed skill of kind blink.

Random loot: a magic (blue) item with more than four slots may roll extra properties. For each free slot past the fourth it rolls extra_property_chance (Loot rules, 0.35); each hit adds a property it doesn't have from another "of X" suffix of its level and kind, and its required level is set again for its new value. White items and uniques roll as the original.

One item can have its own slot count too: +slotsN in its item string (longsword+slots8+strengthbonus5, 0 to 8), which the Developer Tools' Item Editor and RTN Rebalance's rolled sockets write.

The Item Editor can also put up to twelve properties on any item, whatever its slot count: past the slots the item's string gets +overslots, which keeps them. Players still go by the slot count, so no gem goes into a full item.

Port properties

The port adds kinds of effect the original has no property for. They're written in item strings like the disc's (+allskills1, +reflect10, +stunonhit20,2), are held apart from the item's property slots (up to twelve; with RTN Rebalance they take slots like the disc's), and each has its tooltip line. Every amount comes from the string, so a prefix, suffix, gem combine, bonus or item decides how strong it is. An item holds each property once: two +skillranks on one item keep the last.

Keyword Numbers Does
allstats value + strength, intelligence, dexterity and stamina
allskills ranks + the rank of every learned skill
healthpercent, energypercent % Maximum health / energy × (1 + %)
armorpercent % The worn armour's total × (1 + %)
movespeed % Run speed × (1 + %)
damagepercent % Melee damage × (1 + %)
critchance % Added to the melee critical chance
bossdamage % Melee damage × (1 + %) on bosses and mini-bosses
lifesteal, energysteal % Health / energy from that share of the physical damage dealt (melee, arrows, thrown weapons)
healthonhit, energyonhit amount Per creature a melee blow hits
stunonhit, rootonhit, confuseonhit, poisononhit, burnonhit chance %, seconds Per creature hit
chillonhit chance %, frames Cold build-up (slows)
knockback chance %, speed Pushed away (speed 0: 120). Bosses and mini-bosses stand; the bigger a creature, the less it moves
cleave %, feet That share of each hit to the other enemies near the victim
reflect damage On every creature that lands a blow on the hero
reflectpercent % That share of the damage taken, split among the attackers
damagereduction damage Off every physical blow that lands (weapons, claws, arrows)
magicreduction damage Off every magical blow that lands (spells, breath, the elements)
toughness % Damage taken × (1 - %), at most 90%
evade % Chance a frame's blows do nothing, at most 75%
energyshield % That share of the damage taken is paid with energy
healthonkill, energyonkill amount On each of the hero's kills
experience % Kill experience × (1 + %)
goldfind % Gold picked up × (1 + %)
spellcost % Skills' energy cost × (1 - %)
healthpersecond, energypersecond amount Regained every second
healthperfive, energyperfive tenths Regained over every 5 seconds: 20 is 2.0 (HP5 / MP5)
healthperlevel, energyperlevel amount Maximum health / energy + amount × the hero's level
skillrank spell id, ranks + ranks to one skill, once it is learned (+skillrank60,1: +1 to Blunt)
featrank feat flag, ranks + ranks to one feat, once it is learned (+featrank16,1: +1 to Bind Wound)
spellcrit chance %, extra % A magic spell's blow is critical: ×2 damage, plus the extra % (its number shows yellow)
castonhit spell id, rank, chance % Each creature a melee blow, arrow or thrown weapon hits: the spell cast at it for free (a killing blow too)
castonattack spell id, rank, chance % Each melee blow, arrow or throw the hero makes, hit or miss: the spell cast at its target, else ahead
castwhenhit spell id, rank, chance % Whenever blows land on the hero (not evaded): the spell cast at an attacker
castspeed % Faster cast wind-up, cast clip, recovery and time between casts (up to 4×); the spell is unchanged
hitrecovery % Faster hit reactions and knockdowns (up to 4×)
freezereduction % The cold on the hero (its slow) wears off sooner, at most 90% shorter
magicfind % The chance a rolled weapon or armour drop is magic × (1 + %), for the hero who made the kill
replenish per minute An equipped thrown weapon's stack gains that many a minute, up to the stack it comes in
grantskill spell id, rank The hero knows the spell at that rank while the item is worn, whatever the class (+grantskill55,3: the Cleric's Healing at rank 3; the Shaman's Healing is 86). See Item skills
minionhealthperfive tenths Each of the hero's minions regains this over every 5 seconds
minionlevel levels Summon Skeleton, Summon Badger and Raise Army make their creatures this many levels higher
minionhealth % The minions' maximum health × (1 + %)
miniondamage % The minions' damage × (1 + %)
minionspeed % The minions' run speed × (1 + %), between half and double
minionlimit count That many more skeletons and badgers at once, and more creatures per Raise Army and Convert cast

A text key prop_<keyword> replaces a property's tooltip words (%d: its numbers; %t: a number in tenths, so 25 shows as 2.5; %s: the skill a skillrank, featrank, grantskill or cast property names). Anything else an item should do is a script.

Skills by number

skillrank, featrank, grantskill and the cast properties (castonhit, castonattack, castwhenhit) name a skill by its number. A spell's id is the id its skill tree row has ([skill.<class>.<n>]: Blunt is 60, Slashing 61, Holy Strike 16), a variant's or scripted skill's its own id. A feat's flag is its tree row's id with feat = true (Bind Wound 16, Concentration 512, Dual Wield 262144). The tooltip shows the skill's name, followed by the class whose skill tree has it - many skills share a name but not their numbers (the Cleric's Healing is another spell than the Shaman's): "+1 to Blunt", "10% Chance to Cast Level 3 Holy Strike (Cleric) on Hit". A skill every class has (Blunt) or none has shows no class.

Item skills

grantskill gives the hero a spell it may not have: while the item is worn the spell is known at the item's rank (if two worn items grant the same spell, the higher rank counts). A spell the hero has learned too gets the item's ranks on top of its own. allskills and skillrank add to a granted spell as to a learned one.

With the Remastered Interface, Triangle on the skill page swaps the class's tree for Item Skills: a tree of the spells the worn items grant, each with the class it comes from and the item that grants it. Nothing is learned there; Square on an active spell opens the spell wheel and Cross puts it in a slot, as on the class's tree. The wheel keeps it there while an item grants it - take the item off and the slot empties, put it back on and the spell is back. A granted spell never takes a free wheel slot by itself.

On both trees the rank bubble shows the base rank (the points spent, plus an item's granted rank) and what the items' bonuses add follows it in green, "3 +2". Triangle on the Stats page shows More Stats: a list of what the page has no room for - health and energy regenerated a second, the skill bonuses and granted skills, and every worn port property summed.

The cast properties cast spells that are cast: not passives, channels, the arrow modifiers, Harm Touch or the class moves that move the hero (Bash, Shield Bash, Ground Pound, Charge, Cyclone). The war cries (Ancestral Call, Roar, Battle Cry, Blood Lust) do cast, without the hero's cry animation. A buff that is still running isn't cast again until it ends. The proc costs no energy and leaves no wait before the hero's next cast. A chance of 100 or more always casts.

Property Rolls Cast at
castonhit Once per creature each melee blow, arrow or thrown weapon hits That creature, or where it fell if the blow killed it
castonattack Once per melee blow (hit or miss), arrow or throw The blow's target, else straight ahead
castwhenhit Once per moment blows land on the hero (an evaded blow doesn't count) The first attacker still standing, else ahead

Minions

The minion properties work on every creature fighting for the hero: Summon Skeleton's skeletons, Summon Badger's badgers, Raise Army's risen and the creatures Convert Enemy or Convert Undead turned. Health, damage, speed and HP5 follow the gear the hero wears now, so putting on a ring boosts the minions already out, and taking it off takes the boost back. A converted creature loses its boost when it turns back.

  • minionlevel counts when a minion is made: the skeleton and badger at their spell's level + n, Raise Army's risen at their corpse's level + n. Converted creatures keep their own level.
  • minionlimit lets 1 + n skeletons and 1 + n badgers live at once. Past that, casting again replaces the oldest with the Bug Fixes mod on, and is refused without it, as the original refuses a second. Raise Army raises n more corpses, and each Convert takes n more creatures.
# gamedata/items.toml
[prefix.902]
name = "Arcane"
min_level = 12
weapon = "+spellcrit10+castspeed10"
armor = "+energyperfive20+magicreduction5"

[suffix.903]
name = "the Titan"
min_level = 18
weapon = "+castonhit16,3,10+skillrank60,1"
armor = "+healthperlevel2+healthperfive20+castwhenhit51,2,15"
jewelry = "+magicfind10+featrank16,1"

[suffix.904]
name = "the Necromancer"
min_level = 15
weapon = "+miniondamage15+castonattack11,1,5"
jewelry = "+minionlimit1+minionlevel2+minionhealthperfive30"

Auras

An aura works while its item is worn: the hero gives it to every ally within reach, itself included, and a circle of light turns on the ground under the hero, each aura with its own colour and motes. Write the strength, then the reach in feet if it isn't the default 15: +aurarecovery3 heals 3 health a second within 15 ft, +aurathorns22,20 reflects 22 damage within 20 ft.

Keyword Numbers Allies in reach Looks like
aurarecovery health a second, feet Regain that much health every second (the party's summons too) Pale green, motes drifting up
aurathorns damage, feet Every creature that lands a blow on them takes that much damage Briar violet, sparks thrown out
aurameditation energy a second, feet Regain that much energy every second Deep blue, motes swirling in
auramight %, feet Melee damage × (1 + %) Blood red, embers rising
aurawarding %, feet Damage taken × (1 - %), with toughness (at most 90% in all) Gold, slow glints
auraswiftness %, feet Run speed × (1 + %) Green and gold, fast, wisps along the ground
auraprecision %, feet + that much melee critical chance Silver-white, glints about the body
auraimmolation damage, feet Enemies in reach take that much fire damage every second (resisted; it may set them burning) Fire, embers
aurafrost damage, feet Enemies in reach take that much cold damage every second (resisted) and are chilled Ice blue, falling flakes

Allies are the party's heroes (in Versus, the hero's team). The same aura from several heroes doesn't stack: each ally gets the strongest one that reaches it, and one hero's items of a kind add up. Immolation and Frost act from each hero on its own, once a second, without staggering what they hit. A hero shows up to three circles, one inside the next.

# gamedata/items.toml
[suffix.904]
name = "the Paladin"
min_level = 15
armor = "+aurarecovery3"
jewelry = "+aurathorns22+aurawarding5"

Bows and reach

Properties for the arrows a bow shoots (not thrown weapons; rangeddamage takes both), and for a melee weapon's reach. The worn items' values add up (the bow's weapon set counts, as for every property).

Keyword Numbers Does
explosivearrows %, feet Each arrow bursts where it ends (a creature, an object or the ground; not when it flies out of time): every enemy within the feet (0: 6 ft) takes that share of the arrow's damage as fire, resisted (it may set them burning)
magicarrows on (1) The bow shoots arrows of light: no quiver needed, and none are taken. Plain and Multifire arrows look like a blue-violet streak; the arrow skills keep their looks
multiarrow arrows Each shot looses that many more arrows (at most 32) fanned out about 6 degrees apart, each at full damage; past 16 in one fan they close up to stay within 90 degrees. It works with Fire, Cold, Poison and Explode Arrow and adds to Multifire's fan. Every arrow takes one from the quiver, as many as are left
guidedarrows on (1) An aim assist for near misses: an arrow bends gently (about 40 degrees a second) toward an enemy within 25 degrees of its flight, only when nothing (a wall, an object) stands between them, and flies on straight once the enemy slips out of reach of the bend
weaponrange % A melee weapon reaches that much further (up to 3×): the hero picks and strikes creatures further away. Unarmed blows and kicks are unchanged
rangeddamage % Arrows' and thrown weapons' damage × (1 + %) (damagepercent is melee's)
piercearrows % Added to Penetrating Arrows' chance that a plain or Multifire arrow flies on through what it hit
ricochetarrows bounces A plain or Multifire arrow that lands turns for the nearest other enemy within 20 ft, that many times (at most 8); every bounce is a full hit
arrowspeed % A bow's arrows fly × (1 + %) as fast (up to 3×), the arrow skills' too
# gamedata/items.toml
[suffix.904]
name = "the Volley"
min_level = 15
weapon = "+multiarrow2+ricochetarrows1+rangeddamage15"

[suffix.905]
name = "Embers"
min_level = 20
weapon = "+explosivearrows40,8+guidedarrows1"

An item string gives them like any other: longbow+magicarrows1+multiarrow2, longsword+weaponrange25.

More properties

Keyword Numbers Does
deadlystrike chance % A melee swing deals double damage with the chance (on top of a critical's ×3)
drowseonhit chance %, seconds Each creature a melee blow hits may turn drowsy, as the Drowsy spell (half speed). Not bosses
convertonhit chance %, seconds Each creature a melee blow hits may fight for the hero for the seconds. Not bosses
fasterattack % Melee swings and bow shots play × (1 + %) as fast (0.5× to 3× with the weapon's own speed)
desperation %, health % Melee damage + % while the hero's health is under the health % (0: 35%)
spelldamage % The hero's spells deal × (1 + %)
potionboost % Health and energy potions restore × (1 + %)
cheatdeath chance %, seconds A blow that would kill the hero leaves 1 health instead, with the chance, at most once every so many seconds (0: 60). Golden motes circle the hero while it is ready, and vanish during the cooldown
carrycapacity pounds The hero carries that much more
# gamedata/items.toml
[suffix.906]
name = "the Last Stand"
min_level = 25
armor = "+cheatdeath50,90+desperation25"
jewelry = "+potionboost30+carrycapacity50"

Online

The effects run where the game's simulation runs: on your machine alone, or on the server in an online game. Rolls (critical spells, procs, knockback, magic find) use the game's own random numbers there, and the clients see what the server decided: health, energy, items, the cold on the hero, the hero's animation speeds, and the minions' health and movement. Every machine draws the aura circles itself, from the items each hero wears.

Prefixes and suffixes

The quality prefixes and "of X" suffixes the loot rollers add. Change one by its number; add one with a new number after the disc's (the rollers pick among all of them).

Field Means
Name A text key (its text editable here); a suffix shows as "item of name"
Min level Eligible from this item level
Weapon, armour (prefixes: misc; suffixes: jewelry) The property strings it adds to each kind of item (+damageincrease25)
Material mask A prefix applies when the item's material flags share a bit (0: any)
Damage mask Weapon damage types it names
Skins The skin numbers it gives the model (weapon, armour, wood)

The preview tries it on a base item: the composed name (prefix base of suffix), the full item string and the properties it gives. The original has no roll weights: eligibility is the min level and the masks.

Blueprint gives an affix a look: Make a blueprint writes an item prefab naming the affix, with a first effect on the blade, so every item rolled with it carries its lights, effects and particles. Edit looks opens it in Prefabs; Edit beside an effect opens the Effect Creator; Make a script blueprint gives it Lua hooks as a Blueprint.

# from the example-item-properties example
[prefix.900]                     # numbers after the disc's are appended in order
name = "Masterful"               # shown "Masterful <item>"
min_level = 20
weapon = "+allskills1+damagepercent10"
armor = "+allskills1"
skins = [1, 1, 1]

[suffix.900]
name = "the Leech"               # shown "<item> of the Leech"
min_level = 10
weapon = "+lifesteal4"
jewelry = "+energysteal3+energyonkill5"

Warning Saved items keep the number of their prefix and suffix: removing or reordering entries renames items in existing saves. Add new ones at new numbers.

Bonuses

A bonus is a new property keyword that gives several properties at once, with its own tooltip line:

[bonus.vigor]
text = "Vigor +%d"                         # a text key or words; %d is the value
effects = "strengthbonus+staminabonus"     # each: a property keyword [numbers] [*percent%]

+vigor5 on an item then gives strengthbonus5 and staminabonus5. An effect with its own numbers uses them (resistall10); without, it takes the bonus's, scaled by *<percent> (staminabonus*50: half).

A bonus can also run a script while an item with it is worn, with the bonus's value as the hooks' rank (summed over the worn items). A bonus may be only a script:

[bonus.thunderstruck]
text = "Thunderstruck %d"
script = "thunderstruck.lua"

Try it shows what +<keyword><value> gives. The Property reference lists every keyword with its numbers, tooltip line and effect.

Loot and store

Shop stock ([store]):

Key Default Means
weapons, armor, jewelry 22, 17, 6 Rolled items on the weapons page, the armour page and the misc page's jewels
unique_chance 0.1 Chance per page of one unique
buy_price, buy_price_armor 0.6, 0.45 A shop item costs its value × this
sell_price 0.05 The shop pays an item's value × this
weapons_fixed, armor_fixed, misc_fixed Items always on the page (;-separated item strings)

Random loot: every item with its rolled switch (the never-rolled flag) and min level, and its value. There are no weights: an item is rolled when it may be and its min level is at most the item level, and the roller keeps the best item whose value fits the drop.

Components: the combines ([combine.N]).

Item slots: the RTN Rebalance counts by kind and its item rules ([rebalance]).

The loot chances themselves (how often creatures drop gold, items, potions, uniques) are in Rules & Vars ([loot]), and each creature's own drop is in the Creature Editor.

Examples

example-item-properties has prefixes, suffixes and bonuses made of port properties and a scripted bonus, and paladin-and-halfling a named bonus and a new suffix: see Examples.