Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
VYL0wLb.png

Author: Hakuen Studio

Introduction

This plugin optimizes all of my other plugins, making them less code and easier to maintain and implement improvements. It is not a core plugin, it does not overwrite any function of the standard codes of the RPG maker MZ.

Features

Provide methods and code that add a better performance on all Eli plugins.

How to use

Put above all other Eli plugins.

You can use it in script calls. You can also copy and paste these's functions to your own plugins. Just give me the credits ^^


● Eli_Book
• eli.scene() → Returns the current scene.
• eli.ruleOf3(a, b, c) → Realize a simple rule of 3.
• eli.isScene(My_Scene) → Returns true if you are in the specified scene.
• eli.needEval(String) → If the string is not a number, it will eval. Otherwise, it will return the String.
• eli.nameToRGB(htmlColorName) → Convert an html color name to RGB color.
• eli.hexToRgb(hexColor) → Convert a hex color to RGB color.
• eli.convertEscapeVariablesOnly(text) → It will return a text with the \v[ID] converted.
• eli.convertEscapeCharacters(text) → Returns a text with all escape characters converted.
• eli.toLowerCaseArray(array) → Will return a new array with all string elements to lower case.
• eli.centerX(objWidth, baseWidth) → Returns the centered position of X.
• eli.centerY(objHeight, baseHeight) → Returns the centered position of Y.
• eli.centerPos(objWidth, objHeight, baseWidth, baseHeight) → Returns the centered position of X and Y.
• eli.divideByTheLargest(num1, num2) → Divides the largest number by the smallest.

● Game Player
• $gamePlayer.meta() → Return the meta of the actor Id that is the party leader.

● Game Event
• $gameMap.event(ID).meta() → Return the meta of the event id specified.
• $gameMap.event(ID).note() → Return the note of the event id specified.

● Image Manager
• ImageManager.saveOldCache() → It has to be used on the start method of a
scene. It will save the current cache state.
• ImageManager.restoreOldCache() → It has to be used on the terminate method of a scene. It will set the cache to the saved one.
With these functions, you simulate a clear cache, but only clear the cache generated for the current scene, and restore it to the old one, before entering this scene.

● Sprite
• mySprite.scaledBitmapWidth() → Returns the sprite dimension value considering the scale.
• mySprite.scaledBitmapWidth() → Returns the sprite dimension value considering the scale.
• mySprite.stretchToScreen(aspectRatio, baseWidth, baseHeight) → Stretch the sprite bitmap to the screen. You can choose to keep or not the aspect ratio. The other parameters are set by the Screen size by default.

Terms of Use
https://www.hakuenstudio.com/rpg-maker/terms-of-use
DOWNLOAD - Current Version 3.2.0
Eli's_Book.js

