- Joined
- Apr 13, 2013
- Messages
- 694
- Reaction score
- 101
- First Language
- French
- Primarily Uses
- RMMV
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.
<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.
Last edited by a moderator:
