Editing
Template
:
NpcData/doc
(section)
Give feedback
Jump to navigation
Jump to search
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
== 馃摉 How to Build a Path == JSON data is like a set of nested folders. To get a specific number, you have to tell the template which folders to open. === 1. Find the NPC Name === The first parameter is always the "internal name" of the unit. * '''Common names:''' <code>npc_boss_tier2</code> (Walker), <code>trooper_normal</code> (Trooper), <code>npc_super_neutral</code> (Mid Boss). === 2. Follow the Boxes (The "Double Box" Rule) === When looking at the [[Data:NpcData.json|Data Viewer]], follow the lines to your stat. * '''Standard Stat (Single Box):''' *: If the stat is just inside a standard box, just add its name. *: ''Example:'' <code>ShieldLogic</code> is a standard box. *: '''Code:''' <code><nowiki>{{NpcData|npc_super_neutral|ShieldLogic|BaseAbsorptionPerSecond}}</nowiki></code> * '''List / Array (Double Box):''' *: '''Important:''' If you see a '''box inside a box''' (like <code>IntrinsicModifiers</code> or <code>ResistValues</code>), this is a '''List'''. *: You cannot just ask for the stat; you must use a '''Number''' to tell the template which item in the list to look at (1 for the 1st, 2 for the 2nd, etc.). *: ''Example:'' <code>IntrinsicModifiers</code> is a list. *: '''Code:''' <code><nowiki>{{NpcData|npc_super_neutral|IntrinsicModifiers|1|HEALTH_REGEN_PER_SECOND}}</nowiki></code> === 3. Rounding (Optional) === If the number is too long (e.g., 0.333333), you can add a number at the very end to round it. * '''Note:''' This uses '''Significant Figures''', not decimal places. * <code>...|2}}</code> turns <code>1250</code> into <code>1300</code>. * <code>...|2}}</code> turns <code>0.125</code> into <code>0.13</code>.
Summary:
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Navigation menu
Personal tools
Create account
Log in
associated-pages
Template
Discussion
English
Views
Read
Edit source
History
Tools
Search
Discord
Discord
Navigation
Main page
About us
Random page
Special pages
Recent changes
Graf
24m ago
路
Kai
Graf
27m ago
路
~2026-AlchemicalKnockdownShard1152
Vindicta
41m ago
路
~2026-InfernusBreakableSecure558
Silver
1h ago
路
Gammaton32
Show more...
Interface Admin
Common CSS
Vector CSS
Minerva CSS
Citizen CSS
Brown theme CSS
Gadgets
Gadgets definition
Editing
How to edit
Style guide
All guides
New files
Unresolved feedback
Tools
What links here
Related changes
Page information