- Joined
- Apr 1, 2019
- Messages
- 199
- Reaction score
- 18
- First Language
- English
- Primarily Uses
- RMMV
So I have an ability that I only want to effect the user if they have State X, how do i do this?
if (b.isStateAffected(stateID)) {damage_formula and effects};else{0};
It's self targeted. As of right now, I want it to do nothing else (it will later) as I am strictly trying to learn how to make skills that work like this.What other things does electro does? Especially what does it do if you're not metal? Is it self target?
if (b.isStateAffected(ID of metal state)) {b.addState(ID of new state)};else{0};
Yea, currently this is not working. It shows it deals 0 damage but does not apply the second state if they have the Metal StateThen for now, make a new state that gives the bonis agility then do this on the electro skill's damage formula
Code:if (b.isStateAffected(ID of metal state)) {b.addState(ID of new state)};else{0};
if (b.isStateAffected(29)) {b.addState(75)};else{0};Can you post the actual formula you used?
I can but since its the target, wouldn't B be correct?Can you try changing b to a?
if (b.isStateAffected(29)) {console.log("true")};else{console.log("false")};
I am new at this, how do i turn console on?I just want to make sure if it being self target changes a behavior. Were testing things out to figure out why its not working, so better check everything that we can.
Can you try this formula and run the game with console on and what gets printed when you use the skill? If nothing gets printed, then that would mean the formula itself has an error.
Code:if (b.isStateAffected(29)) {console.log("true")};else{console.log("false")};
Just noticed that too. I will try that.I believe your addstate is missing an a.addState(75) or a b.addState(75) just looking at the above.