Template:BuffIdFromName

From Terraria Wiki
Jump to: navigation, search
Template-info.svg Documentation The documentation below is transcluded from Template:BuffIdFromName/doc. (edit | history)

This template returns the Buff ID of a buff, based on its name. All data is from the Desktop 1.4.2.1Desktop version source code. For old-mobile exclusive buffs, it will return with prefix "m"(e.g. m205).

Usage

{{BuffIdFromName|<buff name>}}
Unnamed parameter 1

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|non-exist}}

See also