Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Adding more stats that behave like SP
#1
So this has been bothering me for a long time now.. so much so, that I’m calling out to you guys for any help or insight.

 
For my project I’m wanting to add two stats that work just like SP, namely STM and MP.
 
I found out adding the first (STM) was quite easy, I just replaced the names with “SP” in the script with “STM”, also since I am not interested in a stat called “SP”.
With it I added a nice green STM-bar as a visual indicator which I’ve found a code for.
 
Now for the MP stat it seems a lot harder.
I had to make a whole new stat that does not exist in the database.
However this seems at least partly possible. With help of Kitsune's Extra Statistics I managed to add MP, but here comes the problem: I cannot figure out how to define a minimal and maximum amount for MP to make it work like SP.
I now have a MP stat that works more like a fixed stat such as STR or INT.
 
My best guess is the code below has to be modified somehow?

Code:
 def maxmp
   n = [[base_maxmp + @mp_plus, 1].max, 999].min
   for i in @states
     n *= XTRA_STATS_RATE[i][0] / 100.0
   end
     n = [[Integer(n), 1].max, 999].min
    return n
   end

 
Does anyone know how to make it work with a bar and that can be used up using skills, just like SP?
 
 I’m very much a Rubyscript noob so after trying different things I am clueless Sad
Reply }


Messages In This Thread
Adding more stats that behave like SP - by Bennerdeben - 07-17-2020, 04:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 12,699 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   Best Practices for Adding New Data to Saves tnsi 3 5,349 02-16-2015, 04:50 AM
Last Post: tnsi
   Adding new Stats? shintashi 2 4,934 03-27-2010, 11:42 PM
Last Post: Victor Sant



Users browsing this thread: