Advanced "Defend" script.

So, in a nutshell, I want to make different "Defend" skills for different types of equipment, and have them take the place for the defend slot.

So, for example.

If Character A has a shield, they would have access to "Guard"

Character B uses a sword or melee weapon, they would have use of "Counter Attack"

last, is they have a ranged weapon, the selection would be "Aim"

Each of these would do different things of course.

Anyone have any input on this?
So, basically...


is shield has a higher priority than weapon?


For example, your character has equips a sword and a shield.


Then the defend command would be "defend".


And if you remove the shield, the defend command would be "counter attack"


isn't it?
The following script replaces the default attack based on the weapon equipped.

http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/weapon-attack-replace/

You would need a similiar script that replaces the default guard skill.

I don't know of such a script, but it would be very similiar to yanfly's weapon replace, only it would affect the guard-skill-function instead of the attack-skill-function.

Those are similiar, so any scripter should be able to modify Yanfly's script to affect the guard skill

(unfortunately I don't have enough free time to try it myself)
THIS script allows only weapons but it allows for both guard and attack skills to be changed.
Here's my implementation of the guard command.


http://forums.rpgmakerweb.com/index.php?/topic/20132-guard-skill-command/


The guard command's skill is based on actors, classes, equips, and states.


The guard command is determined by checking whether any equips or states have a guard skill. It then checks whether your actor has a guard skill, whether your actor's class has a guard skill, and then defaults to skill 2.


This means that your guard skill can change during battle right in front of you if a state is added and then removed.


An analogous script could be written for the attack command (or ANY actor commands for that matter), but this one is just focused on the guard command.


It requires my Command Manager.

Original thread: https://forums.rpgmakerweb.com/threads/advanced-defend-script.20116/