PLUGINS: Character Creator EX CCEX Dynamic Actors Sprinte In Windows WAY_CustomOnEquipEval Hi, im having a problem on my equip menu. It works, but its not perfect, if you enter in Scene_Equip the Sv Sprite as the correct weapon and armor but if you change the equipment you have to exit and reenter to view the alteration. I think its Victor´s plugin that reloads the Sv Sprite, what i need is a way to force the reload when you change the equipment, "user.refresh()" is not working because all the armors have the your code and the Sv Sprite do not change. "ITS NOT EASY USING THE WORDS" lol so i made a video.
based in this "status.refresh" i fund this code Code: //----------------------------------------------------------------------------- // Sprite_DisplayCharacter //----------------------------------------------------------------------------- Sprite_DisplayCharacter.prototype = Object.create(Sprite_Base.prototype); Sprite_DisplayCharacter.prototype.constructor = Sprite_DisplayCharacter; Sprite_DisplayCharacter.prototype.initialize = function() { Sprite_Base.prototype.initialize.call(this); this._stepCounter = 1; this._stepDirection = 1; this._directionCounter = 0; this._directions = [0, 1, 3, 2]; this._specificCounter = 0; this.visible = false; this.refresh(); }; Sprite_DisplayCharacter.prototype.update = function() { Sprite_Base.prototype.update.call(this); this._specificCounter++; if(this._specificCounter % 10 === 0) { this._stepCounter += this._stepDirection; if(this._stepCounter === 2 || this._stepCounter === 0) this._stepDirection *= (-1); this.refresh(); } if(this._specificCounter % 120 === 0) { this._directionCounter++; if(this._directionCounter > 3) this._directionCounter = 0; this.refresh(); } }; Sprite_DisplayCharacter.prototype.refresh = function(reset) { if(reset) { this._stepCounter = 1; this._stepDirection = 1; this._directionCounter = 0; this._specificCounter = 0; } this.setFrame(_.width * this._stepCounter, _.height * this._directions[this._directionCounter], _.width, _.height); if(!this.visible) this.visible = true; }; now what do i test in the debug mode?
Code: SceneManager._scene._hud.children.forEach(function(baby) { if(baby.refresh) { baby.refresh(true); } }); from https://forums.rpgmakerweb.com/index.php?threads/faceset-changes-with-state.79819/#post-744203 this code is for HUD maker from SDR maybe this helps.
@Rhino and hi now believe that it can be done if we initialize only Window_SkillStatus, in YEP.10 – Equip Core. What i need now is a whay to test this in a eval code to insert on WAY_CustomOnEquipEval. Thanks
There's quite a number of plugins involved, so I've made a demo project to hopefully make it easier on anyone who'd like to test their code out! Everything you need to know should be in there, but feel free to ask us if you've got any questions. I'm fairly confident that refreshing window SkillStatus is the answer, if only we could write it out Thanks for looking!