- Joined
- Dec 4, 2017
- Messages
- 69
- Reaction score
- 9
- First Language
- English
- Primarily Uses
- RMMV
Hello, everyone! Well, I'd like a plugin that does what the title says. I've searched many rpg maker websites and couldn't find one. Thanks for reading!
actually its easy just do this no need plugins just do this or you can use it for other thinks like use spell that uses mana this pict is example just add recover -(minus HP) then u good to go also if u have CD plugin use it cuz doing so without CD is broken the balanceHello, everyone! Well, I'd like a plugin that does what the title says. I've searched many rpg maker websites and couldn't find one. Thanks for reading!

I'm sorry, but I can't understand if what you explained to me. Will that allow me to make skills that user health instead of mana when the caster doesn't have mana? Thanks for your reply!actually its easy just do this no need plugins just do this or you can use it for other thinks like use spell that uses mana this pict is example just add recover -(minus HP) then u good to go also if u have CD plugin use it cuz doing so without CD is broken the balanceView attachment 139570
Yeah, that's probably what I need to do. Now I'll have to see how the correct code is. Thanks for your reply!I think you can user Yanfly's Skill Core plugin and use lunatic mode if you are familiar with basic JS to customize your HP/MP cost.
Try this one:I'm sorry, but I can't understand if what you explained to me. Will that allow me to make skills that user health instead of mana when the caster doesn't have mana? Thanks for your reply!
Yeah, that's probably what I need to do. Now I'll have to see how the correct code is. Thanks for your reply!
<Custom HP Cost>
if (user.mp < X){
cost = Y
} else {
cost = 0
}
</Custom HP Cost>
<Custom MP Cost>
if (user.mp > X){
cost = X
} else {
cost = 0
}
</Custom MP Cost>
Worked perfectly fine. Thank you very much! I really appreciate it.Try this one:
Change X to the Mp Cost of the skill. Set Y to the Hp Cost of the skill (for if the user doesn't have enough Mp. I'm not sure it will work, because I'm not sure if a skill can have both a custom hp cost and a custom mp cost. Give it a shot though.JavaScript:<Custom HP Cost> if (user.mp < X){ cost = Y } else { cost = 0 } </Custom HP Cost> <Custom MP Cost> if (user.mp > X){ cost = X } else { cost = 0 } </Custom MP Cost>
Update: I've found a little bug. If the caster's remaining mp is equal to the cost of the skill, the skill will cost 0 mana and health. I think that it could be solved by adding an equal to the part of the code that checks if the user mp is greater than X (the mana cost of the skill), so it says that the user mp should be bigger or equal to x. Sadly I can't test it because I don't know how to write that in javascript. Can you help me again, please?Try this one:
Change X to the Mp Cost of the skill. Set Y to the Hp Cost of the skill (for if the user doesn't have enough Mp. I'm not sure it will work, because I'm not sure if a skill can have both a custom hp cost and a custom mp cost. Give it a shot though.JavaScript:<Custom HP Cost> if (user.mp < X){ cost = Y } else { cost = 0 } </Custom HP Cost> <Custom MP Cost> if (user.mp > X){ cost = X } else { cost = 0 } </Custom MP Cost>
Update: I've found a little bug. If the caster's remaining mp is equal to the cost of the skill, the skill will cost 0 mana and health. I think that it could be solved by adding an equal to the part of the code that checks if the user mp is greater than X (the mana cost of the skill), so it says that the user mp should be bigger or equal to x. Sadly I can't test it because I don't know how to write that in javascript. Can you help me again, please?
<Custom HP Cost>
if (user.mp < X){
cost = Y
} else {
cost = 0
}
</Custom HP Cost>
<Custom MP Cost>
if (user.mp >= X){
cost = X
} else {
cost = 0
}
</Custom MP Cost>
Now it works perfectly fine! Thank you and the others as well. Really hope you have a nice day!This should do it.Code:<Custom HP Cost> if (user.mp < X){ cost = Y } else { cost = 0 } </Custom HP Cost> <Custom MP Cost> if (user.mp >= X){ cost = X } else { cost = 0 } </Custom MP Cost>