Toggle menu
1.3K
1.7K
694
23.9K
Veloren Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox npc: Difference between revisions

Template page
Content added Content deleted
No edit summary
No edit summary
 
(18 intermediate revisions by the same user 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 | [[NPCs|Type]] | {{{type|}}} | {{ucfirst: {{lc: {{{type|}}} }} }} }}
| {{InfoboxText | Location(s) | {{{location|}}} | {{ucfirst: {{lc: {{{location|}}} }} }} }}
{{InfoboxText | Location(s) | {{{location|}}} | {{ucfirst: {{lc: {{{location|}}} }} }} }}
{{InfoboxYesNo | Hostile | {{{aggressive|}}} }}
{{InfoboxYesNo | [[Taming|Tamable]] | {{{tamable|}}} }}
{{InfoboxYesNo | [[Taming#Mount|Mount]] | {{{mount|}}} | <td colspan=1 class="infobox-test" style="text-align: center"><b>Acceleration:</b> {{formatnum: {{{mountspeed|}}} }}</td> }}
{{#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|}}} }}
{{!}}-
}}
{{InfoboxText | HP | {{{healthPoints|}}} | {{formatnum: {{{healthPoints|}}} }} }}
{{InfoboxText | Damage | {{{damage|}}} | {{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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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] }}
|-
|-
{{InfoboxText | Voxel Model | {{{vox|}}} | [{{{vox|}}} Vox Model] }}
{{InfoboxText | Entity Config | {{{config|}}} | [{{{config|}}} Config] }}
|}
|}
</onlyinclude>
</onlyinclude>
Line 90: 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"
},
},
"vox": {
"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 131: 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 141: Line 145:
"mount",
"mount",
"mountspeed",
"mountspeed",
"healthPoints",
"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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Remove the Navbox ?navbox

Check if you want to remove the navbox.

Auto value
0
Booleansuggested
Typetype

The type of entity the NPC is.

Suggested values
boss mini-boss minion outlaw tribe wildlife
Example
wildlife
Stringsuggested
Locationlocation

The biome where the NPC is located.

Suggested values
[[Biomes#Forest|forest]] [[Biomes#Jungle|jungle]] [[Biomes#Taiga|taiga]] [[Biomes#Tundra|tundra]] [[Biomes#Artic|artic]] [[Biomes#Desert|desert]] [[Biomes#Desert|savannah]] [[Biomes#World|world]]
Example
Jungle
Stringsuggested
Hostilityaggressive

Does the NPC attack the player on sight?

Auto value
0
Booleansuggested
Tamabletamable

Is the creature tamable ?

Auto value
0
Booleansuggested
Mountmount

Can you mount the creature ?

Auto value
0
Booleansuggested
The max_speed_approx value :mountspeed

the max_speed_approx value from https://gitlab.com/veloren/veloren/-/blob/master/common/src/states/utils.rs

Numberoptional
Health Pointshp

The amount of HP the NPC has.

Example
1000
Numberoptional
Damagedamage

The amount of damage the NPC's attacks deal.

Example
10
Numberdeprecated
Entity pathpath

The dot-separated path for the entity, e.g. 'common.entity.wild.aggressive.weevil'.

URLoptional
Vox modelvox

A link to the directory in the game's source repository with the NPC's entity vox files.

URLoptional
NPC configurationconfig

A link to this NPC entity's configuration file in the game's source repository.

URLoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.