(Answered) Adding a state via formula help.

Alright. Another question!


From what I read if I was to do this:


a.add_state(33);(100+((a.level/4)*(a.atk/10)))*0.55


This should add state 33 to the character casting the skill, but instead the state is not added and the skill does 0 damage (does normal damage without the "a.add_state(33);")


*edit*  a.addState(33); (100+((a.level/4)*(a.atk/10)))*0.55 would be the correct way to add a state in RPG Maker MV.


Thank you, Riff, for the information! 😀
Hello.


Your profile says you primarily use RMMV, so i'm gonna assume you're using that. In that case, you should try this instead:


a.addState(33); (100+((a.level/4)*(a.atk/10)))*0.55


Hope that works for you!


- Riff
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.


Please be more careful where you post. Game Mechanics Design, which is where most of your recent threads have been made, is for discussion of the design of game mechanics. If you want help with the implementation, or something in your game is not working correctly, MV Support is where you need to post. If it's a "how do I ..." question then it's not for Game Mechanics Design.
Hello.


Your profile says you primarily use RMMV, so i'm gonna assume you're using that. In that case, you should try this instead:


a.addState(33); (100+((a.level/4)*(a.atk/10)))*0.55


Hope that works for you!


- Riff

That worked perfectly! Thank you very much!

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.


Please be more careful where you post. Game Mechanics Design, which is where most of your recent threads have been made, is for discussion of the design of game mechanics. If you want help with the implementation, or something in your game is not working correctly, MV Support is where you need to post. If it's a "how do I ..." question then it's not for Game Mechanics Design.

I do apologize and I will try to make sure it doesn't happen again.

Original thread: https://forums.rpgmakerweb.com/threads/answered-adding-a-state-via-formula-help.60021/