How to make a character not have the attack ability in RMXP

Discussion in 'RPG Maker XP' started by Triforce Mario, Sep 27, 2016.

  1. Triforce Mario

    Triforce Mario The King of Awkwardness Veteran

    Messages:
    39
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMVXA
    So, I want to make a character have all other abilitys/commands, except Attack.


    I'm using RPG Maker XP, so if you could help me find something I'm not noticing, that'd be great.
     
    #1
  2. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,652
    Likes Received:
    14,413
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    I've moved this thread to RPG Maker XP . Please be sure to post your threads in the correct forum next time. Thank you.
     
    #2
  3. Triforce Mario

    Triforce Mario The King of Awkwardness Veteran

    Messages:
    39
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMVXA
    Right, sorry.
     
    #3
  4. Wavelength

    Wavelength Pre-Merge Boot Moderator

    Messages:
    4,518
    Likes Received:
    3,771
    Location:
    Florida, USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    I can't start up my copy of RMXP due to some technical failure, but I do remember even when I had just started to learn Ruby, I was easily able to add and subtract commands from the Actor Command window in battle.  I would start with a search (Ctrl + Shift + F) for the word "Attack" (with quotes and the capital A - match case if possible), which is the string used to display the command.  You might be able to just remove (or comment out) that line, or you may need to note the method name being called in that line (perhaps something like show_attack_command), and do a search for that method name to find the line to comment out - but either way, I think it's just a matter of removing/commenting-out one or two lines and the Attack command is gone!
     
    #4
  5. Heretic86

    Heretic86 Veteran Veteran

    Messages:
    240
    Likes Received:
    163
    First Language:
    Engrish
    I wrote a script for XP a while back that allows you to Disable Commands such as "Attack", even if you spelled it differently for Non English releases.  You can also disable Spells and Items too if you so desire.


    Heretic's Disable Battle Commands


    http://forum.chaos-project.com/index.php/topic,14214.0.html


    Edit: NOTE - This will grey out the Command "Attack" (or other Menu Options) like the "Continue" option is disabled, but does not remove it from the list.


    .
     
    Last edited by a moderator: Sep 27, 2016
    #5
    Wavelength likes this.
  6. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,652
    Likes Received:
    14,413
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    That one is a better option, but if you are curious (I took forever to find for it. I can never get used to XP's scripts)


    On line 30 of Scene_Battle 1 there is this line of code:

    Code:
     @actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])

    All you have to do is change it to this

    Code:
     @actor_command_window = Window_Command.new(160, [s2, s3, s4])
     
    #6
    Wavelength likes this.
  7. Triforce Mario

    Triforce Mario The King of Awkwardness Veteran

    Messages:
    39
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMVXA
    Where this script is helpful, I gotta ask:


    Where do you put the disable command thing?


    This is what I have


    disable_command(actor_2, "Attack")


    So, where would I put this?
     
    #7
  8. Heretic86

    Heretic86 Veteran Veteran

    Messages:
    240
    Likes Received:
    163
    First Language:
    Engrish


    That would normally go on the Troops tab in the Database in Battle Event->Script:


    disable_command(1, "Attack")


    That would disable Aluxes "Attack" command, if Aluxes is the first character.


    It doesnt have to be run in Battle Event-> Script, it can be called from any Event from Script.  If the command is to be throughout the game, just make an Autorun Event that runs a Script call at the start of the game, or when that character joins your party.


    In my signature, there is a link to the "Collection", which is quite large, but there is a Demo of that script in action.


    http://forums.rpgmakerweb.com/index.php?/topic/67157-a-few-scripts-i-wrote-for-xp/
     
    #8

Share This Page