Advanced Individual Battle Commands V4.2

Advanced Individual Battle Commands
Version: 4.2


Introduction

this script allows you greater control over the commands that show up in battle. It also allows you to define the names of the Attack, Skill, Item, and Defend and allows you to create new commands. This script also works with my Bag of Battle Commands allowing you to create more diverse commands. This script also has the functionality of commands being learned at a certain level (class or actor), or learning a command when a certain item is equipped, or by a condition in battle.

Demo

Advanced Battle Commands V4.2 Text Version (The version you want)
Advanced Battle Commands V4.2

Instructions

Copy the scripts form the demo to your project. Also Copy the file BattleCommands.rxdata from the data folder of the demo to the data folder of your project. You can edit the Command Properties by opening the file in Notepad. Instructions are also given in the file

In the script Setup you can define the Actor's starting commands. Again Instructions are given

FAQ

Awaiting Question...


Compatibility

SDK Compliant
Requires MACL V1.2 or later
Okay Topic Unlocked Again Since I loaded the newest version. Enjoy.
Say where is the tutorial for how to make new commands?

As if i remember there was a tutorial here.
[QUOTE=XP Learner;112032]Say where is the tutorial for how to make new commands?

As if i remember there was a tutorial here.[/QUOTE]

Yeah It was pretty much outdated since some things changed in this version. But I did rewrite the comments in the file BattleCommadns.rxdata

But I will rewrite and repost the tutorial whenever I get the chance. in the mean time if you have any questions ask them here and I will answer them ;)
Sounds like necropost, but I wonder if it's possible with this: for example, a warrior is here. Basically he/she doesn't have 'Magic' command, but once he/she learned any magic(by event, 'magic book' item, skill shop, whatever..), 'Magic' added to his/her battle command. I examined BattleCommands.rxdata, but I don't think it can be done......
Yes It can

Quote:
# 18) Special Learn
# The special condition must be a boolean expression
# for example if you want the Arshes to learn this in battle while he has less than 100 hp
# then the condition will be (actor.id == 1 and actor.hp <= 100)


the command would be

special_learn        actor.skills.size > 0
Expand to see the code.


and just don't add the command to the starting list, if you want to give this command to more than one actor and the second always has the skill command then the condition should be this instead

special_learn        (actor.skills.size > 0 && actor.id == ID) || actor.id != ID
Expand to see the code.


where ID is the id of the actor to not know the skill command until he has a skill

Come on ask questions I know everything that is possible with this script since I am the creator of it

And no the only necroposts of this forum would be if (The Original Poster/Author) is inactive and it has been months since the last post.

Hey I'm still here aren't I, so That isn't a necropost
But if your PC already has skills other than magic? For example, I gave Aluxes and Basil their own skill commands(like SwordSkill and LanceSkill), and I want to give 'Magic' command once they learn any magic.
Hmm a that is a bit tougher but no problem

add this method in Game_Actor

class Game_Actor
  def magic
    skills = self.skills.dup
    skills.delete_if {|skill_id| $data_skills.element_set.includes_any?(1,2,3,4)}
    return skills
  end
end
Expand to see the code.


That method uses .includes_any? I method I created and it is included in the Method and Class Library now instead of (1,2,3,4) as the parameters for that method change tose to the element ids that aren't magic. If you want to delete by skill id then here is the line to use

skills.delete_if {|skill_id|  [ skill_ids ].include?(skill_id)
Expand to see the code.


where skill_ids are the skill ids that aren't magic

now use this line for the special learn parameter

special_learn        actor.magic.size > 0
Expand to see the code.
can this be used in combination with the overdrive/limit break script so that when the limit break bar is full it changes the attack command to limit break and calls/shows the limit break skill to use?
Depends on the Limit Break Script that is if they work together list the script
(and do note that I have my own Limit-Break Type Script -- Advanced IP Skills)

but you can do this with the special_learn parameter
It works. Thank you.
i got a questions for you if you dont mind :)

first question:

i want my character to learn new command while in battle if he has poison, or Blind or *insert condition name* (instead of Attack it has that new command in it) and when condition wore off that new command will go away automaticly and Attack command will go back

