Call a skill with an item/problem with yanfly's selection control

Kchorrex2012

Villager
Member
Joined
May 26, 2017
Messages
18
Reaction score
1
First Language
Spanish
Primarily Uses
RMMV
Hi everyone

I'm looking for a way to call a skill with an item, that is, you use the item and the skill appears instead (like the elemental scrolls from FF V). I tried weaponskill but it only supports weapons (duh) and yanfly's weapon unleash but it specifically doesn't seem to support items. I tried calling the skill through common events but since I can't control the targeting of the skill itself (it makes you select a specific index) it didn't work.
The problem, actually, is that I used yanfly's selection control to create a state-healing item, but since it also heals MP, I don't want it to be abused when the battler doesn't have the condition. The state makes the battler unable to be controlled (basically a type of ally-targeting rage, it's going to be worst state after death) so it has to be healed by an ally, and it's better if no MP is involved in the healing. So I tried selection control to set up a Custom Select Condition so that only battler under this condition can be valid targets. The problem is that if no battler is affected by the condition, the player can still choose the user, but since it's not a valid target nothing happens (his turn is wasted), the item doesn't even get used.
I reached out and somebody gave me this code, but I tried it and it only works with SKILLS. That's why I'd like an item to call a skill.
<Custom Requirement>
var counter = 0;
for (var i = 0; i < $gameParty.battleMembers().length; ++i) {
var member = $gameParty.battleMembers();
if (member.isStateAffected(17)) ++counter; }
if (counter >= 1) value = true;
else value = false;
</Custom Requirement>

U_u Thanks in advance
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top