Help Removing Attack Command

Discussion in 'Javascript/Plugin Support' started by Seacliff, Oct 24, 2015.

Thread Status:
Not open for further replies.
  1. Seacliff

    Seacliff RPG Maker Mastermind Veteran

    Messages:
    2,938
    Likes Received:
    1,050
    Location:
    RPG Maker Forums
    First Language:
    Yes
    Primarily Uses:
    RM2k
    Okay, this will probably get lost in the see of support questions, but It's worth a try.

    I'm looking through the .js files that are added in a games folder when a new game is created (not the pluggins). However, I'm new to Javascript and can't find the code where battle commands are handled. Does anyone know where I can find this, or to make things quicker, how to remove the attack command from battle?
     
    #1
  2. Silent Darkness

    Silent Darkness Robomage Veteran

    Messages:
    2,284
    Likes Received:
    321
    Location:
    Dark Realms
    First Language:
    English
    Why do you want to remove it?
     
    #2
  3. Zalerinian

    Zalerinian Jack of all Errors Veteran

    Messages:
    4,695
    Likes Received:
    923
    Location:
    The Internet.
    First Language:
    English
    Primarily Uses:
    N/A
    It's in Window_ActorCommand, Window_ActorCommand.prototype.addAttackCommand. To easily, and permanently remove it from the game entirely, add this as a new plugin:

    /*: * @plugindesc Removes the attack command from the battle system. * @author Zalerinian */Window_ActorCommand.prototype.addAttackCommand = function() {}and it should be gone entirely.
     
    #3
    CyndaBytes and Marillmau5 like this.
  4. Seacliff

    Seacliff RPG Maker Mastermind Veteran

    Messages:
    2,938
    Likes Received:
    1,050
    Location:
    RPG Maker Forums
    First Language:
    Yes
    Primarily Uses:
    RM2k
    It's just a gameplay element I want to play around with.

    Thanks Zal! Works perfectly.
     
    #4
  5. Andar

    Andar Veteran Veteran

    Messages:
    28,635
    Likes Received:
    6,576
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
     
    #5
  6. Shaz

    Shaz Veteran Veteran

    Messages:
    37,806
    Likes Received:
    11,511
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    I've moved this thread to JS Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
     
    #6
Thread Status:
Not open for further replies.

Share This Page