Scripting New Commands for Battle Menus [VX ACE] (SOLVED)

Hello! Me again!

--------------------------------------------------------------------------
Final Edit (solved)

Got it working... kind of.
I didn't manage to assign the command the value of a specific $data_skills, but I DID manage to make it do the method next_command which is basically what I was trying to get it to do by assigning it a skill in the first place.

Thanks to Modulusia for then also answering my question of "how to write a method so a method is equal to a $data_skills id (and then attach that to an Actor Command similar to how Attack and Guard work by default)".

Here is how I made my No Action command do the next_command method in my script:

I did my fix like so (this in my edited Scene Battle class):
Sub Menu No Follow Up Solved 001.png


And this (in my edited sub command window class thingy):

Sub Menu No Follow Up Solved 002.png


-------------------------------------------------------------------------------


ORIGINAL POST:


This time around I've made some decent progress and am currently puzzled on how to get a New Command (that I've added to an edited version of the Window_ActorCommand class) to do, well, ANYTHING!

So far I've boiled my script down to just this addition (again, this is in a duplicated custom Window_ActorCommand class):
Sub Menu No Follow Up.png


This (and some other editing) results in my custom Actor Command Window looking like this:
Sub Menu No Follow Up 002.png


Which is perfect (for now)!

BUT!

When I then try to use No Action (by pressing A, or spacebar, or enter, or whatever on it)... basically nothing happens.

It makes a little chime to say it recognises that I pressed "A", but it doesn't do $data_skills[200] like I want it to and it doesn't do anything else either! 😮


I've found tutorials on making custom Menu commands for the Main Menu, but none on Battle Menus... so I'm flailing about in the dark a tid bit with this one.

Anyone know how to tie custom Actions to custom Commands?

Or can anyone point me in the direction of a tutorial/set of tutorials on the subject?


Any help would be appreciated.
Thanks for y'alls' time.
- The Sarah

----------------------------
(Edit - That attempt at defining the symbol as a method in the first picture is my latest attempt at resolving this, I've tried quite a few different versions of this but have yet to find success)
----------------------------
Hi! So... do you want your actor to perform skill #200 when you select No Action? If no, please ignore this entire post. If yes, then here we go.

In Game_Action, you add this:
Code:
def set_no_action
  set_skill(subject.no_action_skill_id)
  self
end


And in Game_BattlerBase, you add this:
Code:
def no_action_skill_id
  return 200
end


Then you need to add this line to your no_follow_up method in Scene_Battle before the next_command call:
Code:
BattleManager.actor.input.set_no_action


With this I literally only took what the default system does when you choose the guard command and changed names around, and it worked when I tested it. Though I'm not entirely sure what's going on as I haven't studied anything about the battle system myself ^^;
Hi! So... do you want your actor to perform skill #200 when you select No Action? If no, please ignore this entire post. If yes, then here we go.

In Game_Action, you add this:
Code:
def set_no_action
  set_skill(subject.no_action_skill_id)
  self
end


And in Game_BattlerBase, you add this:
Code:
def no_action_skill_id
  return 200
end


Then you need to add this line to your no_follow_up method in Scene_Battle before the next_command call:
Code:
BattleManager.actor.input.set_no_action


With this I literally only took what the default system does when you choose the guard command and changed names around, and it worked when I tested it. Though I'm not entirely sure what's going on as I haven't studied anything about the battle system myself ^^;


Yup! That's pretty perfect!

Thanks!

I'm fine with No Action being just next_command, but I'd like to make other skill commands in the future that activate immediately when pressed from the main Actor Command Window, but wasn't sure how to tie an Actor Command to an immediate skill activation (like Guard or Attack do by default for example).

So you've answered that nicely.

Thanks so much! 🙂


This thread can now be closed for definite.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/scripting-new-commands-for-battle-menus-vx-ace-solved.124599/