Original Source
- Original title: TAA_SubstituteSkills (v1.0.0)
- Original author: taaspider
- Original date: December 2, 2020
- Source thread: https://forums.rpgmakerweb.com/threads/taa_substituteskills-v1-0-0.130517/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)
Summary
TAA_SubstituteSkills - v1.0.0 Created by taaspider Terms of Use Any plugins developed by taaspider are free for use for both commercial and noncommercial RPG Maker games, unless specified otherwise. Just remember to credit "taaspider".
Archived First Post
Created by taaspider
Terms of Use
Any plugins developed by taaspider are free for use for both commercial and noncommercial RPG Maker games, unless specified otherwise. Just remember to credit "taaspider".
Redistribution of parts or the whole of taaspider plugins is forbidden (which also includes reposting), unless it comes from the official website (linked within the post). You are allowed to edit and change the plugin code for your own use, but you're definitely not allowed to sell or reuse any part of the code as your own. Although not required to use my plugins, a free copy of your game would be nice!
Introduction
This plugin provides more control over the substitute effect. The engine default allows only for a substitute character to cover for all its allies at the same time for all types of attacks, and only when they are at low health. With TAA_SubstituteSkill you can create more specific and flexible substitutions, like covering for a single ally with no health limitations, having different substitutes for each skill type, or even covering for an enemy unit.
Main Features
- Create substitute skills for each skill types independently;
- Allow substitution skills to work on as many targets as you want, from one to all allies at the same time, or even covering for enemies;
- Supports multiple substitutes at the same time, one for each skill type (so you can have a Knight cover for normal and special skills, and a Mage cover for magic attacks);
- Allow for substitutions to cover (or not) from ally skills as well;
- Create skills that ignores substitutes and force its way to the original target;
Screenshots
How to Use
WARNING: This plugin requires RPG Maker MV 1.5.0 or above! Please make sure your RPG Maker MV software is up to date before using this plugin. You don't need any specific version if you're using MZ.
First of, download the plugin here. You can also test the plugin using my sample demo project. It was built with MV, but you can open it with MZ as well (just open the game.rmmzproject file and you're good to go).
States have the following settings:
- Type: This determines which skill type will be covered by the substitute. You can specify a comma separated list of types using their names or engine indexes. For example, the engine default types Magic and Special. You can use their names as configured in the editor, or use their index according to their order: Magic is 1 and Special is 2. If you want the state to allow for normal attacks substitution just specify Normal or index 0. You can also specify all skill types by setting to "all" or -1. See some examples in the States Note Tags section.
This is the only obligatory parameter. - Friendly Fire: This determines if the substitute will cover the target in case they're being hit by their allies. For example, if this is set to true and a healer issues a healing skill to the target, the substitute we'll be healed instead. If false, the substitution will not occur.
If not set, the default global parameter is used (which you can configure through the Plugin Manager). - Condition: This determines on which conditions the substitution can occur. For example, only allow the substitute to take over damage if the target's HP is below 50%, or if the target's health is greater than the substitute.
If not set, the default global parameter is used (which you can configure through the Plugin Manager).
- Substitute Friendly Fire
- If set to true, substitutes will also cover for any allies issued abilities as long as substitution conditions are met. If false, only enemy attacks are substituted. You can overwrite this config using States Note Tags.
- Substitute Condition
- This sets a default condition to allow an applied substitution to happen. For example, only if the target HP is lower than the substitute HP, or the target health is below 50%, and so on.
This is an eval clause, and the following special objects can be used:- a: access the attacker parameters like hp, mp, etc.
- b: access the original target parameters;
- c: access the substitute parameters;
- v[n]: access the value from variable number n;
- s[n]: access the value (true or false) from switch number n;
- This sets a default condition to allow an applied substitution to happen. For example, only if the target HP is lower than the substitute HP, or the target health is below 50%, and so on.
The following codes can be used inside a condition clause:
- a: access the attacker parameters like hp, mp, etc.
- b: access the original target parameters;
- c: access the substitute parameters;
- v[n]: access the value from variable number n;
- s[n]: access the value (true or false) from switch number n;
Here's a few examples:
State tags can also span multiple lines when inside the proper tags:
Here's how the three examples above would look like in a multi line format:
$gameSystem.sskEnableFriendlyFire()
$gameSystem.sskDisableFriendlyFire()
$gameSystem.sskResetFriendlyFire()
$gameSystem.sskCondition()
$gameSystem.sskUpdateCondition(newCondition)
$gameSystem.sskResetCondition()
Substitute FriendFire disable
Substitute FriendFire reset
Substitute Condition Set newCondition
Substitute Condition Reset
- Version 1.0.0:
- Fixed a bug for when a single state covers for more than one skill type;
- Fixed a bug which would always have a substitute cover for friendly skills (unless a ignore tag was set);
- Fixed a minor bug that could cause a substitute to cover for himself if he substitutes a target for a substitution skill issued by himself;
- Version 0.9.0:
- Beta release;
Features Mentioned
- Create substitute skills for each skill types independently;
- Allow substitution skills to work on as many targets as you want, from one to all allies at the same time, or even covering for enemies;
- Supports multiple substitutes at the same time, one for each skill type (so you can have a Knight cover for normal and special skills, and a Mage cover for magic attacks);
- Allow for substitutions to cover (or not) from ally skills as well;
- Create skills that ignores substitutes and force its way to the original target;
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
Terms of Use Any plugins developed by taaspider are free for use for both commercial and noncommercial RPG Maker games, unless specified otherwise. Just remember to credit "taaspider". Redistribution of parts or the whole of taaspider plugins is forbidden (which also includes reposting), unless it comes from the official website (linked within the post). You are allowed to edit and change the plugin code for your own use, but you're definitely not allowed to sell or reuse any part of...
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...