Command: Change Equip

This script allows you to add a “change equip” command using the Command Manager for your actors in battle. This allows you to change equips during battle.

You can specify a cooldown in between equip changing, as well as specify states that will disable equip changing.

command_changeEquip

Download

Script: download here
Required: Command Manager

Installation

Place this script below Command Manager and above main.

Usage

Tag actors with the following note-tag to give them the change equip command:

<cmd: change_equip cooldown>

Where the cooldown is an integer that indicates how many turns you must
wait before you can change equips again in battle. If it is not specified,
then it is 0.

There are several configuration options. You can set the text to display for this command.

You can specify that an actor will pass the current turn if the actor decides to change equips.

You can specify states that will disable equip changing while the state is applied.

You may also like...

27 Responses

  1. Ray009 says:

    I’m having a problem when I want to change equipment, it gives me an error with:
    Script “Window_EquipItem’ line 73: TypeError occured.
    no marshal_dump is defined for class SpriteHUD_Main

    It did the same with yanflys battle equipment script so I’m guessing it’s a compatibility issue (with maybe luna engine…?)
    Is there any way it can be fixed or is there something I can do ?

    • Hime says:

      Do you have the same problem when you go to the equip screen outside of battle? It may be a different script that’s causing issues since all this script does is call the equip scene.

      • Ray009 says:

        No, only when I try it in battle :c

        • Hime says:

          It probably is a compatibility issue with luna engine then. I don’t know what it could be though.

          • Ray009 says:

            The sad thing is that all scripts that allow for battle equip change give me the same error, the one i copied.

          • Hime says:

            Does it occur without the luna engine?

          • Ray009 says:

            No, I deleted luna engine to try it out and it works completely fine
            without it.

          • Hime says:

            Then it is a compatibility issue with luna engine. You can either upload a new project with just luna engine and the command scripts, or request someone that is familiar with luna engine to write a patch in case you are not allowed to share projects with the engine freely.

          • Ray009 says:

            Alright, I’ll do that, thanks for your help though and thanks for bearing with me 😀

  2. xallever says:

    Is it possible to add the tag on a class rather than on an actor?

  3. soapSalesman says:

    I'm having a problem. If the last character in the group uses the equip command while in battle, the info viewport only moves back into place a fraction of the way (then the battle turn is processed), leaving the "Fight" and "Escape" command window in the bottom left to be nearly completely off-screen. Is there a way to fix this or have I done something wrong?

  4. Gems says:

    I was wondering.
    Is there a way to make it so you can only equip a certain item in battle?
    In my game, the main character can equip Cards that hav different effects on him.
    Later on he can switch them in battle.
    How do I make to where its just the cards that can be reequipped?

  5. Kazuki says:

    This is Kazuki Takamura, this script does useful. However I am curious is there a way to use a script call to enable the equip command in battle? One more question, is there any scripts compatible with this script that allows equipping a certain weapon change a character’s class?

    • Tsukihime says:

      To add conditions to your commands, you would need to modify the script. If you look in the script you will find a class called Command_ChangeEquip, which defines a usable? method. You can change this condition to anything you want, such as checking for a switch or a variable in addition to the default conditions. You can then use script calls to operate on the condition as required. Don’t know about your second question.

Leave a Reply

Your email address will not be published. Required fields are marked *