This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// How To Use | |
//============================================================================= | |
* | |
* This plugin uses both the ASK system and Rem System; we use comments | |
* to make them work together and make your life easier. | |
* | |
* First, create a new comment in RPGMaker MV. | |
* Within the comment type <lbite> </lbite> | |
* Inside that comment you type the text files you want to attach line by line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// Introduction | |
//============================================================================= | |
* | |
* This plugin is completely touched based at the moment. This is based off | |
* FF14's Grid Inventory system. As of right now, you have quite a few options | |
* in terms of grid size, and items. You can also have tabs based on your inven- | |
* tory size (multiple pages). It comes with a mini window to open the inventory. | |
* | |
//============================================================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// Script Calls | |
//============================================================================= | |
Saber.getWeapon(weaponName) | |
//Example | |
Saber.getWeapon("Rampart"); | |
//Gets the weapon by the name in the database. | |
Saber.levelupWeapon(weaponName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "MyDesktopApp", | |
"version": "1.0.0", | |
"main": "index.html", | |
"description": "Tool Description", | |
"window": { | |
"title": "MyWebKit" | |
}, | |
"repository": { | |
"type": "git", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
//Basic Reduce | |
let array = [1, 2, 3, 4, 5]; | |
let result = array.reduce(function(sum, element) { | |
//Increase sum by element amount | |
sum += element; | |
console.log(sum); //1, 3, 6, 10, 15 | |
return sum; //return the current sum for the next iteration | |
}, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
//Object Reduce | |
let names = ['Ray', 'Hiro', 'Ross']; | |
let obj = names.reduce(function(finalObj, name, index){ | |
//Create new property on object based on index (1, 2, 3) and assign name to it | |
index+=1; | |
finalObj[index] = name; | |
console.log(finalObj[index]); | |
return finalObj; //return the object for the next iteration | |
}, {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// Object.Assign | |
//============================================================================= | |
class Robot { | |
constructor(name) { | |
this._name = name; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// Object.Assign 2 | |
//============================================================================= | |
class Printer { | |
static printLine() { | |
console.log('============================================\n'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// RegExPatterns.js | |
//============================================================================= | |
'use strict'; | |
//Pattern for: <cooldown: 12 > | |
//Pattern 1 matches < cooldown : 12 >, <cooldown:12>, <cooldown: 12>, etc | |
/<\s*cooldown\s*:\s*(\d+\.*\d*)\s*>/ig; | |
//Pattern 2 matches <cooldown:12> Only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// RegExPatterns.js | |
//============================================================================= | |
//Reading note tag from skill data in RMMV: $dataSkills is for skill data. | |
$dataSkills.slice(1).forEach(function(skill) { | |
'use strict'; | |
let data = /<\s*cooldown\s*:\s*(\d+\.*\d*)\s*>/ig.exec(skill.note); | |
if(data !== null ) { |