levels increase mana to 500 however, items exist that enables characters to increase their mana up to 999. those items are an important part of the project. i really dont want any exploits in my project so ultima need to cost all of the users mana.(kind of like the dragons in breath of fire 2.)
A bit round-about but you can perhaps first check each turn how much MP a character has, then if that hero uses the x command (whatever one you're using for that spell, I assume Black Magic), check their MP afterwards. If it's 500 less, then have it furthur remove whatever MP they had. However that means that as long as they have over 500 MP, they can cast it even if they're not at the max.
There might be a patch for this but I am uncertain. Otherwise you can probably do an extra calculation to see if the current MP = max MP, and remove the spell if it's not the same, and add it back if it is. That's just what comes to mind for me.
This post has been edited by Oceans Dream: Jun 10 2011, 07:34 PM
Ocean's Dreams blog! Contains RPG Design topics, Game updates and others! Also check out my tumblr for smaller but more frequent updates! http://oceansdreams.tumblr.com/