second question:
how do i make the skills for certain command like for example "FreeStyle". FreeStyle's skills can not be learned by levels like normaly, instead FreeStyle's skills can only be learned stats. For example requirements for 'Dash Attack' is Agility 50 or more, when i have Agility 50 i will automaticly learn it

Third question:
I when my character learns skills like "Left kick", "Right Kick", "Heel Drop" and "High Jump Kick". In battle "Left Kick" skill only appears, and only way to get "Right Kick" appear (wich my character have already learned) i need to use Left Kick first, and etc. After the High Jump Kick the thing resets and it goes back to "Left Kick"
[QUOTE=pmhoa;132735]i got a questions for you if you dont mind :)

first question:

i want my character to learn new command while in battle if he has poison, or Blind or *insert condition name* (instead of Attack it has that new command in it) and when condition wore off that new command will go away automaticly and Attack command will go back
[/QUOTE]

If you want this for all actors
in the Attack command parameter special_learn use this as the value
actor.states.empty?
and in the command you want to learn use this as the value
actor.states.size > 1

If you want this for one actor only
in the Attack command parameter special_learn use this as the value
actor.states.empty? && actor.id == ID || actor.id != ID
and in the command you want to learn use this as the value
actor.states.size > 1 && actor.id == ID || actor.id != ID

replace ID with the id from the database (w/o leading zeroes)

Quote:
second question:
how do i make the skills for certain command like for example "FreeStyle". FreeStyle's skills can not be learned by levels like normaly, instead FreeStyle's skills can only be learned stats. For example requirements for 'Dash Attack' is Agility 50 or more, when i have Agility 50 i will automaticly learn it


So this is a command that contains skills, but the skills are learned by a condition, this can be handled by the skills parameter. You will have to setup for the value a hash with the keys being the skills id and the value being a string which is the condition to be evaluated so...

{skill_id => 'actor.agi >= 50'}

only replace skill_id with the skill's id you may change the 50 if you wish that this the minimum agility required


Quote:
Third question:
I when my character learns skills like "Left kick", "Right Kick", "Heel Drop" and "High Jump Kick". In battle "Left Kick" skill only appears, and only way to get "Right Kick" appear (wich my character have already learned) i need to use Left Kick first, and etc. After the High Jump Kick the thing resets and it goes back to "Left Kick"


care to explain this further I don't understand what you are trying to do

Thanks you for your questions :D
wow thanks alot!!!! you dont have to help me with the third one anymore because i removed that system from my rpg, but thanks alot seriously!
Ok heres a tough one for you I was screwing around with the Data Comand file and remembered how the "Paralyse" option in battle just cast the mass paralyse right away instead of going into the menu. Now I need to do something like that where when I click on the comand lets say "Random spell", that a random spell depending on the battle back will be cast . Can I do that in the file or would I also need a combo or events with this too?
ah sorry to bother you again but how do i make a custom Item command that item effects are 2x than normal
[QUOTE=Ultimoore;133062]Ok heres a tough one for you I was screwing around with the Data Comand file and remembered how the "Paralyse" option in battle just cast the mass paralyse right away instead of going into the menu. Now I need to do something like that where when I click on the comand lets say "Random spell", that a random spell depending on the battle back will be cast . Can I do that in the file or would I also need a combo or events with this too?[/QUOTE]

This can be done using the script command

All on one line script
actor.current_action.skill_id = {battle_back => skill_id}[$game_temp.battleback_name]; actor.current_action.special = true
Expand to see the code.


Or all this in a new script above main
class Scene_Battle
  BATTLE_BACK_SKILLS = {battle_back => skill_id}
end
Expand to see the code.


script condition
actor.current_action.skill_id = BATTLE_BACK_SKILLS[$game_temp.battleback_name]; actor.current_action.special = true
Expand to see the code.


Either way you choose you will need this as well

class Game_BattleAction
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :special  #current battle command
  #--------------------------------------------------------------------------
  # * Clears an action
  #--------------------------------------------------------------------------
  alias trick_special_cmd_clear clear
  def clear
    @special = false
    trick_special_cmd_clear
  end
