GDT Core Utility - Lunatic Tags Parser, Better Notetag Parser

Gilles

Veteran
Veteran
Joined
Oct 31, 2015
Messages
41
Reaction score
33
First Language
German
GDT: Core v1.0
 
Introduction


This plugin provides some useful Tag Parsing Features and a useful command for selfswitches. This plugin will be extended with Utility Features.


Notetags Parser (built in. Nothing to do)


The standard parser allows only one tag of the same kind in one notetag. The GDT Parser returns an Array of all tags when you add more than one tag per notetag.


If you only add one tag of the same kind it has the same behaviour as the old parser.


Notetag Executer (GDT.Util.useTag Function)


While it's nice to have the possibility to add more than one tag of the same kind, you usually need to check if your tag is a string or an array. With this function you don't need to care.


You just put the meta tag and the function to execute in.


GDT.Util.useTag(names,function(name) {
console.log(name);
});


Lunatic Tags Parser (GDT.Util.LunaticTags)


Many of you know the Lunatic Tags from Yanfly which allow more flexibility with plugins, cause you are allowed to write Javascript inside the notetags.


This Method allows you to read tags from notetags which have a start and an end tag (like in xml/html)


Example Usage in Notetag:


<nickname>
if(level > 6) {
return "Awesome ";
} else {
return "";
}
</nickname>


After this, you just need to convert this function string into a real function. I provided an example with nickname changing via level (LevelNicknames.js)


Change Selfswitch of Map-Event (GDT.Util.setSelfSwitch)


You can change the selfSwitch of an Map Event in an easy way. You just need the event id (upper left corner when you open the event), the Selfswitch name (A,B,C or D) and the status (true -> ON, false -> OFF)


Installation-Guide
Just copy the plugin into your plugin folder and add it to your plugin list.


Try to put it in as one of your first plugins.


 Download


 
Credit and Thanks
- Gamedev-Tutorials
You can use and edit this plugin as you want. This plugin is open for non commercial and commercial use. Just give me a little credit =) 


Changelog
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I'm back to the bugs.
100 bugs in my coding,
take one down,
fix it up,
132 bugs in my coding.
On the plus side, if all this rioting sparks another Covid outbreak... I will have a whole lot of time to work on my game. Not exactly how I wanted to get that time, but hey I'm a glass is half full... of RM kind of guy. :LZSwink:
A video once in a while won't hurt.
Have a craving for a Nesquik milkshake. No idea why. Haven't had one since I was a kid. lol. I remember them kinda tasting nice, but also leaving a lot of nasty powder at the bottom of the cup.

Forum statistics

Threads
98,068
Messages
949,008
Members
129,341
Latest member
Shinkukae
Top