How can I check the element of skill?

esilin

Villager
Member
Joined
Feb 9, 2014
Messages
10
Reaction score
1
First Language
English
Primarily Uses
When I need to add codition whether skill's element is physical or magical in yanfly's buff & state control,


I could use this.isPhysical() or this.isMagical(). But I don't know about element.


I tried to search information about this topic but there's no method.


How can I check elementID in custom effects, like <Custom React Effect>... etc?


- I used this but don't work.

Code:
if (this.Skill().damage.elementId === 2)
 
Last edited by a moderator:

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
I haven't tested this, but you should be able to use the following :

Code:
this.item().damage.elementId
 

esilin

Villager
Member
Joined
Feb 9, 2014
Messages
10
Reaction score
1
First Language
English
Primarily Uses
That works perfectly. 


Thank you for your time and consideration, Exhydra.
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top