Skip to content

Profile fields

A profile is a named description of an NPC. Its fields are the same wherever a profile is written, so this one page serves all four places:

  • The site’s profile editor, whose sections this page follows, and whose label for each field is in the second column.
  • The console, where rnpc.profile set <name> <field> <value> takes the path in the first column: rnpc.profile set warden ranges.sense 40.
  • The data file, data/RunicNPC/profiles.json, on a server no site manages.
  • The API: RunicNpc_SetProfiles takes profiles in this shape, and RunicNpc_Spawn’s overrides change any of these fields for one NPC.

The paths are checked against the API’s specification on every build. The site’s editor shows some values in friendlier units: health thresholds, a loot row’s chance and a phase’s health as percentages, and the hack time in minutes. Everywhere else they are fractions and seconds.

A profile is checked whole when it is saved. A kit the server does not have refuses the profile then, not when an NPC spawns; a refused profile is kept, and listed with its reason, but never spawns.

FieldOn the siteAllowedWhat it does
namesNPC namesat least oneOne is picked for each NPC. The first is the profile’s name on the leaderboard
kitsKitsat least one; each must exist in KitsOne is picked for each NPC, which is equipped with it. A kit the server lacks refuses the profile when it is saved, not when an NPC spawns
prefabPrefaba plain Rust scientistnpc_* prefabWhat it is built from
roleRoleroamer, sentry, guard or passiveA roamer moves, chases and fights. A sentry never moves, and may stand off the navmesh. A guard holds its spot facing the way it was placed, chases within its chase range, and walks back. A passive NPC never fights — it takes no target, does not shoot back and raises no alarm — and pressing E on it does what its use says
FieldOn the siteAllowedWhat it does
movement.modeHow it moveswander, monument, route:<name>, or stand for a passive profile onlyWander around its spot, follow Rust’s own paths in the monument it stands in, or walk a recorded route. A passive NPC that stands holds its spot, may stand off the navmesh, and turns to whoever presses E on it. A placement may override it
movement.radiusWander radius (m)above 0 for wanderHow far from home it wanders
sleepDistanceSleeps with nobody within (m)0 or moreWith no player this close it walks home, then sleeps. 0: it never sleeps
FieldOn the siteAllowedWhat it does
healthHealthabove 0Its health, and its maximum
damageDealtDamage dealt ×0 or moreMultiplies its weapon’s damage; 1 is the weapon’s full damage
aimConeAim spread0 or moreHow much its aim spreads. Rust’s scientists use 2
visionConeVision cone−1 to 1Rust’s vision cone
damageTakenDamage taken × head, body, legshead, body and legs, each 0 or moreMultiplies the damage it takes to the head, the legs (legs and feet) and the body — everything else, including hits with no body part, like fire and explosions
ranges.senseNotices players at (m)above 0How far it notices players
ranges.loseTargetForgets them at (m)at least senseHow far a target must get before it is forgotten
ranges.chaseChases up to (m from home)0 or moreHow far from home it will chase; 0 is no limit. At that distance it waits 5 s for the target to come back within range, then gives up and walks home
ranges.attackShoots from (m)above 0How far it shoots from. This replaces the weapon’s own range
healthThresholdsHealth thresholds (%)fractions between 0 and 1Where OnRunicNpcHealth is raised, once each — and so what an event’s phase can wait for
FieldOn the siteAllowedWhat it does
usePress Erequired on a passive profile, refused on any otherWhat pressing E on it does, from up to 3 m. mode chat says one of lines (picked at random, each at most 256 characters) in that player’s chat. mode window opens a window with title (blank: its name), text (at most 2,000 characters) and a Close button. {player} in either is the player’s name

A passive profile, as it looks in the file:

{
"names": ["Quartermaster"], "kits": ["outpost_clothes"], "role": "passive",
"movement": { "mode": "stand", "radius": 0 },
"hurtByPlayers": false,
"use": { "mode": "chat", "lines": ["Back again, {player}?", "Supplies are short."], "title": "", "text": "" }
}
FieldOn the siteAllowedWhat it does
bossIt is a bossnull, or the block below; not on a passive profileMakes a roamer, sentry or guard a boss. It keeps moving and fighting as its role does
boss.barDistanceBar shown within (m)above 0, at most 1,000; default 100Players this close see its health bar at the top of the screen, and so does every player who has hurt it, wherever they are, until it dies or despawns. A player near two bosses sees the nearer
boss.announceLines said inchat or popup; default chatWhere its lines are said. popup uses PopupNotifications where it is loaded, and chat where it is not
boss.spawnLineWhen it spawns, to everyoneat most 256 characters; blank says nothingSaid to everyone on the server. {name} is its name
boss.deathLineWhen it dies, to everyoneat most 256 characters; blank says nothingSaid to everyone on the server. {killer} is the player who landed the killing blow, empty when there was none
boss.phasesPhasesa list; each at a fraction between 0 and 1, no two alikeWhen its health falls to a phase’s at, that phase applies from then on. Every other part of a phase is optional, and changes only that boss’s own copy of its profile
phases[].damageDealtDamage dealt ×0 or moreReplaces the profile’s
phases[].aimConeAim spread0 or moreReplaces the profile’s
phases[].speedSpeed ×above 0, at most 5A multiple of Rust’s own speed for it: 1.3 is a third faster
phases[].rangesNotices at, Forgets at, Chases to, Shoots fromas the profile’s rangesReplace the profile’s
phases[].kitSwaps to kita Kits kit the server hasIts inventory is stripped, the kit given and its weapon equipped
phases[].addsSummons (profile), How manyprofile: one that is not a boss; count: 1 to 20NPCs of that profile placed on a 6 m ring around it, one per server frame. They belong to its owner, so an event’s teardown removes them, and they fight on after it dies
phases[].lineLineat most 256 charactersSaid only to the players near it (within barDistance) and to those who have hurt it

A boss gives no reward of its own. On a Runic Gateway server, an event’s reward steps do, and can name everyone who hurt it.

FieldOn the siteAllowedWhat it does
lootIts own lootnull, or the block belowNull keeps Rust’s scientist loot
loot.startThe corpse starts withrust (default), kit or noneWhat the corpse holds before the table: Rust’s scientist loot and the clothes it wore; what it carried (its kit) and the clothes; or nothing at all, clothes included
loot.alwaysAlways rolledup to 30 rows: item, min, max, chance (above 0, at most 1), and an optional skinEach row rolls on its own. item is a Rust short name — scrap, rifle.ak, explosive.timed
loot.poolThe poolpick (0 to its rows), nothing (a weight, 0 or more), and up to 30 rows, each with a weight above 0 instead of a chanceAt most pick draws by weight, never the same row twice; a draw of "nothing" uses one up. A kill never pays out more than pick pool rows, however lucky — the fair cap on rare items
loot.crateThe table goes intonull (the corpse), wooden, military, elite or lockedThe table goes into one of Rust’s crates beside the corpse, with Rust’s own loot off, and stays until emptied; a locked crate keeps Rust’s two-hour removal while unhacked. The always-rows plus pick must fit its slots: 6, 6, 12 or 24 (the corpse has 24)
loot.hackSecondsHack time (minutes)1 to 86,400; default 900A locked crate’s hack time, counted once a player starts the hack
loot.corpseSecondsThe corpse staysnull (Rust’s own 600 s), 0 (no corpse), or moreHow long the corpse lasts
loot.dropTablenot in the editortrue (default) or falseFalse rolls no table; the start and the corpse’s time still apply. An event’s Place NPCs step sends it as false for the NPCs it places, through a spawn’s overrides
FieldOn the siteAllowedWhat it does
factionFactionnull, or 1–40 of a-z, 0-9, _ and -; not scientists or animalsProfiles of one faction are allies. With none, its allies are its own profile’s NPCs
relationsIts own exceptionskeys: a faction, scientists, animals or profile:<name>; values hostile, neutral or alliedIts own exceptions, which win over the faction table. A profile with no faction settings fights players only
alertRadiusAlert radius (m)0 or more; default 40Allies this close learn whoever attacked one of them, seen or not. 0 is off
turretsTurretsdefault, ignore or alwaysdefault: as Rust’s scientists — player turrets shoot it, Outpost’s and Bandit Camp’s sentries do not. ignore: no turret targets it. always: those sentries too. It shoots back at a turret that shoots it
hurtByPlayersPlayers can hurt ittrue or false; default true, but false for a passive profile unless it is givenOff makes it unkillable by players. RunicNPC enforces it itself, and answers TruePVE’s and NextGenPVE’s damage checks the same way. Turrets, fire and other NPCs are not affected
hurtsPlayersIt can hurt playerstrue or false; default trueOff makes it harmless to players. It still fights NPCs and turrets

Whom it fights besides players is decided by its own senses: only factions it is hostile to, within its sense range of itself and its chase range of its spot, so it never walks into a monument to look for scientists. Rust’s scientists never fight back, by Rust’s own rule; they take cover. Whoever shoots one of RunicNPC’s NPCs, it fights back, whatever the table says.

FieldOn the siteAllowedWhat it does
kitUseThe kit’s extrasheal, grenades, melee, rockets, flamethrower, each true or falseThe extras its kit gives that it uses, each only if true and each used up from its inventory, so its loot is what is left. The main weapon — the belt’s first slot — is always used and never runs out

A roamer that is also a boss, with its own loot, as it looks in the file and through the API:

{
"names": ["Warden", "Old Warden"],
"kits": ["warden_rifle", "warden_smg"],
"prefab": "scientistnpc_roam",
"role": "roamer",
"movement": { "mode": "wander", "radius": 20 },
"health": 250,
"damageDealt": 1.0,
"damageTaken": { "head": 1.0, "body": 1.0, "legs": 1.0 },
"aimCone": 2.0,
"ranges": { "sense": 30, "loseTarget": 40, "chase": 40, "attack": 30 },
"visionCone": -0.8,
"sleepDistance": 160,
"healthThresholds": [0.5],
"faction": "bandits",
"relations": { "scientists": "hostile" },
"alertRadius": 40,
"turrets": "default",
"hurtByPlayers": true,
"hurtsPlayers": true,
"kitUse": { "heal": false, "grenades": false, "melee": false, "rockets": false, "flamethrower": false },
"boss": {
"barDistance": 100,
"announce": "chat",
"spawnLine": "{name} has risen!",
"deathLine": "{name} has fallen to {killer}.",
"phases": [
{ "at": 0.5, "adds": { "profile": "raider", "count": 3 }, "line": "{name} calls for help!" },
{ "at": 0.25, "damageDealt": 1.5, "speed": 1.3, "kit": "warden_heavy", "line": "{name} is enraged!" }
]
},
"use": null,
"loot": {
"start": "rust",
"always": [
{ "item": "scrap", "min": 100, "max": 300, "chance": 1 },
{ "item": "rope", "min": 1, "max": 1, "chance": 0.5 }
],
"pool": {
"pick": 1,
"nothing": 85,
"rows": [
{ "item": "lmg.m249", "min": 1, "max": 1, "weight": 10 },
{ "item": "explosive.timed", "min": 1, "max": 1, "weight": 5 }
]
},
"crate": "locked",
"hackSeconds": 600,
"corpseSeconds": 0,
"dropTable": true
}
}