i have a spell called ultima that i want to use mana equal to the users maximum mana. the problem is that it always gets capped at either 500 or 499. characters can increase their mana up to 999.
Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed
You have an option in the skill tab of the database to make the skill cost a percentage of the user's MP. See the last option on the right? The first box to tick is a static cost and the second one a dynamic cost.
__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.
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/