设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 112|回复: 0

[转载发布] Tag Manager

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58883
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68848

    灌水之王

    发表于 2026-8-2 11:22:54 | 显示全部楼层 |阅读模式
    This tag manager is very powerful when it comes to designing your database since you can classify objects anyway you want. It allows you to assign "tags" to objects.

    A tag is simply a single alphanumeric (A to Z, 0 to 9, some symbols) string with no spaces. Examples of tags include "sword" or "carrot" or "1000eyes". Any concept that you can imagine can be reduced to a set of tags that are used to describe the idea:

    You can use tags to describe an actor's gender ("male", "female")

    You can use tags to describe the rarity of an equip ("common", "rare")

    You can use tags to describe an actor's race ("human", "vampire", ... )

    Once tags have been assigned, you can then assign "tag conditions", which are conditions that must be met in order for an item to be usable. For example, a "collar" might only be equippable by dogs, so you would include a condition that requires an actor to be a "dog" in order to equip it.





    Download

    Get it at Hime Works

    Usage

    We start with some basics concepts.

    A "tag object" is any ob ject that supports tags. The following objects support tags

    Actors

    Classes

    Skills

    Items

    Weapons

    Armors

    Enemies

    States

    Maps

    An actor's tags is the collection of all tags that are assigned to the actor, her current class, and any equips or states.

    Tagging objects

    Assign tags to tag objects using the note-tag

    <tag: x><tag: x y>For strings x, y. You may have multiple tags in a single note-tag by separating them with a space



    Tag Conditions

    You can require items or skills to have an effect on the target only when the target has the required tags. Similarly, you can require weapons or armors to be equippable only when all tag conditions are met.

    Specify a tag condition using the note-tag

    <tag_cond: x><tag_cond: x y>For strings x, y.All conditions are specified using three basic boolean operators: AND, OR, NOT.

    For example,

    "a AND b" means an actor must have both tags to meet the condition.

    "a OR b" means an actor must have at least one of the tags to meet the condition.

    "NOT a" means an actor must not have the tag to meet the condition.

    This script does not support parentheses matching, so you will have to use DeMorgan's laws to convert them into simpler statements that is recognized by the tag manager.

    a AND (b OR c) = (a AND) b or (a AND c)NOT (a AND  =  (NOT a) or (NOT This might be tricky at first if you are not familiar with boolean logic but it is not difficult to understand with practice.



    Map Conditions

    These are the same as tag conditions, except you use them to compare with the current map. Note-tag an object with

    <map_cond: x><map_cond: x y>For some strings x, yYou will tag the map as usual with

    <tag: x>Map conditions are used when you require something to be true about the current map. For example, you might have items that are only usable on "world maps", and this is easily accomplished by adding a map condition for the item and tagging your maps appropriately.Accessing tags

    Sometimes you would like to explicitly check whether tags exist in your events or other scripts.

    You can do this by accessing the `tags` property that is exposed by all Tag Objects.

    For example, to access the first actor's tags, you would say

                    Code:       
    1. $game_actors[1].tags
    复制代码

    This will return all of the tags that are currently assigned to actor 1.


    本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/tag-manager.5824/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-17 11:38 , Processed in 0.138274 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表