Changing combat target indicator?

Discussion in 'JS Plugin Requests' started by Murg1, Jul 30, 2019.

  1. Murg1

    Murg1 Villager Member

    Messages:
    20
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMMV
    Does anyone know how to change the way the target indicator works in sideview battle?

    Currently when I target an enemy, it just flashes a subtle white. I would like to change it to make it more obvious.

    If you don't know how to do it exactly, does anyone know where in the JS files the target indicator is set? I can try fiddling around from there.
     
    #1
  2. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,969
    Likes Received:
    10,660
    First Language:
    English
    Primarily Uses:
    RMVXA
    I'll move this initially to JS Plugin Requests to see if anyone can just tell you what to do. If later on you decide that you to fiddle around with it yourself, it will have to go to Javascript/Plugin Support.

    Moving this.

     
    #2
  3. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,276
    Likes Received:
    796
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    The white flash is handled via Sprite_Battler's updateSelectionEffect method (rpg_sprites.js):
    Code:
    Sprite_Battler.prototype.updateSelectionEffect = function() {
        var target = this._effectTarget;
        if (this._battler.isSelected()) {
            this._selectionEffectCount++;
            if (this._selectionEffectCount % 30 < 15) {
                target.setBlendColor([255, 255, 255, 64]);
            } else {
                target.setBlendColor([0, 0, 0, 0]);
            }
        } else if (this._selectionEffectCount > 0) {
            this._selectionEffectCount = 0;
            target.setBlendColor([0, 0, 0, 0]);
        }
    };

    There are plugins available that grant battle cursor options, e.g.
     
    #3
  4. tale

    tale Volunteer Veteran

    Messages:
    454
    Likes Received:
    735
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    #4
    caethyril likes this.
  5. Murg1

    Murg1 Villager Member

    Messages:
    20
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMMV
    Awesome. Thanks guys/gals.
     
    #5

Share This Page