Need help with a state evolving with skills.

Greetings everyone ! This is my first request, I'm feeling kind of lost  with this forum so thanks alot for the incoming messages !


Since i'm having alot of fun creating skills and formulas, I had the idea to make a mage type of class, a magician that could apply a specefic state ( called emolation ) on a target with a specefic skill and then using others skills to ''consume'' the state to do more damage, stun the enemy, buff the user, stuff like that ! ( Kinda like Brand's gameplay from


league of legends).


I know how to add the buffs/debuffs to user/targets, but i don't know how to use a condition who would look like this :


If b.got state(emolation) = add state(stun) + damage. If b.dont got state(emolation) = simply add damage.


I know some high-level pros in formulas would find my problem easy, but I'm blocked with my mage developement 'cause i can't find this godamn condition :/


So thanks alot for the incoming help !
Use this resource https://docs.google.com/spreadsheets/d/1N5jG2xN_K6ker0GOhQkk2sTCiJg9V08OOXqi9N6mVyo/edit?pref=2&pli=1#gid=949662942


you'll be looking into the if (condition) {do} else {this};


for syntax


http://www.tutorialspoint.com/javascript/javascript_operators.htm
Wow 😀


Didin't realy expect an awnser to come this fast ! I'm gona try this right now !
It worked without problems ! Thank's alot man ! I'm gona put you in my project's credits 😀

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-a-state-evolving-with-skills.63845/