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 63: Line 63:
<templatedata>
<templatedata>
{
{
"format": "block",
"format": "block",
"description": "Displays a floating infobox with information about an NPC entity.",
"description": "Displays a floating infobox with information about an NPC entity.",
"params": {
"params": {
"type": {
"type": {
"label": "Type",
"label": "Type",
"description": "The type of entity the NPC is.",
"description": "The type of entity the NPC is.",
"type": "string",
"type": "string",
"example": "wildlife",
"example": "wildlife",
"suggested": true,
"suggested": true,
"suggestedvalues": [
"suggestedvalues": [
"boss",
"boss",
"mini-boss",
"mini-boss",
"minion",
"minion",
"outlaw",
"outlaw",
"tribe",
"tribe",
"wildlife"
"wildlife"
]
]
},
},
"location": {
"location": {
"label": "Location",
"label": "Location",
"description": "The biome where the NPC is located.",
"description": "The biome where the NPC is located.",
"type": "string",
"type": "string",
"example": "Jungle",
"example": "Jungle",
"suggested": true,
"suggested": true,
"suggestedvalues": [
"suggestedvalues": [
"forest",
"forest",
"jungle",
"jungle",
"taiga",
"taiga",
"tundra",
"tundra",
"artic",
"artic",
"desert",
"desert",
"savannah",
"savannah",
"world"
"world"
]
]
},
},
"aggressive": {
"aggressive": {
"label": "Hostility",
"label": "Hostility",
"description": "Whether the NPC attacks the player on sight.",
"description": "Whether the NPC attacks the player on sight.",
"type": "boolean",
"type": "boolean",
"example": "true",
"example": "true",
"suggested": true,
"suggested": true,
"autovalue": "false"
"autovalue": "0"
},
},
"damage": {
"damage": {
"label": "Damage",
"label": "Damage",
"description": "The amount of damage the NPC's attacks deal.",
"description": "The amount of damage the NPC's attacks deal.",
"type": "number",
"type": "number",
"example": "10"
"example": "10"
},
},
"vox": {
"vox": {
"label": "Vox model",
"label": "Vox model",
"description": "A link to the directory in the game's source repository with the NPC's entity vox files.",
"description": "A link to the directory in the game's source repository with the NPC's entity vox files.",
"type": "url"
"type": "url"
},
},
"config": {
"config": {
"label": "NPC configuration",
"label": "NPC configuration",
"description": "A link to this NPC entity's configuration file in the game's source repository.",
"description": "A link to this NPC entity's configuration file in the game's source repository.",
"type": "url"
"type": "url"
},
},
"healthPoints": {
"healthPoints": {
"label": "Health Points",
"label": "Health Points",
"description": "The amount of HP the NPC has.",
"description": "The amount of HP the NPC has.",
"type": "number",
"type": "number",
"example": "1000"
"example": "1000"
}
}
},
},
"paramOrder": [
"paramOrder": [
"type",
"type",
"location",
"location",
"aggressive",
"aggressive",
"healthPoints",
"healthPoints",
"damage",
"damage",
"vox",
"vox",
"config"
"config"
]
]
}
}
</templatedata>
</templatedata>

Revision as of 19:56, 10 February 2023

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



Displays a floating infobox 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
Stringsuggested
Locationlocation

The biome where the NPC is located.

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

Whether the NPC attacks the player on sight.

Example
true
Auto value
0
Booleansuggested
Health PointshealthPoints

The amount of HP the NPC has.

Example
1000
Numberoptional
Damagedamage

The amount of damage the NPC's attacks deal.

Example
10
Numberoptional
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.