How can I disable the "guard pose" while using the guard command?

Discussion in 'Javascript/Plugin Support' started by Mparagames, Mar 6, 2019.

  1. Mparagames

    Mparagames Amateur developer trying to be awesome Member

    Messages:
    16
    Likes Received:
    4
    Location:
    Brazil
    First Language:
    Portuguese(BRA)
    Primarily Uses:
    RMMV
    Question is, I want the guard command to stay on my game; but I want for the character to stay in its regular
    animation while guarding insteadof doing the "guard pose". How can I do that?


    Sorry if I posted this in the wrong place.
     
    #1
  2. Poryg

    Poryg Dark Lord of the Castle of Javascreeps Veteran

    Messages:
    4,014
    Likes Received:
    10,159
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    The easiest way to do it would be to open the sv battler and overwriting a guard pose with a normal pose.
     
    #2
  3. Tiamat-86

    Tiamat-86 old jrpg gamer Veteran

    Messages:
    291
    Likes Received:
    118
    First Language:
    english
    Primarily Uses:
    RMMV
    in Guard State, remove special flag guard and add sp-parameter p.dmg 50% n m.dmg 50%
     
    #3
  4. Mparagames

    Mparagames Amateur developer trying to be awesome Member

    Messages:
    16
    Likes Received:
    4
    Location:
    Brazil
    First Language:
    Portuguese(BRA)
    Primarily Uses:
    RMMV
    It doesn't work, since the pose is activated even if I remove the "add state Guard" effect from the Guard command.

    I know this is a possiblity, but I still want to use that Guard pose for other means. Is there away to disable the gurd pose for the guard command without needing to change graphics then?
     
    #4
  5. Poryg

    Poryg Dark Lord of the Castle of Javascreeps Veteran

    Messages:
    4,014
    Likes Received:
    10,159
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    Code:
    Game_Actor.prototype.performAction = function(action) {
        Game_Battler.prototype.performAction.call(this, action);
        if (action.isAttack()) {
            this.performAttack();
        } else if (action.isGuard()) {
            this.requestMotion('guard');
        } else if (action.isMagicSkill()) {
            this.requestMotion('spell');
        } else if (action.isSkill()) {
            this.requestMotion('skill');
        } else if (action.isItem()) {
            this.requestMotion('item');
        }
    };
    Inside rpg_objects.js there is this code. Deleting a certain else if case could help.
     
    #5
    Mparagames likes this.
  6. Mparagames

    Mparagames Amateur developer trying to be awesome Member

    Messages:
    16
    Likes Received:
    4
    Location:
    Brazil
    First Language:
    Portuguese(BRA)
    Primarily Uses:
    RMMV
    Great, now the characters do not show the guarding pose while using the guarding command. However, the
    pose still ramains at the the skill selection screen, where the character poses right after choosing "guard", while
    I'm still selecting the actions of other actors. The pose goes off as soon as the posing actor starts to actually guard.

    How can I fix that? I want no guard pose at all when choosing "guard", not even at the skill selection screen.
     
    Last edited: Mar 6, 2019
    #6

Share This Page