Thank you for the advice @Dopan ,
will try it, as I am trying to make the default battle attack is to input combo 😀
will try it, as I am trying to make the default battle attack is to input combo 😀
if you still have an old(tutorial) demo, then you know how to make a placeholder event(this event can be a bush if you like) that becomes an Unit later..
$gameMap.distance(x1, y1, x2, y2)
close but 1 little mistake:
1. yes but i dont know how, .. perhaps if you read the help stuff of DrQs Plugins that are related to "front/side/back"-stuff.. that could help to figure it out
var _SRPG_Game_BattlerBase_canUse = Game_BattlerBase.prototype.canUse;
Game_BattlerBase.prototype.canUse = function(item) {
if ($gameSystem.isSRPGMode() == true) {
if (!item) {
return false;
}
if ($gameSystem.isBattlePhase() === 'actor_phase' &&
$gameSystem.isSubBattlePhase() === 'normal') {
return false;
}
if (($gameSystem.isSubBattlePhase() === 'invoke_action' ||
$gameSystem.isSubBattlePhase() === 'auto_actor_action' ||
$gameSystem.isSubBattlePhase() === 'enemy_action' ||
$gameSystem.isSubBattlePhase() === 'battle_window') &&
(this.srpgSkillRange(item) < $gameTemp.SrpgDistance() ||
this.srpgSkillMinRange(item) > $gameTemp.SrpgDistance() ||
this.SrpgSpecialRange(item) == false ||
(this._srpgActionTiming == 1 && this.srpgWeaponCounter() == false) ||
(item.meta.notUseAfterMove && ($gameTemp.originalPos()[0] != $gameTemp.activeEvent().posX() ||
$gameTemp.originalPos()[1] != $gameTemp.activeEvent().posY()))
)) {
return false;
}
}
return _SRPG_Game_BattlerBase_canUse.call(this, item);
};
Window_SrpgStatus.prototype.drawContentsActor = function() {
var lineHeight = this.lineHeight();
if(_imgSrpgActorFace=='face'){
this.drawActorName(this._battler, 6, lineHeight * 0);
this.drawActorClass(this._battler, 6, lineHeight * 1);
//drawing the actor face
this.drawActorFace(this._battler, 200, lineHeight * 1);
this.drawBasicInfoActor(6, lineHeight * 2);
this.drawActorSrpgEqiup(this._battler, 6, lineHeight * 5);
this.drawParameters(6, lineHeight * 7);
//this.drawSrpgParameters(6, lineHeight * 12);
}else if(_imgSrpgActorFace=='pic'){
this.drawActorName(this._battler, 6, lineHeight * 0);
this.drawActorClass(this._battler, 6, lineHeight * 1);
//drawing the actor face
console.log("drawing actor");
console.log(this._battler);
console.log(this._battler.name());
$gameScreen.showPicture(11, "Char_"+this._battler.name()+"_Neutral", 0, 0, 0, 100, 100, 255, 0)
this.drawBasicInfoActor(6, lineHeight * 2);
this.drawActorSrpgEqiup(this._battler, 6, lineHeight * 5);
this.drawParameters(6, lineHeight * 7);
}
else if(_imgSrpgActorFace=='live2D'){
this.drawActorName(this._battler, 6, lineHeight * 0);
this.drawActorClass(this._battler, 6, lineHeight * 1);
//drawing the actor face
Game_Interpreter.prototype.pluginCommand.call(this, 'TalkLive2d', [this._battler._name,'show']);
this.drawBasicInfoActor(6, lineHeight * 2);
this.drawActorSrpgEqiup(this._battler, 6, lineHeight * 5);
this.drawParameters(6, lineHeight * 7);
}
};
why "+=" ??
$gameSystem.EventToUnit($gameVariables.value(39))[1].atk
$gameSystem.EventToUnit(12)[1].atk
when you are on battleMap, press F8 to open the console, insert your code, press enter and you will see if it returns the atk..
Original thread: https://forums.rpgmakerweb.com/threads/srpg-engine-mv-plugins-for-creating-tactical-battle-system.110366/