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

User:Walpo/Sandbox/Template:Infobox npc: Difference between revisions

From Veloren Wiki
Content added Content deleted
No edit summary
No edit summary
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:{{{healthPoints|}}}
|
{{!}}-
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[NPCs|Type]]:
{{!}} colspan="2" class="infobox-text" {{!}} {{{healthPoints|}}}
}}
{{#if:{{{type|}}}
{{#if:{{{type|}}}
|
|
Line 53: Line 59:
{
{
"format": "block",
"format": "block",
"description": "This template displays an infobox about NPCs entities.",
"description": "Displays a floating infobox to the right-side with information about an NPC entity.",
"params": {
"params": {
"type": {
"type": {
"label": "Type : Wildlife or Villager or Minion (dungeons) or Boss or Mini-Boss",
"label": "Type",
"description": "Follow the NPCs page to find their type.",
"description": "The type of entity the NPC is.",
"suggested": true
"type": "string",
"example": "wildlife",
"suggestedvalues": [
"boss",
"mini boss",
"minion",
"outlaw",
"tribe",
"wildlife"
]
},
},
"location": {
"location": {
"label": "Location : Forest, Jungle, Taiga, Tundra, Arctic, Desert, Savannah, World",
"label": "Location",
"description": "Follow the biome page to find their location",
"description": "The biome where the NPC is located.",
"type": "string",
"example": "Jungle",
"example": "Jungle",
"suggested": true
"suggestedvalues": [
"forest",
"jungle",
"taiga",
"tundra",
"artic",
"desert",
"savannah",
"world"
]
},
},
"aggressive": {
"aggressive": {
"label": "Aggressive : Yes or No",
"label": "Hostility",
"type": "string"
"description": "Whether the NPC attacks the player on sight.",
"type": "boolean",
"example": "true"
},
},
"damage": {
"damage": {
"label": "Damage",
"label": "Damage",
"example": "10",
"description": "The amount of damage the NPC's attacks deal.",
"type": "number"
"type": "number",
"example": "10"
},
},
"vox": {
"vox": {
"label": "Vox model",
"description": "A link to directory in the game's source repository which contains the NPC's entity vox files.",
"type": "url"
"type": "url"
},
},
"config": {
"config": {
"label": "NPC configuration",
"description": "A link to the file in the game's source repository which configures the NPC entity's vox files.",
"type": "url"
"type": "url"
},
"healthPoints": {
"label": "Health Points",
"description": "The amount of HP an NPC has.",
"type": "number"
}
}
},
},
Line 86: Line 123:
"location",
"location",
"aggressive",
"aggressive",
"healthPoints",
"damage",
"damage",
"vox",
"vox",

Revision as of 18:43, 10 February 2023

File:Veloren Template:Infobox npc.png
Template:Infobox npc
Statistics
Technical Information


Displays a floating infobox to the right-side with information about an NPC entity.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

The type of entity the NPC is.

Suggested values
boss mini boss minion outlaw tribe wildlife
Example
wildlife
Stringoptional
Locationlocation

The biome where the NPC is located.

Suggested values
forest jungle taiga tundra artic desert savannah world
Example
Jungle
Stringoptional
Hostilityaggressive

Whether the NPC attacks the player on sight.

Example
true
Booleanoptional
Health PointshealthPoints

The amount of HP an NPC has.

Numberoptional
Damagedamage

The amount of damage the NPC's attacks deal.

Example
10
Numberoptional
Vox modelvox

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

URLoptional
NPC configurationconfig

A link to the file in the game's source repository which configures the NPC entity's vox files.

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