RPG Maker Forums

Ok I am a complete newbie at and utter suck at it.

I've written a small if statement to whether a character and an enemy have a certain state on board then the regular attack does more damage, however I want it to check for multiple states and the dmg formula box doesn't have that much space.

This is the code I wrote.

If (a.isStateAffected(21) == b.isStateAffected(21)) {a.atk*8-b.def*2} else {a.atk*4-b.def*2}

21 is a passive state just used as a designator. I want to do it for multiple states and I'm not sure how to do it. As said before the formula box is too small and I don't know how to call it from a common event, a script or even put it in the notetags correctly.

Can someone please help.

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top