Save-Point
Individual Battle Commands - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Individual Battle Commands (/thread-2743.html)



Individual Battle Commands - RPG Advocate - 03-03-2008

Individual Battle Commands
by RPG Advocate
saved from Phylomortis.Com


Introduction
This script changes the battle engine so that each character has individual battle commands, rather than be restricted to the four defined in the database. It also changes the engine so that battle commands are recognized by name rather than by position within the battle command menu. With the code provided here, each actor's default battle commands are still "Attack", "Skill", "Defend", and "Item". The code provided here is only a framework that makes it easy to add new commands, and still only supports the four basic commands. To add support for new commands, you will need to make the engine recognize them by adding to the case statement starting around line 380 in the script, and then adding the code to process the new command.

To change an actor's command through a script call, merely use:
$game_actors[n].battle_commands = ["Attack", "Skill", "Defend", "Item"]
where 'n' indicates the actor in your database... substituting the names of the commands in the array with your own.

Again... the engine recognizes the names of the battle commands rather than index positions. So if you do not add the new command(s) (by its name) to the engine, any added command(s) won't be recognized.


Script
"script"



RE: Individual Battle Commands - KasperKalamity - 10-08-2011

can't you already edit this by class somewhere? i remember doing it once a long time ago without any extra scripts


RE: Individual Battle Commands - DerVVulfman - 10-09-2011

You can change the basic names of your Attack, Skill, Item, and like items in the SYSTEM database, but they are used globally throughout the game for all the actors. And I heard that RM2K3 allowed slight customization of names per actor, but it was a little limited. But this allows you to customize the individual names of every command for each actor.


RE: Individual Battle Commands - Taylor - 10-09-2011

RM2k3 allowed you to have varied number of commands of several types for each character or class.

I'm looking at this script and it seems not only poorly applied, but more limited than the RM2k3 version. Granted everything seems clunky to me when I see large swabs of default code pasted in.


RE: Individual Battle Commands - DerVVulfman - 10-09-2011

True. On the other hand, it was the first known version of the system. Advances have been made since then. This is good as a learning tool.