Update Log
Version 3.2.0 - 02/08/2021
- Improvements on the Eli.ColorManager object.
Version 3.1.0 - 01/30/2021
- Add method to get the event id where a plugin command is executed.
Version 3.0.0 - 12/18/2020
- Reorganized the Eli.Book object.
- Added Eli.Book.PluginManager, Eli.Book.Easing and Eli.Book.ColorManager.
Version 2.3.1 - 12/16/2020
- Add compatibility patch to Galv_EventSpawnerMZ.js
Version 2.3.0 - 11/28/2020
- Changed the way plugin gets the ease type.
- Add a full keyboard code object.
Version 2.2.0 - 11/11/2020
• Fixed a bug when evaluating some expressions with eli.needEval().
• Adds a custom scene base.
• Adds log e log table functions.
• Add easing functions from Robert Penner.
• Add method to get the next and previous event commands on the game interpreter.
Version 2.1.0 - 20/10/2020
• Method to read map data that are not loaded.
• Some methods to convert specific plugin parameters that define blend mode, picture origin, and easing type.
Version 2.0.0 - 10/16/2020
• Add UI parameter on setPresetPos.
• Add a new method to check the type of a $dataObject.
• Add new classes to cover MV animations in any sprite.
• Add new method to processEscapeCharacters or formula(eval).
• Add a new method to convert escape characters on plugin command/arguments.
• Add a new method to process plugin parameters.
• Add a new method to register plugin commands.
Version 1.3.0 - 09/26/2020
• Created my own button class
Version 1.2.0 - 09/23/2020
• Changed the convert colors function.
Version 1.1 - 16/09/2020
• Add new methods(see more on help file):
• eli.ruleOf3 (don't laugh... xD)
• eli.centerX
• eli.centerY
• eli.centerPos
• eli.divideByTheLargest
• Sprite.prototype.scaledBitmapWidth
• Sprite.prototype.scaledBitmapHeight
• Sprite.prototype.stretchToScreen
• ImageManager.saveOldCache
• ImageManager.restoreOldCache
Version 1.0 - 10/09/2020
• Plugin release!
 
Last edited:

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Updated first post.
Version 1.1 - 09/16/2020

• Add new methods(see more on help file):
• eli.ruleOf3 (don't laugh... xD)
• eli.centerX
• eli.centerY
• eli.centerPos
• eli.divideByTheLargest
• Sprite.prototype.scaledBitmapWidth
• Sprite.prototype.scaledBitmapHeight
• Sprite.prototype.stretchToScreen
• ImageManager.saveOldCache
• ImageManager.restoreOldCache
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Updated first post!
Version 2.0.0 - 10/16/2020
• Add UI parameter on setPresetPos.
• Add a new method to check the type of a $dataObject.
• Add new classes to cover MV animations in any sprite.
• Add new method to processEscapeCharacters or formula(eval).
• Add a new method to convert escape characters on plugin command/arguments.
• Add a new method to process plugin parameters.
• Add a new method to register plugin commands.
Version 1.3.0 - 09/26/2020
• Created my own button class
Version 1.2.0 - 09/23/2020
• Changed the convert colors function.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.1.0 - 20/10/2020
• Method to read map data that are not loaded.
• Some methods to convert specific plugin parameters that define blend mode, picture origin, and easing type.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.2.0 - 11/11/2020
- Fixed a bug when evaluating some expressions with eli.needEval().
- Adds a custom scene base.
- Adds log e log table functions.
- Add easing functions from Robert Penner.
- Add method to get the next and previous event commands on the game interpreter.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.3.0 - 11/29/2020
- Changed the way plugin gets the ease type.
- Add a full keyboard code object.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.3.1 - 12/16/2020
- Add compatibility patch to Galv_EventSpawnerMZ.js
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.0.0 - 12/18/2020
- Reorganized the Eli.Book object.
- Added Eli.Book.PluginManager, Eli.Book.Easing and Eli.Book.ColorManager.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
@Oddball
Are you using the MV or MZ version?
Send me a screenshot of your plugin list.
Also, trigger the error again, then press F12 or F8 and open the console tab and send me a screenshot of the error log there too.
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,967
Reaction score
558
First Language
English
Primarily Uses
N/A
Ah! it's the static EXP script. thanks, i'll download the latest version

The only "scripting" i know how to do well is with variables in the editor, so again this is a big help
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.1.0 - 01/30/2021
- Add method to get the event id where a plugin command is executed.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,882
Reaction score
1,360
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.2.0 - 02/08/2021
- Improvements on the Eli.ColorManager object.
 

Latest Threads

Latest Posts

Latest Profile Posts

Made the "My Beating Mystery" board today:
3ENFLSC.png

in Grim Trigger episodes 3 & 4, the main characters play a Clue rip-off board game called "My Beating Mystery" (haha), so of course I had to draw the board for it. Can't decide if I wanna add blood or not
Jeez...
I finally decide, after several ppl asking me to, to create a gamethread about project M... And my internet craps out on me halfway through the process :(
making my first game is like trying to stuff all my experience with old games into one
so its slow and painful when i dont get it right... i bet the next game is gonna be finished earlier!
When you don't find any time to work... :kaocry:
First Ten Minutes of my Caretaker inspired game

Forum statistics

Threads
110,401
Messages
1,053,010
Members
143,460
Latest member
Totaldramawwe
Top