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,728
Reaction score
9,882
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,024
Reaction score
3,194
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,024
Reaction score
3,194
First Language
English
Primarily Uses
RMMV

Latest Threads

Latest Profile Posts

no I did not just have to write a song three different times because my music software doesn't support tempo changes!!
I WILL defeat this demonic USB connection notification bug
ScreenShot_8_15_2022_6_22_24.png
Mike trying to dodge the Memory Pawns invading Bantam Street. I like how the filters I used on the map almost make it look like the street is wet in a sense.
Come watch as Studio Blue plays OMORI live on the final RPG Maker Critiques stream!

The only way I can get my cat to exercise is by throwing cat treats across the room so he will run after them.

Forum statistics

Threads
124,567
Messages
1,164,448
Members
163,385
Latest member
goonfuture
Top