Content added Content deleted
m (mispelling biomeS) |
Horblegorble (talk | contribs) No edit summary |
||
(46 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
! colspan="3" class="infobox-title" style="font-size: 150%" | {{SUBPAGENAME}} |
! colspan="3" class="infobox-title" style="font-size: 150%" | {{SUBPAGENAME}} |
||
|- |
|- |
||
| {{InfoboxText | [[NPCs|Type]] | {{{type|}}} | {{ucfirst: {{lc: {{{type|}}} }} }} }} |
|||
! colspan="3" class="infobox-title" style="font-size: 90%" | Statistics |
|||
|- |
|- |
||
| {{InfoboxText | Location(s) | {{{location|}}} | {{ucfirst: {{lc: {{{location|}}} }} }} }} |
|||
{{#if: {{{type|}}} |
|||
| |
|||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[NPCs|Type]]: |
|||
{{!}} colspan="2" class="infobox-text" {{!}} {{ucfirst: {{lc: {{{type|}}} }} }} |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{location|}}} |
|||
| |
|||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Location(s): |
|||
{{!}} colspan="2" class="infobox-text" {{!}} {{ucfirst: {{lc: {{{location|}}} }} }} |
|||
{{!}}- |
|||
}} |
|||
{{#switch: {{lc: {{{aggressive|}}} }} |
|||
| no |
|||
| 0 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Hostile: |
|||
{{!}} colspan="2" class="infobox-text" {{!}} No |
|||
{{!}}- |
|||
| yes |
|||
| 1 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Hostile: |
|||
{{!}} colspan="2" class="infobox-text" {{!}} Yes |
|||
{{!}}- |
|||
}} |
|||
{{#switch: {{lc: {{{tamable|}}} }} |
|||
| no |
|||
| 0 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[Taming|Tamable:]] |
|||
{{!}} colspan="2" class="infobox-text" {{!}} No |
|||
{{!}}- |
|||
| yes |
|||
| 1 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[Taming|Tamable:]] |
|||
{{!}} colspan="2" class="infobox-text" {{!}} Yes |
|||
{{!}}- |
|||
}} |
|||
{{#switch: {{lc: {{{mount|}}} }} |
|||
| no |
|||
| 0 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[Taming#Mount|Mount:]] |
|||
{{!}} colspan="2" class="infobox-text" {{!}} No |
|||
{{!}}- |
|||
| yes |
|||
| 1 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[Taming#Mount|Mount:]] |
|||
{{!}} colspan="1" class="infobox-text" {{!}} Yes {{!}}{{!}} colspan="1" class="infobox-text" style="text-align: center"{{!}} <b>Acceleration:</b> {{formatnum: {{{mountspeed|}}} }} |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{healthPoints|}}} |
|||
| |
|||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} HP: |
|||
{{!}} colspan="2" class="infobox-text" {{!}} {{formatnum: {{{healthPoints|}}} }} |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{damage|}}} |
|||
| |
|||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Damage: |
|||
{{!}} colspan="2" class="infobox-text" {{!}} {{formatnum: {{{damage|}}} }} |
|||
{{!}}- |
|||
}} |
|||
|- |
|- |
||
| {{InfoboxYesNo | Hostile | {{{aggressive|}}} }} |
|||
| colspan="3" class="infobox-title" style="font-size: 90%" | Technical Information |
|||
|- |
|||
| {{InfoboxYesNo | Tradable | {{{tradable|}}} }} |
|||
|- |
|||
| {{InfoboxYesNo | [[Taming|Tamable]] | {{{tamable|}}} }} |
|||
|- |
|||
| {{InfoboxYesNo | [[Taming#Mount|Mount]] | {{{mount|}}} | Yes <b>Speed</b>: {{formatnum: {{{mountspeed|}}} }} }} |
|||
|- |
|||
| {{InfoboxText | HP | {{{hp|}}} | {{formatnum: {{{hp|}}} }} }} |
|||
|- |
|||
| {{InfoboxText | Damage | {{{damage|}}} | {{formatnum: {{{damage|}}} }} }} |
|||
|- |
|||
| colspan="3" class="infobox-title" style="font-size: 90%" | Technical Info |
|||
|- |
|||
| {{InfoboxText | Config | {{{path|}}} | [{{#invoke:Gitlab|config|{{{path}}}}} {{{path}}}] }} |
|||
|- |
|||
| {{InfoboxText | Voxel Model | {{{vox|}}} | [{{{vox|}}} Vox Model] }} |
|||
|- |
|- |
||
{{#if: {{{vox|}}} |
|||
| |
|||
{{!}} class="infobox-texttitle" {{!}} Voxel Model |
|||
{{!}} colspan="2" class="infobox-text" {{!}} [{{{vox|}}} Vox Model] |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{config|}}} |
|||
| |
|||
{{!}} class="infobox-texttitle" {{!}} Entity Config |
|||
{{!}} colspan="2" class="infobox-text" {{!}} [{{{config|}}} Config] |
|||
{{!}}- |
|||
}} |
|||
|} |
|} |
||
</onlyinclude> |
</onlyinclude> |
||
Line 113: | Line 64: | ||
"suggested": true, |
"suggested": true, |
||
"suggestedvalues": [ |
"suggestedvalues": [ |
||
"forest", |
"[[Biomes#Forest|forest]]", |
||
"jungle", |
"[[Biomes#Jungle|jungle]]", |
||
"taiga", |
"[[Biomes#Taiga|taiga]]", |
||
"tundra", |
"[[Biomes#Tundra|tundra]]", |
||
"artic", |
"[[Biomes#Artic|artic]]", |
||
"desert", |
"[[Biomes#Desert|desert]]", |
||
"[[Biomes# |
"[[Biomes#Desert|savannah]]", |
||
"world" |
"[[Biomes#World|world]]" |
||
] |
] |
||
}, |
}, |
||
Line 137: | Line 88: | ||
"deprecated": "Please, document each of the NPC's attacks in the wiki page and include their respective damage values" |
"deprecated": "Please, document each of the NPC's attacks in the wiki page and include their respective damage values" |
||
}, |
}, |
||
" |
"hp": { |
||
"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", |
"label": "Health Points", |
||
"description": "The amount of HP the NPC has.", |
"description": "The amount of HP the NPC has.", |
||
Line 178: | Line 119: | ||
"description": "the max_speed_approx value from https://gitlab.com/veloren/veloren/-/blob/master/common/src/states/utils.rs", |
"description": "the max_speed_approx value from https://gitlab.com/veloren/veloren/-/blob/master/common/src/states/utils.rs", |
||
"type": "number" |
"type": "number" |
||
}, |
|||
"path": { |
|||
"label": "Entity path", |
|||
"description": "The dot-separated path for the entity, e.g. 'common.entity.wild.aggressive.weevil'.", |
|||
"type": "url" |
|||
}, |
|||
"config": { |
|||
"label": "NPC configuration", |
|||
"description": "A link to this NPC entity's configuration file in the game's source repository.", |
|||
"type": "url" |
|||
}, |
|||
"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" |
|||
} |
} |
||
}, |
}, |
||
Line 188: | Line 145: | ||
"mount", |
"mount", |
||
"mountspeed", |
"mountspeed", |
||
" |
"hp", |
||
"damage", |
"damage", |
||
"path", |
|||
"vox", |
"vox", |
||
"config" |
"config" |
Latest revision as of 08:14, 6 January 2024
Infobox npc | ||
---|---|---|
Technical Info | ||
Displays a floating infobox with information about an NPC entity.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Remove the Navbox ? | navbox | Check if you want to remove the navbox.
| Boolean | suggested |
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 |
Tamable | tamable | Is the creature tamable ?
| Boolean | suggested |
Mount | mount | Can you mount the creature ?
| Boolean | suggested |
The max_speed_approx value : | mountspeed | the max_speed_approx value from https://gitlab.com/veloren/veloren/-/blob/master/common/src/states/utils.rs | Number | optional |
Health Points | hp | The amount of HP the NPC has.
| Number | optional |
Damage | damage | The amount of damage the NPC's attacks deal.
| Number | deprecated |
Entity path | path | The dot-separated path for the entity, e.g. 'common.entity.wild.aggressive.weevil'. | URL | 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 |