How do I make NulElement

Andrew2752

Warper
Member
Joined
Nov 21, 2016
Messages
1
Reaction score
0
First Language
English
Primarily Uses
I'm making a game on RPG Maker MV and use Yanfly Plugins. I wanted to make null element states. If you don't know what they are: if the state is active, then for one hit of that element, no damage is done to you, and afterwards, the state goes away. Is anyone able to help me by giving me the code required to make such a state?


Thanks
 

BlueUltima

Warper
Member
Joined
Jun 10, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Like in Final Fantasy 10 with the NulBlaze Effects? 


I'm not sure if this helps as I'm quite new to this but I think I may have gotten it to work.


Place this in the state note box.


Just to let you know. where it says " var fire = 2; " that's where my fire element is set.


and " var stateid = 19; is where my NulFlame is set in my states.


You'll have to change it to match your project. Hopefully this helps.


<Custom Respond Effect>


// Get the fire element ID.


var fire = 2;


// Check if fire damage is dealt.


if (this.item().damage.elementId === fire) {


// Get the NulFlame status effect ID.


var stateId = 19;


// Remove the status effect from target.


target.removeState(stateId);


}


</Custom Respond Effect>
 
Last edited by a moderator:

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,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top