Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,843
Reaction score
1,268
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,843
Reaction score
1,268
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,843
Reaction score
1,268
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,843
Reaction score
1,268
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,843
Reaction score
1,268
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,843
Reaction score
1,268
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,843
Reaction score
1,268
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,843
Reaction score
1,268
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,843
Reaction score
1,268
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,954
Reaction score
549
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,843
Reaction score
1,268
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,843
Reaction score
1,268
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

I like that update notices for RPG Maker MZ are being sent via email . . . I often forget to check from within the program. :smile:
Long time no see. Is “put on and take off my hat readily” right or natural?
My English teacher said the "readily" is used wrongly here. But I am not sure. Thank you very much for answering my small question.
More: The context is: The hat was too tight to wear originally and modified to suit the head and now I'm trying on it.
Ami
--- Difficulty Affect: Price ---

(Very Easy Difficulty)
Merchant: This HP Bottle just cost 5G per item
M.Archer: How much i sell it?
Merchant: It cost 50G per item
M.Archer: Alright,i buy 50
(Very Hard Difficulty)
Merchant: This HP Bottle cost 100G per item
M.Archer: How much i sell it?
Merchant: 5G
M.Archer: (Mouth Bleeding)
Finding synonyms for 'Crystal' is a bit awkward, because the thesaurus occasionally thinks I'm talking about drugs.
"Today I will totally open up RPG Maker and work on my game. I have lots of ideas!"

End of day spoiler: It didn't happen.

Forum statistics

Threads
109,139
Messages
1,042,460
Members
141,638
Latest member
Vash
Top