Template:GetMountInfo

来自Terraria Wiki
跳到导航 跳到搜索
Template-info.svg 文档 以下文档来自Template:GetMountInfo/doc。(编辑 | 历史

This template is used to dynamically retrieve information about a mount.

{{mountinfo}} is an alias for {{getMountInfo}}.

Usage

{{ mountinfo | <mount name or ID> | id = <mount ID> | <stat to query> | raw = y/yes }}

First unnamed parameter, id

Name/ID of the mount. Only one out of the two parameters should be used.

Second unnamed parameter

Information to retrieve, can be any of the following:

  • name
  • namesub
  • image
  • summon
  • tooltip / desc
  • iname
  • max speed
  • time till max speed
  • acceleration
  • jump reach
  • heightBoost
  • buff
  • extraBuff
  • flightTimeMax
  • usesHover
  • runSpeed
  • dashSpeed
  • swimSpeed
  • jumpSpeed
  • jumpHeight
  • fallDamage / fall damage
  • fatigueMax
  • constantJump
  • blockExtraJumps
  • abilityChargeMax
  • abilityDuration
  • abilityCooldown

Can also be count to retrieve the total number of mounts. The name/ID is ignored in that case.

For the acceleration, runSpeed, dashSpeed, and swimSpeed stats, the output will already be converted from the internal pixels-per-tick to a tiles-per-second velocity.

raw

Some stats receive some formatting via templates like {{mph}} or {{duration}} when displayed; use this parameter to prevent that and display the raw value, e.g. for use in expressions.

Examples

Code Result
{{getMountInfo|3|name}} Slime Mount
{{getMountInfo|13|namesub}} Wooden
{{getMountInfo|13|image}} Wooden Minecart (mount).png
{{getMountInfo|14|tooltip}} Crash into anyone... and EVERYONE!
{{getMountInfo|47|iname}} WallOfFleshGoat
{{getMountInfo|Witch's Broom|max speed}} 46 mph
{{getMountInfo|Witch's Broom|max speed|raw=y}} tiles/second 33.75 tiles/second
{{mph|{{getMountInfo|Witch's Broom|acceleration}} tiles}}/second 49 mph/second
{{getMountInfo|Witch's Broom|time till max speed}} 0.94 秒
{{getMountInfo|Witch's Broom|time till max speed|raw=y}} 0.9375
{{getMountInfo||count}} 54