Content added Content deleted
No edit summary |
Reception123 (talk | contribs) m (Reception123 moved page User:Hilux/Sandbox/Template:Infobox npc to User:Walpo/Sandbox/Template:Infobox npc without leaving a redirect: Automatically moved page while renaming the user "Hilux" to "Walpo") |
||
(8 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
! colspan="3" class="infobox-title" style="font-size: 90%" | Statistics |
! colspan="3" class="infobox-title" style="font-size: 90%" | Statistics |
||
|- |
|- |
||
{{#if:{{{type|}}} |
{{#if: {{{type|}}} |
||
| |
| |
||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[NPCs|Type]]: |
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[NPCs|Type]]: |
||
Line 14: | Line 14: | ||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{location|}}} |
{{#if: {{{location|}}} |
||
| |
| |
||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Location(s): |
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Location(s): |
||
{{!}} colspan="2" class="infobox-text" {{!}} {{{location|}}} |
{{!}} colspan="2" class="infobox-text" {{!}} {{ucfirst: {{lc: {{{location|}}} }} }} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{# |
{{#switch: {{lc: {{{aggressive|}}} }} |
||
⚫ | |||
| |
|||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Hostile: |
| 0 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Hostile: |
||
{{!}} colspan="2" class="infobox-text" {{!}} |
{{!}} colspan="2" class="infobox-text" {{!}} No |
||
{{!}}- |
{{!}}- |
||
⚫ | |||
| 1 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Hostile: |
|||
{{!}} colspan="2" class="infobox-text" {{!}} Yes |
|||
⚫ | |||
}} |
}} |
||
{{#if:{{{healthPoints|}}} |
{{#if: {{{healthPoints|}}} |
||
| |
| |
||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} HP: |
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} HP: |
||
{{!}} colspan="2" class="infobox-text" {{!}} {{{healthPoints|}}} |
{{!}} colspan="2" class="infobox-text" {{!}} {{formatnum: {{{healthPoints|}}} }} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{damage|}}} |
{{#if: {{{damage|}}} |
||
| |
| |
||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Damage: |
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Damage: |
||
{{!}} colspan="2" class="infobox-text" {{!}} {{{damage|}}} |
{{!}} colspan="2" class="infobox-text" {{!}} {{formatnum: {{{damage|}}} }} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 41: | Line 45: | ||
| colspan="3" class="infobox-title" style="font-size: 90%" | Technical Information |
| colspan="3" class="infobox-title" style="font-size: 90%" | Technical Information |
||
|- |
|- |
||
{{#if:{{{vox|}}} |
{{#if: {{{vox|}}} |
||
| |
| |
||
{{!}} class="infobox-texttitle" {{!}} Voxel Model |
{{!}} class="infobox-texttitle" {{!}} Voxel Model |
||
Line 47: | Line 51: | ||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{config|}}} |
{{#if: {{{config|}}} |
||
| |
| |
||
{{!}} class="infobox-texttitle" {{!}} Entity Config |
{{!}} class="infobox-texttitle" {{!}} Entity Config |
||
Line 63: | Line 67: | ||
<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": "Does the NPC attack the player on sight?", |
|||
"type": "boolean", |
|||
"suggested": true, |
|||
⚫ | |||
"suggested": true, |
|||
}, |
|||
⚫ | |||
⚫ | |||
}, |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"type": "number", |
|||
⚫ | |||
"example": "10", |
|||
"deprecated": "Please, document each of the NPC's attacks in the wiki page and include their respective damage values" |
|||
"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> |
Latest revision as of 19:15, 13 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 | Does the NPC attack 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 | deprecated |
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 |