MOG chrono engine knockback

Discussion in 'Javascript/Plugin Support' started by arashiya, Jul 9, 2019.

  1. arashiya

    arashiya Veteran Veteran

    Messages:
    48
    Likes Received:
    3
    First Language:
    english
    Primarily Uses:
    RMMV
    #1
  2. Restart

    Restart Veteran Veteran

    Messages:
    148
    Likes Received:
    97
    First Language:
    English
    Primarily Uses:
    RMMV
    this.touchDamage uses the default (slot 1) attack command. (by way of referencing user.battler().attackSkillId(); )
     
    #2
    arashiya likes this.
  3. arashiya

    arashiya Veteran Veteran

    Messages:
    48
    Likes Received:
    3
    First Language:
    english
    Primarily Uses:
    RMMV
    Got it thanks
    I make a new tool in tool map and link to the default attack skill
    And in the tool map I try to use tool_knockback_duration but it doesn’t work
    Any ideas?
     
    #3
  4. Restart

    Restart Veteran Veteran

    Messages:
    148
    Likes Received:
    97
    First Language:
    English
    Primarily Uses:
    RMMV
    On further inspection, it seems the damage goes off skill one, and the knockback is hardcoded here
    Code:
    
    //==============================
    // * execute Touch After Hit
    //==============================
    Game_Chrono.prototype.executeTouchTouchAfterHit = function(user,target,skillId) {
       if (target.canKnockback(target)) {
          target.clearActing();
          target.turnTowardCharacter(user);         
          target.jump(0,0)
          target.moveBackward();
             target.battler()._ras.knockback[1] = 55;
          target.battler()._ras.collisionD = 60;
       };
       var skill = $dataSkills[skillId];
       if (skill) {
           var aniID = $dataSkills[skillId].animationId;
           if (aniID) {
               target.requestAnimation(aniID)
           };
       };
    };
    so change the 55 accordingly
     
    #4
    arashiya likes this.
  5. arashiya

    arashiya Veteran Veteran

    Messages:
    48
    Likes Received:
    3
    First Language:
    english
    Primarily Uses:
    RMMV
    thanks so much!!
    you really save my day!!!!
     
    #5

Share This Page