注意:游戏新版本刚刚发布,本 wiki 内容进度严重滞后,页面上的内容几乎肯定存在遗漏、错误,请谨慎采信。
Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南

Template:BuffIdFromName/doc

来自Terraria Wiki
跳转到导航 跳转到搜索

This template returns the buff ID of a buff or debuff, based on its name. All data is from the 电脑版 电脑版 1.4.4 source code. For buffs exclusive to the legacy 移动版 移动版, it returns the ID prefixed with "m" (e.g. m205).

Usage

{{ buffIdFromName | <buff name> }}

First unnamed parameter

Name of the buff. If there are several buffs with the same name, the ID of the first buff will be returned.

Notes

  • The buffs that flasks grant can be entered without the colon as well (see examples).

Examples

Code Result
{{buffIdFromName|Confused}} 31
{{buffIdFromName|Weapon Imbue: Fire}} 74
{{buffIdFromName|Weapon Imbue Fire}} 74
{{buffIdFromName|Pet Guinea Pig}} m202
{{buffIdFromName|}}
{{buffIdFromName|inexistent}}

See also