Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Heretic86 on June 03, 2014, 07:09:28 pm

Title: Script in the works for XP: Disable Battle Menu Commands. Thoughts?
Post by: Heretic86 on June 03, 2014, 07:09:28 pm
Not posting the script itself yet, not quite finished, but mostly done.

I put together a script to Disable Battle Menu Commands, such as "Attack", "Skill" etc.  The script will be called like "disable_command(actor_id, "Attack")" for each actor.  For each disable, of course, there will also be an "enable" equivilant.  Changing "Attack" is also based on whatever label you use, so its compatible with other languages or menu commands that are new, and there is no limit on the number of menu items that can be disabled.

Its mostly intended for Tutorial Battles.

The result of using scripts like this would force players to only be able to choose one menu item, like "Attack" and nothing else.

What I have NOT done is the ability to enable or disable other menu items in other Scenes, like Battle Spells or specific Items in the Items window, etc.  For example, if you wanted to use this script to force a player to use a specific spell or item.  Just wondering if I should add in these abilities as well, or is this just fine only putting limits on "Attack", "Skill", "Defend", and "Item"?

Thoughts?
Title: Re: Script in the works for XP: Disable Battle Menu Commands. Thoughts?
Post by: KK20 on June 04, 2014, 01:48:30 am
Might as well go for it. I've never heard of such a script. I'm curious how the script will know what "Attack" is and disable the appropriate command. Unless this is only compatible with scripts that stay true to the default battle system (or you have some kind of configuration like case string; when "Attack" then return 0)
Title: Re: Script in the works for XP: Disable Battle Menu Commands. Thoughts?
Post by: Heretic86 on June 04, 2014, 03:31:56 am
That window is a Window_Command, which has a property called @commands, just an array for the text of each item displayed.  The script checks that window when visiblility is set to true for the text, and holds "disabled words" for each actor in its own array.

This is what I have so far:

Spoiler: ShowHide
*Redacted*

Script is posted.  Added some more comments to help fix any issues with it.


Just what else I should do to either make it more compatible, or, in general, better?

---

I just going to release this script as is.  If there are other ideas or requests, I'll look at adding to the script.