There is a way a skill may recieve a number as input?

Hi guys, I wanna make a skill (Lay on Hands) that haves a maximum of healing that my paladin can do (Stored in a variable, I think i will do this with a common event) and everytime you use it, it must ask the user how many heal hes gonna do (Showing him how many heal can do yet)

The problem is that im starting to use maker and im really a noob, ive been looking for plugins code for trying to learn and searched some guides, but never saw something like this.

This plugin can be used too to other skills, like cointhrower, for example.

So, my question is: Do you know how to make something like this? I dont want you to make this plugin for me, just to get some support.
I walked someone through doing something similar a while ago, you can find the solution over there.
Basically the idea is to cast a first skill that calls a common event where you ask for the number input, then in the common event force the actor to cast a second skill where the variable for the number input is in the damage formula.
I walked someone through doing something similar a while ago, you can find the solution over there.
Basically the idea is to cast a first skill that calls a common event where you ask for the number input, then in the common event force the actor to cast a second skill where the variable for the number input is in the damage formula.

Thank you! thats really similar what i was looking for!!!

Just another question: There is a way to set up a maximum on the input number box? other than digits
No there isn't.
I've written a small plugin for you, to allow you to do just this: find it here.
You can find the instructions in the help file of the plugin.
No there isn't.
I've written a small plugin for you, to allow you to do just this: find it here.
You can find the instructions in the help file of the plugin.
TYVM again man! your saving my life, THATS EXACTLY what i was looking for!!!

im just having a problem because i want that value to be variable and i dont know how to debug yet, but im pretty sure im gonna get it!!
Use the following:
Code:
$gameVariables.value(variableId)
instead of a number.
Use the following:
Code:
$gameVariables.value(variableId)
instead of a number.
Yeah, ive just made it! but i found a little bug, i will show you:

My character can heal up to 600 as maximum (at the start of the fight) and I heal 400 (At this moment, it should heal max 200 the next time I use lay on hands)

But when i use lay on hands again, default value of input number is 400 again (if i try to change it, it downs to 200)

Photos:
Max healing: https://gyazo.com/a763364ce6fb73833d42bee32991774a
Healing 400 HP: https://gyazo.com/9a3bc7ecd2ecf9859c461d66066cfa36
Using again: https://gyazo.com/fca90878d4caf5788dccb9bdecdf2bee
After change something: https://gyazo.com/35eccabd1dfd4fe1721e015c8344511b


There is a way to setup default value always 0? it would solve the problem
You can set the variable to 0 before asking for the number input via event commands.
You can set the variable to 0 before asking for the number input via event commands.
I am sorry for my ignorance, but ive been looking for how to do it and couldnt found , can you tell me please?
Via the event commands: Control variables > Choose the variable id that will serve to store the number input > Set > 0
Via the event commands: Control variables > Choose the variable id that will serve to store the number input > Set > 0
Remember this is a skill used during a battle, i cant use control variables, but ive made it manually and it worked!

I will share it you all:

NOTE TAGS:
(161 is my maxHealing variable, while 162 is the variable where I save how much heal the target will recieve)
<custom execution>
var variableId = 162;
var numDigits = 4;
var value = $gameVariables.value(161);
$gameMessage.setNumInputMax(value);
$gameVariables.setValue(162,0);
$gameMessage.setNumberInput(variableId, numDigits);
</custom execution>

<Custom Requirement>
if ($gameVariables.value(161) > 0) {
value = true;
} else {
value = false;
}
</Custom Requirement>

FORMULA:
var heal = $gameVariables.value(162); var maxHeal = $gameVariables.value(161); maxHeal -= heal; $gameVariables.setValue(161, maxHeal); heal;
I thought you used it via a common event, my bad.
Glad everything works out.

Original thread: https://forums.rpgmakerweb.com/threads/there-is-a-way-a-skill-may-recieve-a-number-as-input.79547/