Introduction
A plugin meant to handle metadata from game objectd.
All metadata are supported. (See list below)
Metakeys are known as notetags
Features
Spoiler: versions log
V1.0
Reading, writing and deleting metadata from map events.
Allow a user to set multiple notetags (meta keys) and have values attached to them. V1.01
Allow a user to use the meta keys in the conditionnal branch part.
This enables the user to make the event act differently based on its notetag. V1.02
Allow a user to apply actions on an eventId based on a variable value.
Can be usefull if you spawn new events and want to edit their metadata before proceeding. V1.03
Enables the user to use an array of words for metaKey and metaValue, defaults them at true and parses both true and false as such instead of strings. V1.04
Huge update
Enables the user to use this tool across all game objects
Fixed some parsing issues
Increased the global scope possibilities V1.04b
Fixed the missing map data, thanks to AquaEcho for pointing it out.
Screenshots
Spoiler: Conditionnal branch add-on
How to Use
- Copy the "Ryu_metaDataHandler.js" file into your project's /js/plugins/ folder
- Activate plugin using the 'Plugin Manager'
- Read the 'HELP' documentation (also found in plugin manager).
Spoiler: Info
JavaScript:
/* v1.04b
* Fixed the missing map metadata. Thanks to AquaEcho for pointing that out.
*
* v1.04
* This new version enables the user to edit meta data from any game object.
* This is a major update and renders errors with v1.0
* Make sure to upgdate the syntaxes in your game
*
* How to use:
* Open the command module and use following settings
* - MDataId or MDataVar (case sensitive)
* MDataId should be used it you know the exact ID you are trying to affect.
* MDataVar will use a the value of the variable ID provided.
*
* - read, write, delete and readall
* read will read the value of the provided key from the provided object id.
* write will write both the key and the value to the provided object id.
* delete will delete both the key and the value to the provided object id.
* readall will read all keys and their values from the provided object it.
Terms and Credits
Free to use
Feel free to credit Ryuuji, or not. ^^
Feedback
I have a few ideas to increase the scale of this tool, but unless someone specifically needs it, I think I'll pass for now.
Let me know if you have any ideas or suggestion.
Bug detected? Let me know!
Added new versions to widen the scale of the tool.
V1.01 adds a global scope to use data for conditionnal branching
V1.02 adds a variable handler (second command option) to act on eventId based on variable value
V1.03 adds the possibility to use an array of words as metaKey and metaValue and is more optimised.
V1.04 adds a objectType to be able to use any game object as a reference and increased the global scope to all data, not just bools