I just downloaded it and it works like a dream! so we use your script call in place of the one in the demo to check if number of actors is zero to lead to a game over?
Also do the summons die when their summoner dies?
I haven't actually used Shoukang's script yet but looking at the code, summoned units only die when an actor summoner dies:
Game_System.prototype.refreshSrpgAllActors = function() {
for (i = this._srpgAllActors.length-1; i >= 0; i--){
var actor = $gameSystem.EventToUnit(this._srpgAllActors[i])[1];
if (actor.isDead() && actor.isSummonedBattler()){
this._srpgAllActors.splice(i, 1);
}
}
};
Yes. You can also use the old way if you count summoned actors as party member.
So... it was just 1 line. Just change that 0 to an actual number of ticks (I like 120 or 180).
var weapon = $dataWeapons[Number(this.enemy().meta.srpgWeapon)];this.equips()[slot_id], I'd repeat a lot of code, making a plugin that's to be placed directly below the core, while also breaking other addon plugins' weapon effects.setting a poison state should be no problem at all, i am bit confused..
SceneManager.catchException = function(e) {
if (e instanceof Error) {
Graphics.printError(e.name, e.message);
console.error(e.stack);
} else {
Graphics.printError('UnknownError', e);
}
AudioManager.stopAll();
this.stop();
};
pls try this version if you can (1.31)
for (var i = 1; i <= $gameMap.events().length; i++) {
var battleunit = $gameSystem.EventToUnit([i]);
var eventunit = $gameMap.event([i]);
if (battleunit && eventunit && (battleunit[0] === 'actor' || battleunit[0] === 'enemy') && (!battleunit[1].isDead())) {
if (battleunit[1].isStateAffected(checkId)) {
battleunit[1].gainHp(addId);battleunit[1].startDamagePopup();
}
}
};
// this will check all units for a state and add hp gain to them if affetected
// you must insert the STATE ID to "(checkID)" and the gain HP number to "(addID)"
// gain hp number can be - value aswell
//example :state 4 , -20 hp gain
for (var i = 1; i <= $gameMap.events().length; i++) {
var battleunit = $gameSystem.EventToUnit([i]);
var eventunit = $gameMap.event([i]);
if (battleunit && eventunit && (battleunit[0] === 'actor' || battleunit[0] === 'enemy') && (!battleunit[1].isDead())) {
if (battleunit[1].isStateAffected(4)) {
battleunit[1].gainHp(-20);battleunit[1].startDamagePopup();
}
}
};
The "vanishing enemies and actors" issue seems to be exclusive to the 1.32 version as when I tested it in 1.34 it is not a problem.
Try <Custom SRPG Phase End> tag and tell me if that does anything, if not I probably missed something
well that means that i might have a small mistake in the edited1.32 version on my github, but i had no error at all.. so i am not sure on that..
Original thread: https://forums.rpgmakerweb.com/threads/srpg-engine-mv-plugins-for-creating-tactical-battle-system.110366/