RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
TroyZ - Individual Substitute Rate [VXAce] Version 1.0

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 82
Indonesian's RGSS3 Scripter
TroyZ - Individual Substitute Rate
[VXAce] Version 1.0

Original Link
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:

Code: [Select]
<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 :

Code: [Select]
<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

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
This seems like some people should find it useful. Thanks for sharing!

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
Could this be used for a summoner that you didn't want to take damage?

If I set it to
Code: [Select]
<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
Code: [Select]
<substitute rate: 101>
or would that cause problems?
&&&&&&&&&&&&&&&&

**
Rep:
Level 82
Indonesian's RGSS3 Scripter
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 :
Code: [Select]
<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
Code: [Select]
target.hp < target.mhp * target.subs_rate && (!item || !item.certain?)
to
Code: [Select]
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