This is my
AP Combat Mechanic, a plugin for Yanlfy's Battle Engine.
(This script is no longer being developed... The version here is the final version)
This script is no longer supported in any meaningful way, besides maintaining links. I hope you understand, that after several years of not even looking at Ruby code, it would require an unusual amount of time to re-acquaint myself with my own work, long enough to try and even identify fixes/improvements. Thus, I simply won't.
The Core:
At its core, this script is nothing more than a system built on-top of Yanfly's Battle Engine, that's replacing its default order of action, with
Initiative Order (instant resolution) and
Action Point costs for each action. It displays the battlers remaining AP (action points) at the top of the screen, in the exact same place that Yanfly's FTB Plugin does. This script also adds TWO new battle commands to every actor, which allow them to
Delay their turn, or
Pass their turn.
Every significant detail is listed verbatim in the spoilered section at the bottom of this post.
Example Video:
For those that wish to see it in action before attempting to use it. (I apologize for the quality... I am not a professional.

)
(
You will see my armor mechanic at work here as well as some additional battle commands for custom item windows. Pleas ignore them for now.)
Note: If you'll notice in the YouTube video, I am using TheoAllen's SBS v1.4 so you can be sure it works with that.
Credits:
- Yanfly
- Hime (of Hime Works, aka: Tsukihime)
- The RM community at large.
Terms of Use:
- New: I would appreciate it if you posted here letting me know you are using the script! It helps keep me motivated.
-
Go crazy! Do what you wish with it. Please, make sure to credit me with a link to my blog and
consider (not required) giving me a free copy of whatever made with it. I know the lions share of the work, is simply getting your game done. And for that, YOU should be thanked. I'm just glad I could give back the way I've been given. This is a great community! Lets all try to keep it great.
With Love and Cooperation!
Note: Please visit Yanfly's blog and double check its TOU to make sure nothings changed.
Requires:
-
Yanfly's Battle Engine! (and to be safe,
his Core as well)
Supports:
-
Hime's - Command Manager. (For ease of organizing the two new actor battle commands)
Compatibility:
I do not expect this script to work along side any other script, other than Yanfly's Battle Engine, that touches the
BattleManager or
Scene_Battle classes. So good luck trying.
Known Issues:
- Applying AP Adjustments to non-permanent states (that can be added or removed in battle), is buggy and can break your battlers AP! Unfortunately, fixing this will touch a lot of disparate parts of the code and may introduce even more issues that I do not have time to handle.
You can download(v1.04) it at my blog.
(Last Updated: 15_0827)
Here is a quick look at the details of its use.
SpoilerSpoiler
CHANGE LOG:
v1.00 - Initial Release
v1.01 -----------------------------------------
- Ensured surprise & preempt messages display when true.
- Removed dependency on Hime's Command Manager. (Now Optional)
- Misc housekeeping.
v1.02 -----------------------------------------
- Fixed a 'Pass Turn' Bug, caused by inadequate action clearing.
- Fixed visible glitch when enemies acted first on first turn.
- Fixed hitching in 'left' access to party command menu.
- Actors now lose Initiative on Delay. Unless disabled. (See: details)
(Implementation still getting tweaked.)
- Added 'Pass' & 'Delay' popups.
v1.03 -----------------------------------------
- Added 'AP Schedules' for Enemies.
- Added MAX_AP_MULTI for customizing default MAX AP.
- Added NEW TURN popup.
- Added SURPRSIE TURN popup.
- Fixed 'on_turn_end' issue with 'Pass Turn'
- Added 'BattleManager.surprise?' event script call.
- Added Support for Yanfly - Combat Log script.
- Added 'Delay' and 'Pass Turn' reporting to battle log.
- Fixed 'next_command' bug regarding 'actor.movable?'
v1.04 -----------------------------------------
- Fixed NEW TURN popup on dead battlers BUG.
- Fixed BattleManager.next_command BUG causing enemy actions to not
clear next_command correctly, if confused.
Click to expand...
Code:
Code:
本贴来自国际rpgmaker官方论坛作者:Roguedeus处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/roguedeus-ap-combat-system-a-yanfly-plugin.41985/