Greetings everyone - I had a problem writing my own scripts for RPG Maker MV, so I thought I would request something.
Disclaimer: I checked all possible plugins for MV, none could provide the functionality for me. I also tried scripting myself, but I cannot understand RPG Maker's structure at all....
- Currently using Yanfly's Engine, and ATB Plugin.
Question:
Is there a way to Bind SPECIFIC KEYBOARD KEYS in battle to trigger the character to use a desired skill?
I am trying to make something like this:
Pressing A, S, D, F or G on the keyboard during ATB system battles would bring in a script that works like this:
if (character_with_ID_1_current_MP >= X) {
use_Skill_with_ID_x_on(target)
decrease_character_with_ID_1_MP_by_X
}
else {
play sound file
};
Or to be more specific:
I want to make it so that, at any time while the ATB guage charges for the main character (there is literally only one character in our team), if I press a desired button on the keyboard, the character will unleash a skill (either on all enemies OR a random target OR target chosen via a parameter evaluation, like Highest HP) IF he has enough MP to do the action, otherwise he gets a "no-MP" sound out. Everything else works like normal in Yanfly's ATB script, even our main character gets to make a move, once his ATB fills up.
I know a tiny bit of Java Script, but I am entirely new to RPG Maker and its incredibly hard to understand how I access its functions or items(skills, actors, etc.) in the database...
Can someone help me with writing a script for this?
Or, if you would be so kind, direct me to somewhere where I could learn how to access Battle.Manager's functions? I tried skimming through it, but the code tells me nothing in how it accesses the database... I tried reading the Help File, but I am too new to RPG Maker perhaps... Searching online only gets me ready scripts. I am somehow missing tutorials or documentation (if it exists) on how to use the existing functions in MV.
You could say my main problem is "I kinda know the syntax and some standard functions of JS, but have no idea what RPG Maker does with its functions..."
Also I tried to use Events to call a common event in battle, but using Force Action crashes the game. So... yes. Common Events seem to not work with the ATB system....
I kindly ask for your support here.
Disclaimer: I checked all possible plugins for MV, none could provide the functionality for me. I also tried scripting myself, but I cannot understand RPG Maker's structure at all....
- Currently using Yanfly's Engine, and ATB Plugin.
Question:
Is there a way to Bind SPECIFIC KEYBOARD KEYS in battle to trigger the character to use a desired skill?
I am trying to make something like this:
Pressing A, S, D, F or G on the keyboard during ATB system battles would bring in a script that works like this:
if (character_with_ID_1_current_MP >= X) {
use_Skill_with_ID_x_on(target)
decrease_character_with_ID_1_MP_by_X
}
else {
play sound file
};
Or to be more specific:
I want to make it so that, at any time while the ATB guage charges for the main character (there is literally only one character in our team), if I press a desired button on the keyboard, the character will unleash a skill (either on all enemies OR a random target OR target chosen via a parameter evaluation, like Highest HP) IF he has enough MP to do the action, otherwise he gets a "no-MP" sound out. Everything else works like normal in Yanfly's ATB script, even our main character gets to make a move, once his ATB fills up.
I know a tiny bit of Java Script, but I am entirely new to RPG Maker and its incredibly hard to understand how I access its functions or items(skills, actors, etc.) in the database...
Can someone help me with writing a script for this?
Or, if you would be so kind, direct me to somewhere where I could learn how to access Battle.Manager's functions? I tried skimming through it, but the code tells me nothing in how it accesses the database... I tried reading the Help File, but I am too new to RPG Maker perhaps... Searching online only gets me ready scripts. I am somehow missing tutorials or documentation (if it exists) on how to use the existing functions in MV.
You could say my main problem is "I kinda know the syntax and some standard functions of JS, but have no idea what RPG Maker does with its functions..."
Also I tried to use Events to call a common event in battle, but using Force Action crashes the game. So... yes. Common Events seem to not work with the ATB system....
I kindly ask for your support here.