NeMV - Tags Not rated

Nekoyoubi

This plugin allows actors, enemies, classes, skills, states, items, weapons, and armors to be tagged and those tags to be easily retrieved via script.


Tags nemv tags

Introduction

This plugin allows actors, enemies, classes, skills, states, items, weapons, and armors to be tagged and those tags to be easily retrieved via script.

Usage

Add a tag to your actor, class, enemy, item, weapon, or armor as below. Multiple tags per entry can be separated by white-space or commas, and tags are case insensitive.

<Tags: Plant>

... or...

<TAGS: root, red, alchemy>

... or...

<tags: BOSS FIRERESIST EXTRAGOLD>


Once your tags are added, they can be accessed in almost any location via:

[Object].hasTag("plant")

... or wild-card the tag with an asterisk to get partial matches...

[Object].hasTag("extra*")

This will return a boolean result indicating whether your object contains that tag (or any tag that matches your wild-card search) or not.

Tags can also be added and removed programmatically by calling either:

[Object].addTag("spoiled")

... or...

[Object].removeTag("fresh")

Note: Removing a tag that does not exist will NOT throw an error.


A couple of utility methods have also been added to allow you to quickly scan the party for tags on items they either possess or have equipped, or tags on states they may have active.

NeMV.Tags.AnyPartyItemsHaveTag("magical")

... will return true if the party possesses any items tagged as "magical".

NeMV.Tags.AnyPartyStatesHaveTag("weapon")

... will return true if a party actor has a state tagged as "weapon".

Support

Compatibility with YEP - Item Core exists to a degree, but may require additional effort when checking specific items. It's always advisable to use...

DataManager.getBaseItem(item)

... if you are using YEP - Item Core.

Should this plugin not work for you for any reason, please notify me by creating a Github issue, emailing me at lance-at-nekoyoubi.com, or message me in any social convention you happen to see me in.

Thanks, and happy tagging!

Available versions
This version doesn't have plugin dependencies.

User reviews (0)


This plugin doesn't have any review.