- Joined
- Jun 6, 2014
- Messages
- 24
- Reaction score
- 18
- First Language
- English
- Primarily Uses
- RMMV
Scriptlets V1.1.2
Pivoo
Pivoo
Introduction
Hello! I am Pivoo and I guess its about time to release my first plugin to the world!
This is Scriptlets. It is a database of Script Calls in a similar vain of how Common Events work. it was created to be able to shrink down and organize code that sometimes gets out of hand or too long. some of its uses include shortening down damage formulas and other plugins note-tags, and having code run via Auto-run or a Parallel Process.
Features
- The ability to create and store an infinite number of Scriptlets inside the plugin parameters
- the ability to run large amounts of code in small amounts of characters.
- the ability to have code run when the game boots up.
- the ability to run code as a parallel process or auto-run loop.
Screenshots
How to Use
most of the plugin is set up in the parameters. simply create a Scriptlet, add an item to the list and fill out the parameters. some of the parameters are.
- Name: Mainly for organization, not required to be filled in.
- Script: The Meat and Potatoes of the script. put js in here and watch it run(or crash)
- Type: The type of Scriptlet it will be, there is currently 4 types of Scriptlets.
*Note: all Scriptlets can also be run using a Script Call or Plugin Command,
regardless of what type of Scriptlet it is.
- Normal: A normal Scriptlet. Will not run unless specifically called for.
- Initialize: This Scriptlet will run at the start of the game(The Creation of the Boot
Scene)
- Parallel: This Scriptlet will run once a frame while in map or in battle.
- Autorun: Similar to the Parallel but will lock down the game instead of working in
the background
*new*
- Close - this will run when the game window is closed, currently only works for
Desktop Versions of RPG Maker
- Condition: this is a bit of js that runs to check whether or not this Scriptlet will run.
To run a Scriptlet. you can choose one of two ways. one way is to do a Script Call. to do this simply run this in a script box or anywhere else that accepts Js.
Code:
$js.run(id, arguments)
Code:
RunScriptlet id arguments
you can now use Escape Codes in text boxes and such! to use it now use
Code:
/js[id]
FAQ
Q: How do I call arguments?
A: simply use this
Code:
args[x]
Change-log
V1.1.2
- cleaned up a-lot of code
- changed Condition from an evaluation to an anonymous function
- changed how Type Scriptlets are handled to help reduce lag with alot of scriptlets loaded
V1.1.1
- fixed a few bugs with Escape Character Scriptlets
V1.1.0
- added Close Type Scriptlets
- added Escape Character Support
- added args[x] to replace arguments[0][x]
- shifted the index of Scriptlets up by one, as well as making Scriptlet # 0 return null
- cleaned up a-lot of code
- changed Condition from an evaluation to an anonymous function
- changed how Type Scriptlets are handled to help reduce lag with alot of scriptlets loaded
V1.1.1
- fixed a few bugs with Escape Character Scriptlets
V1.1.0
- added Close Type Scriptlets
- added Escape Character Support
- added args[x] to replace arguments[0][x]
- shifted the index of Scriptlets up by one, as well as making Scriptlet # 0 return null
Credit and Thanks
- Pivoo
- SumRndmDude & LTN Games for helping me solve a few bugs!
- Kino and Waynee95 for helping with Closing Scriptlets Types
Attachments
-
10.4 KB Views: 20
Last edited:

