Conditional Resource costs

Hello all,


I hope this is the right place. I am sure it is more straight forward than I am thinking but I cannot work it out right now. Is it possible to have the resource cost of a skill as a conditional? So, something like:


SkillA cost = IF MP < 70 THEN 5hp ELSE 70MP.


Any suggestions? Is it something I can do in the engine or do I need to add a script?
Yes absolutely  if 》200$gold _<59) something like that 
Lucky Kid Gaming Group, please don't write nonsense if you don't have any idea what you're talking about



@Snayff It depends on what you really want to do in the skill. There are a few ways, but none easy, and they depend on which Maker you're using.


You'll need a script in most cases - check Yanfly's lunatic scripts for Ace for example. In some cases you can add a condition and cost by damage formula, but that will only happen after the skill hits and not before.


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


Tech support is for getting the efitors to run, it has absolutely nothing to do with development suppert
@Andar Thank you for point me in the right direction. 

Original thread: https://forums.rpgmakerweb.com/threads/conditional-resource-costs.56767/