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 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.
- Place the script in your plugins folder with the same name Cecilia_Heart and Cecilia_NumericalPad
- Place EISFileSystem.js above Cecilia_Heart, and above Cecilia_NumericalPad
- 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
Setup Example Window
We access the pad using $numPad.accessPad(); this opens the pad up, and pauses the advancement of the message window.
We set what variable to store the answer in using $numPad.storeInGameVariableUponCompletion(6); this stores it in game variable 6.
Updated Window — now with Highlighting!
Example of overflowing the buffer
Free for both commercial and non-commercial use.
Credit with the name Kino or Endless Illusion Software.
I appreciate you using this script, and I’m glad that it’s able to help you.
If you have any ideas, please feel free to mention them here.