Gilles

Veteran
Veteran
Joined
Oct 31, 2015
Messages
41
Reaction score
34
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:

Latest Threads

Latest Profile Posts

Surprisingly useful and thought provoking
Working on animation. Trying to see if I can apply it meaningfully to my games!
ddwk.png

working on the sprite for Devali <3
My Game Development Livestream

Forum statistics

Threads
110,373
Messages
1,052,759
Members
143,408
Latest member
BloodyMess
Top