Hi, I've recently started working on a RPG Maker MZ project, after learning that we are using Java Script now. Now I am personally not very good at it, but I know a little bit about JS and programming in general, but I would appreciate if someone more experienced could take the time to look at what I am trying to do, and point me in the direction of the correct files or functions, maybe linked a tutorial that explains this thing or let me know if the way I think something should be done is terribly inefficient.
I want my games to have a battle system resembling auto battlers that been popular in the last few years and are overall a lot of fun. (Afk Arena, Mythic Heroes etc etc)
So the current plan is to base it on the Time Progress (Wait) system,
1)when an actor's gauge is filled, instead of giving player the act menu, tell the actor to attack the first available target.
(Maybe create a note tag, that would let certain classes have different priority? Assassins and healers could use targeting the lowest health instead)
2) 3rd and 5th attacks an actor performs would instead of normal attack, auto cast a skill on first available target.
3) At the bottom of the screen player would have the actor portraits, which when some gauge is filled (maybe I can base this on TP that already exists), a skill would be queued to perform as the next action.
3a) Preferably, I'd like to give the player an ability to click on an enemy, and until another target is clicked, that one would be the target of all "active" skills.
(This is not the full combat system, just the things that I think I may need help with, no point asking about things I think I know how to do, until it turns out I was wrong ^^')
So the way I imagine doing this, is finding the script that handles the combat, locating the place where the act menu is opened and creating an if statement above it.
(This is not an actual attempt at code just me putting my thoughts on paper)
var actorSkillQueued = 0;
var baseAttackCount = 0;
if actorSkillQueued == 1
use x Skill.
else if
baseAttackCount >= 4
use y Skill
set baseAttackCount = 0
else if
baseAttackCount == 2
use z Skill
baseAttackCount++
else if
baseAttackCount >= 0
use Attack
else
Here would be the normal battle menu code as a fail safe so the game doesn't crash if anything goes wrong (hopefully)
I'd specifically like to instead of telling the game to perform an attack, to tell it to press the attack option, so that I can correctly set up the attacks in editor.
TL DR Questions would be :
Where do I find the battle code,
how do I tell the game to select a specific attack or skill instead of giving the player control,
What file do I have to work with to add button functionality to the player portraits in battle,
Creating note tags and implementing it into targeting priority?
Get what enemy was clicked?
(Again, I'm fine with just pointers or being linked to a tutorial that covers it, but any help will speed up the process considerably)
I guess I can also end it on a little design question too, because as much as I enjoy the auto battler style, I do think giving player a little more agency could go an extra mile for making the game more enjoyable...
What do you guys think would be the best way to go about adding item and guard functionalities to an auto battler? There is a lot that can be done with these two features, but the question is how to implement them without making the whole thing unwieldy?
Have a shield icon above or below a portrait that would toggle the actor between guarding or attacking? Do we let the player to pause the game by pressing esc and freely queueing item use as the next action? I'm looking forward to hearing ideas on how to handle these two.
thanks in advance.
I want my games to have a battle system resembling auto battlers that been popular in the last few years and are overall a lot of fun. (Afk Arena, Mythic Heroes etc etc)
So the current plan is to base it on the Time Progress (Wait) system,
1)when an actor's gauge is filled, instead of giving player the act menu, tell the actor to attack the first available target.
(Maybe create a note tag, that would let certain classes have different priority? Assassins and healers could use targeting the lowest health instead)
2) 3rd and 5th attacks an actor performs would instead of normal attack, auto cast a skill on first available target.
3) At the bottom of the screen player would have the actor portraits, which when some gauge is filled (maybe I can base this on TP that already exists), a skill would be queued to perform as the next action.
3a) Preferably, I'd like to give the player an ability to click on an enemy, and until another target is clicked, that one would be the target of all "active" skills.
(This is not the full combat system, just the things that I think I may need help with, no point asking about things I think I know how to do, until it turns out I was wrong ^^')
So the way I imagine doing this, is finding the script that handles the combat, locating the place where the act menu is opened and creating an if statement above it.
(This is not an actual attempt at code just me putting my thoughts on paper)
var actorSkillQueued = 0;
var baseAttackCount = 0;
if actorSkillQueued == 1
use x Skill.
else if
baseAttackCount >= 4
use y Skill
set baseAttackCount = 0
else if
baseAttackCount == 2
use z Skill
baseAttackCount++
else if
baseAttackCount >= 0
use Attack
else
Here would be the normal battle menu code as a fail safe so the game doesn't crash if anything goes wrong (hopefully)
I'd specifically like to instead of telling the game to perform an attack, to tell it to press the attack option, so that I can correctly set up the attacks in editor.
TL DR Questions would be :
Where do I find the battle code,
how do I tell the game to select a specific attack or skill instead of giving the player control,
What file do I have to work with to add button functionality to the player portraits in battle,
Creating note tags and implementing it into targeting priority?
Get what enemy was clicked?
(Again, I'm fine with just pointers or being linked to a tutorial that covers it, but any help will speed up the process considerably)
I guess I can also end it on a little design question too, because as much as I enjoy the auto battler style, I do think giving player a little more agency could go an extra mile for making the game more enjoyable...
What do you guys think would be the best way to go about adding item and guard functionalities to an auto battler? There is a lot that can be done with these two features, but the question is how to implement them without making the whole thing unwieldy?
Have a shield icon above or below a portrait that would toggle the actor between guarding or attacking? Do we let the player to pause the game by pressing esc and freely queueing item use as the next action? I'm looking forward to hearing ideas on how to handle these two.
thanks in advance.