The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: TroyZ on July 10, 2013, 08:53:38 PM

Title: TroyZ - Individual Substitute Rate [VXAce] Version 1.0
Post by: TroyZ on July 10, 2013, 08:53:38 PM
TroyZ - Individual Substitute Rate
[VXAce] Version 1.0

Original Link
http://13th-info.blogspot.com/2013/07/troyz-individual-substitute-rate.html (http://13th-info.blogspot.com/2013/07/troyz-individual-substitute-rate.html)

How this work

Defaultly, the substitute cover will work when others allies' HP are below 25% of their MaxHP. This script allows you to set the substitute rate individually.

Screenshot

Sorry, no screenshot. I dunno how to screenshot this one.  :D

How to use

Place it between material and main. Use this notetag inside actors and enemies:

<substitute rate: x>

Actors and enemies that have this notetag will be covered when their HP is below x percent of their MaxHP. For example, an actor has this notetag :

<substitute rate: 50>

This actor will be covered when this actor's HP is below 50% of it's MaxHP. Remember, substitute cover will ONLY be work when at least there is one allied battler has the substitute special flag.

How to config

Nothing to config, except the notetags itself.

Compatibility Issues

None yet. If you found some, let me know, and bug fixes will come out soon.

Who To Credit

- Allah swt. : For the chance of living that he has given to me.
- Prophet Muhammad saw. : As a leader and messenger and prophet of Muslim. I'm proud to be your follower. :)
- Agung Prasetyo(TroyZ) : Thats me, of course, the ones that made this script. :P

License

- Free Game : Just credit those names above.
- Commercial Game : Same as free game's license.

Download

Script Only (http://pastebin.com/bmScJgj6)
Title: Re: TroyZ - Individual Substitute Rate [VXAce] Version 1.0
Post by: modern algebra on July 13, 2013, 02:24:12 AM
This seems like some people should find it useful. Thanks for sharing!
Title: Re: TroyZ - Individual Substitute Rate [VXAce] Version 1.0
Post by: &&&&&&&&&&&&& on July 13, 2013, 03:18:39 AM
Could this be used for a summoner that you didn't want to take damage?

If I set it to
<substitute rate: 100>

I ask because you said "This actor will be covered when this actor's HP is below 50% of it's MaxHP." -TroyZ

Does that mean if I want the character to always be blocked I would set it to
<substitute rate: 101>
or would that cause problems?
Title: Re: TroyZ - Individual Substitute Rate [VXAce] Version 1.0
Post by: TroyZ on July 13, 2013, 12:55:04 PM
i've done a slight change into the script to make it work like you told me before, and the answer is YES, you can do it with 100% substitute rate, so the battler won't take any damage instead. just put like this :
<substitute rate: 100>
and the said battler won't take any damage, instead its friend(s) with substitute cover will take damage.

if you have used my scripts before, just change line 134 :
from
target.hp < target.mhp * target.subs_rate && (!item || !item.certain?)
to
target.hp <= target.mhp * target.subs_rate && (!item || !item.certain?)

i've also updated the syntax, look at the download. and thanks for the suggestion lordstark