じ☆ve冰风 发表于 2026-7-30 08:33:57

Iavra Note Files

Description


        Allows to store notetags in text files and reference them from database objects and events.


Author


        Iavra


Parameters


@param File Path
@desc Path of the file to load. Multiple files can be specified when separated by commas. Default: data/notes.json
@default data/notes.json

@param Notetag
@desc Tag used to load metdata from files. Default: textnote
@default textnote




How to Use


        Note: This plugin has to be placed below everything else that deals with DataManager.extractMetadata().


        Create one or more files and store their locations inside the "File Path" parameter, separated by comma. The files are formatted like this:


{   
        "key1" : "some notes",   
        "key2" : "some more notes",   
        "key3" : [      
                "notes with",      
                "linebreaks"   
        ]
}


        JSON itself doesn't allow real linebreaks inside Strings, but you can use an array, instead, which will automatically be converted to a single String with linebreaks.


        Inside your database objects and events, you can reference these entries like this:


<textnote key1>


        If "textnote" is already in use by another plugin or you want to use a different notetag, you can change it with the "Notetag" plugin parameter".


Terms of Use


        Free to use for both commercial and non-commercial games. Please give credit.


Download


http://pastebin.com/e465Ucdf


Notes


        The plugin originated from this request: http://forums.rpgmakerweb.com/index.php?/topic/49035-load-notesnotetags-from-text-files/


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