end

class Game_Actor
#--------------------------------------------------------------------------
  # * Skill Can Use?
  #--------------------------------------------------------------------------
  alias cmd_skill_can_use? skill_can_use?
  def skill_can_use?(skill_id)
    # Return super if special flag set
    return super if self.current_action.special
    # The Usual
    return cmd_skill_can_use?(skill_id)
  end
end
Expand to see the code.


Untested but it should work let me know if you have any trouble

[QUOTE=pmhoa;133072]ah sorry to bother you again but how do i make a custom Item command that item effects are 2x than normal[/QUOTE]

You can't get that effect with this script as of now, wait for my rewritten version of my Bag of Battle Commands for this effect
okey, im looking forward to it :D thanks alot!
Well, i have a question:

i need to make a command, for a class, the command is the following:

When you use the command on the chosen enemy, it captures it and makes an item, wich it can be used in batle, and some items in map, but only for a class. imnot sure if the condition for the classes is class_id or class_ids. can you help me?
i forgot, how to make this command to dont work with bosses?

also, i have another, if u have time, hep me in this too:

The command is named Slay, for two classes, does this: a monster, which isnt a boss, kill it in a hit with a chance of 68%

oh, i also forgot this one:

A command which deals a 200% damage to demons and undead monsters, 150% to ghosts, normal dmg to any type except demon, undead, ghost, and angel, -100% dmg to angels (restores the damage dealt)
[QUOTE=Kazil;134296]Well, i have a question:

i need to make a command, for a class, the command is the following:

When you use the command on the chosen enemy, it captures it and makes an item, wich it can be used in batle, and some items in map, but only for a class. imnot sure if the condition for the classes is class_id or class_ids. can you help me?
i forgot, how to make this command to dont work with bosses?

also, i have another, if u have time, hep me in this too:

The command is named Slay, for two classes, does this: a monster, which isnt a boss, kill it in a hit with a chance of 68%

oh, i also forgot this one:

A command which deals a 200% damage to demons and undead monsters, 150% to ghosts, normal dmg to any type except demon, undead, ghost, and angel, -100% dmg to angels (restores the damage dealt)[/QUOTE]

All of these can be done with skills linked to commands just set up the skill adn use the skill_id parameter

1) Can be done, I believe I have this effect in my Bag of Skill Effects refer to that, if its not there then request the skill effect to be made either in my topic (Bag of Skill Effects) or the Script Request Forum

2) Skill with Accuracy 68 and gives a state that causes death on Bosses set the efficiency to F (0% chance) or a Skill with Accuracy 100% and Modify the State Rates using my Elemental and State Rates Script

3) Again a Skill that has an element that is setup like hat just on demons and undead the effiecieny should be A (200%) on ghosts B (150%) on angels F (-100%) and for the rest leave them at C (Normal Damage)

But if you want a command that has skills and has this effect then you will also have to wait for my Bag of Battle Commands
i have done the first and third skils, but doing the second one is annoying
thanks anyways.
Script Updated to Version 3.5

Changes
==========
1) The Ammo Features have returned (see text file for setup)
2) Code Cleaned up a bit
3) Fixed some mistakes in the text file information, and added some things
How do i make it that a command is only available when a certain armour or weapon is equiped?
and just what do you mean by available?
Like it doesn't show up unless you have the armour or the weapon equiped.
Quote:
# 10) Weapon Ids
# Weapon Ids that this command is tagged to must be an array
# Syntax: Array of Weapon ids
#
# 11) Armor Ids
# The armor ids same as weapon ids
# Syntax: Array of Armor ids


Use those parameters, if you need any help ask
i tried doing that before i asked. The command just showed even when i didn't have the weapon equiped.
Ahh, so now we get into the heart of your trouble (you should have stated that in the start)

But I'll have a look at it
Hehehe sorry i just didn't think lol
[resolved]
Sorry to double post but it's working with the 1 weapon but i don't know how to make it an array of weapons. Do i go [2 =>3]or [2,3]?
[resolved]

Ok now is it possible to make a command unavailable unless a skill is learned?

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=4462