Ramiro + RMVXA = ♥

Ramiro's script collection for ACE!

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:

DOWNLOAD TEMPLATE

 

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, params)

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:

Properties:

original_user

This is the original user of the action, it is stored here.

original_target

This is the same for the targets in an array.

user

This has the current user of the action.

targets

These are the current targets of the action.

item

This is the item used with the action, many times is a RPG::UsableItem (SKill or Item)

loop_depth

This is the current loop depth, used for internal control ONLY.

 

linked_actions

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.

2 Comments

  1. stesc

    Well, i was able to create a shield command using the actors shield icon just by a few edits, but was unable to put it into the right form for ur addon template.

    Here is what i got:

    shield: target, x_corr, y_corr, start_angle, end_angle, time, over

    Classes:

    http://pastebin.com/LherAyWS

    Actions:

    http://pastebin.com/4fDbN5AJ

    Greetings

Wanna leave a comment?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: