Content added Content deleted
No edit summary |
No edit summary |
||
Line 63: | Line 63: | ||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"format": "block", |
|||
"description": "Displays a floating infobox with information about an NPC entity.", |
|||
"params": { |
|||
"type": { |
|||
"label": "Type", |
|||
"description": "The type of entity the NPC is.", |
|||
"type": "string", |
|||
"example": "wildlife", |
|||
"suggested": true, |
|||
"suggestedvalues": [ |
|||
"boss", |
|||
"mini-boss", |
|||
"minion", |
|||
"outlaw", |
|||
"tribe", |
|||
"wildlife" |
|||
] |
|||
] |
|||
}, |
|||
}, |
|||
"location": { |
|||
"label": "Location", |
|||
"description": "The biome where the NPC is located.", |
|||
"type": "string", |
|||
"example": "Jungle", |
|||
"suggested": true, |
|||
"suggestedvalues": [ |
|||
"forest", |
|||
"jungle", |
|||
"taiga", |
|||
"tundra", |
|||
"artic", |
|||
"desert", |
|||
"savannah", |
|||
"world" |
|||
] |
|||
] |
|||
}, |
|||
}, |
|||
"aggressive": { |
|||
"label": "Hostility", |
|||
"description": "Whether the NPC attacks the player on sight.", |
|||
"type": "boolean", |
|||
"example": "true", |
|||
"suggested": true, |
|||
"autovalue": "0" |
|||
}, |
|||
}, |
|||
"damage": { |
|||
"label": "Damage", |
|||
"description": "The amount of damage the NPC's attacks deal.", |
|||
"type": "number", |
|||
"example": "10" |
|||
}, |
|||
}, |
|||
"vox": { |
|||
"label": "Vox model", |
|||
"description": "A link to the directory in the game's source repository with the NPC's entity vox files.", |
|||
"type": "url" |
|||
}, |
|||
}, |
|||
"config": { |
|||
"label": "NPC configuration", |
|||
"description": "A link to this NPC entity's configuration file in the game's source repository.", |
|||
"type": "url" |
|||
}, |
|||
}, |
|||
"healthPoints": { |
|||
"label": "Health Points", |
|||
"description": "The amount of HP the NPC has.", |
|||
"type": "number", |
|||
"example": "1000" |
|||
} |
|||
} |
|||
}, |
|||
"paramOrder": [ |
|||
"type", |
|||
"location", |
|||
"aggressive", |
|||
"healthPoints", |
|||
"damage", |
|||
"vox", |
|||
"config" |
|||
] |
|||
] |
|||
} |
} |
||
</templatedata> |
</templatedata> |
Revision as of 19:56, 10 February 2023
Template:Infobox npc | ||
---|---|---|
Statistics | ||
Technical Information |
Displays a floating infobox with information about an NPC entity.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | The type of entity the NPC is.
| String | suggested |
Location | location | The biome where the NPC is located.
| String | suggested |
Hostility | aggressive | Whether the NPC attacks the player on sight.
| Boolean | suggested |
Health Points | healthPoints | The amount of HP the NPC has.
| Number | optional |
Damage | damage | The amount of damage the NPC's attacks deal.
| Number | optional |
Vox model | vox | A link to the directory in the game's source repository with the NPC's entity vox files. | URL | optional |
NPC configuration | config | A link to this NPC entity's configuration file in the game's source repository. | URL | optional |