Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> how can i make a spell use all of a characters mana
andreasaspenberg
post May 15 2011, 06:48 AM
Post #1


Level 8
Group Icon

Group: Revolutionary
Posts: 115
Type: None
RM Skill: Undisclosed




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.
Go to the top of the page
 
+Quote Post
   
Kread-EX
post May 15 2011, 06:54 AM
Post #2


(=___=)/
Group Icon

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.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
andreasaspenberg
post May 15 2011, 06:59 AM
Post #3


Level 8
Group Icon

Group: Revolutionary
Posts: 115
Type: None
RM Skill: Undisclosed




i tried both of them but it capped the cost either on 499 or 500.
Go to the top of the page
 
+Quote Post
   
Kread-EX
post May 15 2011, 08:58 AM
Post #4


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




I'm afraid you'll need a patch then.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
ranmaster
post May 15 2011, 11:42 AM
Post #5


DBS Innovator - RM2k3
Group Icon

Group: Revolutionary
Posts: 228
Type: Artist
RM Skill: Beginner




Cap your character's MP below 499 or 500 then...


__________________________




Go to the top of the page
 
+Quote Post
   
andreasaspenberg
post May 15 2011, 11:50 AM
Post #6


Level 8
Group Icon

Group: Revolutionary
Posts: 115
Type: None
RM Skill: Undisclosed




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.)
Go to the top of the page
 
+Quote Post
   
cray
post Jun 2 2011, 01:45 PM
Post #7


Level 3
Group Icon

Group: Member
Posts: 39
Type: Musician
RM Skill: Skilled




you could use switches abd battle events, and if that skill is used then take out all of the user's MP
Go to the top of the page
 
+Quote Post
   
andreasaspenberg
post Jun 2 2011, 03:39 PM
Post #8


Level 8
Group Icon

Group: Revolutionary
Posts: 115
Type: None
RM Skill: Undisclosed




how do i do that.
Go to the top of the page
 
+Quote Post
   
Oceans Dream
post Jun 10 2011, 07:34 PM
Post #9


efffortt
Group Icon

Group: Revolutionary
Posts: 5,592
Type: Developer
RM Skill: Advanced




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/

Go to the top of the page
 
+Quote Post
   
andreasaspenberg
post Jul 7 2011, 05:35 AM
Post #10


Level 8
Group Icon

Group: Revolutionary
Posts: 115
Type: None
RM Skill: Undisclosed




since conditional branch cant check mana but only hp, that wont work. i checked it out myself.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th June 2013 - 03:26 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker