RPG Maker Forums

1. do this after action if damage value was = or superior to 1


<Custom Action End Effect>


if (value >= 1) {


user.removeState(321);


}


</Custom Action End Effect>


Result: no errors, state didn't get removed after dealing damage


__


2. do this after action if skill mana cost was = or superior to 1


<Custom Action End Effect>


if (item.mpCost >= 1) {


user.removeState(361);


}


</Custom Action End Effect>


Result:


__


3. gain mana equal of skill cost if target is slain


<After Eval>


if (target.hp <= 0) {


user.gainMp(item.Mpcost);


}


</After Eval>


Result:


The error seem to happen even with Yanfly plugins on the right order


With every plugin but Yanfly's disabled


Solution: instead of skill MP cost, just write the exact MP number of the skill, though it won't work for states


<Post-Damage Eval>


if (target.hp <= 0) {


user.gainMp(30 * user.mcr);


}


</After Eval>


__


4. self gain upgradable state after doing All Allies action


<After Eval>


if (user.isStateAffected(113))


user.addState(114);


else


if (user.isStateAffected(114))


user.addState(115);


else


if (user.isStateAffected(115))


user.addState(115);


else


user.addState(113);


</After Eval>


Result: user gain states equal to the number of target instead of once.


__


5. What should I write inside an <After Eval> to show a popup if the user/target loses HP/MP?


I will have more over the course of the day, might be compatibility issues or typos, ill check myself over time and check out more issues I have.

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,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top