Introduction
This plugin creates a new numerical pad, which you can use in your game.
This pad lets the player enter numbers, remove numbers from the buffer, and overall have a more robust numerical pad to use when they need to enter numbers.
This can be great for things like puzzles, or maybe a math game. It even comes with an area to to see the information you typed in.
One of the core features is that you can access the pad just about anywhere you can make a script call. The second thing is, it will pause the message
window until the player is done entering information.
One thing to note is that once you click "OK" on the pad, the pad will close, and the input is saved. The script calls below let you access that information, or open the pad at your leisure.
Check the website here for constant updates:
http://endlessillusoft.com/cecilia-numerical-pad/
Instructions
- Place the script in your plugins folder with the same name Cecilia_Heart and Cecilia_NumericalPad
- Place Cecilia_Heart above Cecilia_NumericalPad
- Enjoy
Core Features
- Shows maximum 9 characters
- Going over 9 characters pushes the pointer forward and shows characters 2 - 10 for example, instead of 1-10.
- Clearing the buffer by character using the X button
- Ok saves the input buffer
- Can pass the input, or value to a game variable
- Can access input directly
- Can store input upon pressing ok
- Pauses message window upon starting input processing
- Set your own window highlight (When people double click on it, you can highlight the window to be any color you choose -- make it pink if you want)
- Adjusted window sizing, and grid layout for ease of use
Scripts
View attachment Cecilia_Heart.js
View attachment Cecilia_NumericalPad.js
Script Calls
/* Version 1.03
//=============================================================================
// Script Calls
//=============================================================================
* Currently there are only two necessary scripts calls for this plugin.
* The four script calls are accessPad, storeInGameVariable, getBufferDirectly.
*
* $numPad.accessPad()
* This script call summons the numpad using the positions you set on screen.
* The numpad is locked to that position unlike other windows of the Cecilia
* system. With that in mind, you can use the numpad buttons to enter numerical
* information. X clearing one number from the buffer at a time.
*
* $numPad.closePad()
* This script call closed the numpad automatically, and deactivates it.
*
* $numPad.storeInGameVariable()
* Example: $numPad.storeInGameVariable(6);
* This script call does as it says; it stores the input into a game variable
* after processing. The most important part about this, is that it does this once
* called. So, you need to either set up a wait for the user to input a number, or
* if you're summoning while a message window is open. The message window will wait
* until you click 'OK' on the pad, before advancing the text.
*
* $numPad.storeInGameVariableUponCompletion()
* Example: $numPad.storeInGameVariableUponCompletion(6);
* This does the same thing as the above, but instead the value will be stored once
* the user presses okay, and no waiting is require; it will be done automatically.
*
* $numPad.getBufferDirectly()
* This does as it says; it will return the number entered into the buffer upon
* completion of processing -- when you hit "OK". Then, you can use it as you want,
* like storing it in a game variable for later use or in some crazy script call.
* The choice is yours.
*/
Screenshots
You can get constant updates on my website here:
http://endlessillusoft.com/cecilia-numerical-pad/
Credits:
Free for both commercial and non-commercial use.Credit with the name Kino or Endless Illusion Software.
Thanks:
I appreciate you using this script, and I'm glad that it's able to help you.
If there are any bugs/issue, please contact me via message on the forums.
Note:
If you have any ideas, please feel free to mention them here.