WoW - Enhanced Pyrotechnics

SonoKiabutsu

Villager
Member
Joined
Jul 4, 2015
Messages
8
Reaction score
1
First Language
Enland
Primarily Uses
Hi guys,


I'm trying to recreate the passive ability from World of Warcraft called "Enhanced Pyrotechnics". The state needs to do the following:


When Fireball does not inflict a critical hit, increase the actors CRIT by 10%. This effect stacks.


The critical hit boost is removed when a critical hit is made with Fireball.


I'm using a variety of YanFly's plugins almost exclusively.


I have 2 states set up, but there is an issue with state 1 that is applying state 2 on any attack from that actor, instead of the specific attack.


For reference, state 2 is State 90 and Fireball is Skill 64.


State 1s Notebox:

<Custom Establish Effect>


if (this.isSkill(64) && target.result().hpDamage > 0 && target.result().critical) {


user.removeState(90)


} else if (this.isSkill(64) && target.result().hpDamage > 0) {


user.addState(90)


}


</Custom Establish Effect>


Then, in the second state, the critical chance isn't increasing:


State 2s Notebox:

<Category: Magic>


<Custom Apply Effect>


target._stackingPoison = target._stackingPoison || 0;


target._stackingPoison += 1;


</Custom Apply Effect>


<Flat Critical Formula>


target._stackingPoison = target._stackingPoison || 1;


var stacks = target._stackingPoison;


value += 10 * stacks;


</Flat Critical Formula>


Can anyone see where I'm making a mistake?
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I've moved this thread to RPGMaker MV. Please be sure to post your threads in the correct forum next time. Thank you.


Technical support is for helping to run the engine itself.  "How do I...?" queries go in the Support forum for the engine you are using.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top