Battle Stacks v 1.0.0
RPG Maker MV Plugin
Sniperkaos
What does it do?
I wanted to make a boss that progressively gets stronger, to encourage players to use critical thinking and strategy to defeat a boss instead of cheesing it with infinite heal loops and the such. Instead of increasing ATK and MATK, I decided instead to create a "Stacking" feature.
How do I use it?
Getting Started:
- You will have to uncomment the "Game_S_Database" part of the file.
Using in battle:
- To add a stack to an enemy, you can use Post-Damage Eval from Yanfly Skill Core.
- Example:
<Post-Damage Eval>
$gameStackHandler.stack(a,1);
</Post-Damage Eval>
- Or, if you'd like to use a Script instead, you can use $gameTroop._enemies[index]. Either way will work.
- To get the stacks an enemy (or ally) has, use the $gameStackHandler.stackForBattler(Battler) function. You can use this in damaging skills, for example a single target skill, such as:
<Pre-Damage Eval>
value = (a.atk * 4 - b.def) * $gameStackHandler.stackForBattler(a)
</Pre-Damage Eval>
- When a battle is completed, if you are using an actor with the StackHandler, or an enemy you would like to reuse, call the $gameStackHandler.resetBattler(Battler) function, battler being the actor from $gameActors, or the enemy in $gameTroop.
Plugin in the attached files. I had a demo, but it's too large to upload.
Screenshot of it working:
Please give suggestions, I would love to hear feedback on what I could do more as I am not a very creative person.
本贴来自国际rpgmaker官方论坛作者:Sniperkaos处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/battle-stacks.153206/