RMMV Plugins so that only certain character can have the state bonus based on traits or weapon(equippable weapons)

alda

Veteran
Veteran
Joined
Jun 7, 2015
Messages
101
Reaction score
6
Primarily Uses
in my rpg a character can be a spellblade which cast spells that enchant swords. i need to be able to make it that only character with swords or blade or knife(maybe) can have that spell casted upon them, and not a white mage for example.
 

alda

Veteran
Veteran
Joined
Jun 7, 2015
Messages
101
Reaction score
6
Primarily Uses
is it possible to do this with negate a state in class or actor?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,746
Reaction score
9,887
First Language
German
Primarily Uses
RMMV
yes and no (to the question about traits for this)

there is a way to have the default engine do something similar with traits, but it will never be absolute (it requires you to allow a small chance to non-bladed weapons).

the best way is probably to use one of yanlfy's plugins for targeting restrictions.
Unfortunately I can't give you the code for that notetag.
 

alda

Veteran
Veteran
Joined
Jun 7, 2015
Messages
101
Reaction score
6
Primarily Uses
can i use state resist in class parameters for this?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,085
Reaction score
3,240
First Language
English
Primarily Uses
RMMV
can i use state resist in class parameters for this?
State resist does not stop you from using a skill on a battler. It just stops the state from happening. So that would be pretty annoying to a player to use the skill and it just wastes their turn.

As Andar said, Yanfly's Selection, while not free, is the way to do this (I don't know if anyone has written a free equivalent).

You would put this as the notetag in the skill's notes:
Code:
<Custom Select Condition>
condition=target.isWtypeEquipped(X) || target.isWtypeEquipped(Y) || target.isWtypeEquipped(Z);
</Custom Select Condition>

where X, Y and Z are the weapon types from the Types tab that you want the skill to be usable on. You can add as many as you like, following that format.
 

alda

Veteran
Veteran
Joined
Jun 7, 2015
Messages
101
Reaction score
6
Primarily Uses
i don't know the price. so is the script on yanfly's website?http://www.yanfly.moe/wiki/Selection_Control_(YEP)#Download

it is this one? if so it is only 10$ so i guess i can afford it.

<Custom Select Condition>
condition=target.isWtypeEquipped(X) || target.isWtypeEquipped(Y) || target.isWtypeEquipped(Z);
</Custom Select Condition>

What do i replace the X Y Z with? The name of the weapon type? or the number of the types?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,085
Reaction score
3,240
First Language
English
Primarily Uses
RMMV

Latest Threads

Latest Profile Posts

What is a thing you like to see in RPGs?
Well, I hope things go well tomorrow. I think I might be coming down with a cold, so gonna warm up some chicken soup and sleep.
Status too sad. Pls delete, mods. Thanks.
The most important thing to design your game for is fun. If a game isn't fun, why would anyone want to play it? Well, that and "can you play the game?". Anything else is incidental.
I just realized that I have been on this site for nearly 1/3 of my life...

Forum statistics

Threads
124,678
Messages
1,165,185
Members
163,487
Latest member
Monkeymanriley14
Top