じ☆ve冰风 发表于 3 天前

Improve Counter Attack State Snippet

Hi. This is my first script/snippet.

Filename: Hamedo.js

Script Name: Hamedo: Improve Counter Attack System

Version: 1.00

Author: 1224Deko

This script/snippet overrides function BattleManager.invokeAction and counter mechanism by default, so be carefull.

What it does:

- Change default Evade and Counter to Counter-Attack system.

- Adds 5 state types of counter attack:

Default Counter-Attack: countering after taking damage:  added for priority, example if you want nullifies all countering system just put that state on target enemy/battler.

First Strike: Countering before taking damages, so if enemy dies battler no recive damage

Forestall: Countering before taking damage, and taking damages only if counter attack was evaded or dmg =< 0.

Double Strike: First Strike plus second counter attack(if previous wasn't lethal of course).

Evade and Counter: Evade and Counter like without this snippet




In Plugin setup you can also find:

CounterEvenDeath: countering even if damage(s) was lethal, should work now but it isn't finished yet.

Multi States: It is a WIP system. So it do nothing yet. But in future i'm planning making a multiple countering system, so i.e. if actor will have CounterEvenDeath and Double Strike states. It will countering 2 times even if it takes lethal damage before second countering.

Counter Same Skill: Don't know if i can make it work ever. Must testing how work countering magics and skills by default.

This is my first meet with js, so i migh did a few mistakes. If you saw something strange please report it.

Any ideas, how to improve counter system?

Script:

http://pastebin.com/CMa9bqMJ

Terms of uses: Free for both non commercial and commercial uses. But for commercial uses please credit me.


本贴来自国际rpgmaker官方论坛作者:Janusz处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/improve-counter-attack-state-snippet.50418/
页: [1]
查看完整版本: Improve Counter Attack State Snippet