Creating yor own commands
For people who wants to create new comands I give here a template for creating them easily. and a small explanation:
I will explain a bit about commands in RBS.
When you call a method executed by an action, you will get the following parameters:
Action is the action that called the Method, params are the parameters in an array that were called with the method.
If an action is a block, the LAST paramter will be the comand array.
Here are the action’s properties and methods:
This is the original user of the action, it is stored here.
This is the same for the targets in an array.
This has the current user of the action.
These are the current targets of the action.
This is the item used with the action, many times is a RPG::UsableItem (SKill or Item)
This is the current loop depth, used for internal control ONLY.
This are the linked actions with this actioin, linked actions are escencially, action that shares the same targets.
You can have multiple actions running at the same time.
If you want to know about all the options and how the class is built, please, chech the class BattleInterpreter::Action on the script.