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
> Set Skill MP Cost to Varable
Dart00
post Oct 10 2011, 11:29 PM
Post #1


Level 5
Group Icon

Group: Member
Posts: 69
Type: Developer
RM Skill: Intermediate




Is there a way to set a Skills MP cost to a Variable? I cant seem to find a way to do it and googles not really helping...
Go to the top of the page
 
+Quote Post
   
Essenceblade
post Oct 11 2011, 12:58 PM
Post #2


Crystallite Hope.
Group Icon

Group: Revolutionary
Posts: 207
Type: Developer
RM Skill: Skilled




QUOTE (Dart00 @ Oct 11 2011, 08:29 AM) *
Is there a way to set a Skills MP cost to a Variable? I cant seem to find a way to do it and googles not really helping...


That sounds pretty straight forward, but here's my guess:

You need to make a Variable firstly, that is called "MP cost". I figure this is for a custom battle system, so you'll need to SET the MP Cost Variable equal to the MP that character has. Then simply subtract the amount required. so for example...

Ryan: 50 MP
Fire: 5 MP
This would be the coding:

Variable Operations: MP Cost: Set Equal Ryan's MP
Variable Operations: MP Cost Subtract 5
Change Character MP > Decrease > Ryan > And then Amount: Equal to the MP Cost Variable.
Optional: Variable Operations: MP Amount: Set Variable MP Cost value.
All in all, this should reduce Ryan's 50 MP, by 5, resulting in 45.

As for the last instruction, ^ if you have an "MP Amount" Variable, simply set that Variable to the same amount as the MP Cost variable to neaten things up. This isn't needed, but it reduces confusion.

There's my two cents in the say. I hope this is of use somehow.

This post has been edited by Essenceblade: Oct 11 2011, 12:59 PM


__________________________
My current project:


--------------------------------------------------






--------------------------------------------------



-------------------------------------------------------------------------------------------
"I want to have encampment dreams, where everything is as it seems, Harmony everywhere, finally there is peaceful air" -- Fatesboon. 11/4/2011
Go to the top of the page
 
+Quote Post
   
Dart00
post Oct 11 2011, 10:19 PM
Post #3


Level 5
Group Icon

Group: Member
Posts: 69
Type: Developer
RM Skill: Intermediate




Thats for the feedback..you confirmed a idea i was thinking as a alternative which i may have to do.

I was hopeing to avoid doing "MP Cost" = "x"....

I would "like" to be able to make a skill in the "Skills Tab", set its MP there, then assign it to a variable in a common event.

I guess i may just have to control it all for variable in a common event like you suggested.
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Oct 12 2011, 06:26 AM
Post #4


The past tense
Group Icon

Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed




If you wanted it to be a certain percentage, like it will always use 10% of the player's MP, that's already built in. But if you wanted it to be like the skill costs 5 extra MP every time you use it, then you'd have to do it Essenceblade's way I believe.


__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   
Dart00
post Oct 12 2011, 08:09 AM
Post #5


Level 5
Group Icon

Group: Member
Posts: 69
Type: Developer
RM Skill: Intermediate




QUOTE (Night5h4d3 @ Oct 12 2011, 07:26 AM) *
If you wanted it to be a certain percentage, like it will always use 10% of the player's MP, that's already built in. But if you wanted it to be like the skill costs 5 extra MP every time you use it, then you'd have to do it Essenceblade's way I believe.


Ok thanks...thats what i figured.

Thanks for the help. smile.gif
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 May 2013 - 04:34 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker