Extra stats script layout

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,377
Reaction score
8,536
First Language
English
Primarily Uses
RMMV

I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
823
First Language
Hungarian
Primarily Uses
RMVXA
You could try this script I wrote some time ago:
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
61
Reaction score
2
First Language
English
Primarily Uses
N/A
I think I found a script that allowed me to modify it so it would allow two rows for the 8 elements... but thank you...

Will change_xstat(fire,+1) work in a script?
 

Attachments

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,674
Reaction score
566
First Language
English
Primarily Uses
RMVXA
is that a script that you can tell us which one it is?
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
61
Reaction score
2
First Language
English
Primarily Uses
N/A
Sixth nevermind just needed to add one more "end"
 

Attachments

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
61
Reaction score
2
First Language
English
Primarily Uses
N/A
upload_2018-9-21_19-12-13.png Ok so when I tried adding Yanfly's Equip engine with Kread's actor inventory and item charge scripts I get this error message after I equip any items in the accessory slot then view status I removed both the CE-ExtraStats XStatDisplayM and I didn't get the error message. ok maybe I just need to play around with the settings more...
 
Last edited:

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
61
Reaction score
2
First Language
English
Primarily Uses
N/A
upload_2018-9-21_19-54-2.png
:guffaw: how did that happen? lol
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
823
First Language
Hungarian
Primarily Uses
RMVXA
The first error is not from my display script, that script doesn't use any method named xstat_change. It doesn't even do anything with items, so no idea what you did, but your best bet is to delete the script, get the original, and edit the settings again.
It can happen from getting the xstat value itself, but that error comes from the original xstat script than, and not from my script. Either a setting error in that script, or you found a new bug somehow.

The second error also happens because you edited something in that script.
You must be extra careful when you edit scripts, even when you edit the settings. One missed comma, bracket, etc or even an extra of those, and the script will crash on startup. Every single letter is important.
Try to do the same with this script too, get the original and edit it again, but this time, pay attention to what you edit and how.

And in case you copied the scripts wrong from the start (didn't get the whole script, for example), make sure that you copy the whole thing, otherwise you will surely get errors, much like that last one you have shown.
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
61
Reaction score
2
First Language
English
Primarily Uses
N/A
upload_2018-9-21_20-13-17.png
So I tried the "Nasty" extra stats and it seemed to have no problems...
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
61
Reaction score
2
First Language
English
Primarily Uses
N/A
Sixth any chance XStatDisplayM could be modified to work with module Z26 (N.A.S.T.Y. Extra Stats)?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,674
Reaction score
566
First Language
English
Primarily Uses
RMVXA
Adding one line to the Crystal Engine Xstats script stopped the error for me.
Code:
        next if equip.is_a?(RPG::Item)
Place this on line 345
I don't know if that is a different line from you but that section looks like this
Code:
  #--------------------------------------------------------------------------
  # * Extra Stats Object
  #--------------------------------------------------------------------------
  def eval_stat(sym)
    if actor?
      if actor.xstat_formula(sym) == CRYSTAL::XSTAT::DEFAULT_LEVEL_FORMULA[sym]
        stat = eval(self.class.xstat_formula(sym))
      else
        stat = eval(actor.xstat_formula(sym))
      end
      equips.compact.each do |equip|
        next if equip.is_a?(RPG::Item)
        stat += equip.xstat_change(sym)
        end
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
61
Reaction score
2
First Language
English
Primarily Uses
N/A
upload_2018-10-21_8-27-23.png
Yeah it fixed the issue.
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
61
Reaction score
2
First Language
English
Primarily Uses
N/A
Have any idea how I would remove Mp from being displayed in the status menu and equip screens as well as mag atk/def? Also is there a script call to check how many charges an item has and restore item charges.
 

Attachments

Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,674
Reaction score
566
First Language
English
Primarily Uses
RMVXA
That would be a new request. Not related to the topic you started.
 

Jakodio

Warper
Member
Joined
Oct 29, 2018
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Here I made a patch that adds NASTY Extra Stats and Crystal Extra Stats to the status screen
class Window_Status < Window_Selectable
#--------------------------------------------------------------------------
# * Draw Block 3
#--------------------------------------------------------------------------
def draw_block3(y)
draw_parameters(0, y)
draw_equipments(344, y)
draw_xstat_parameters1(172, y)
draw_nstat_parameters(0, 312)

end

def draw_xstat_parameters1(x, y)
dy = 0
CRYSTAL::XSTAT::STATS.each do |stat|
draw_actor_xstat(@actor, x, y + dy, stat)
dy += line_height
end

def draw_nstat_parameters(x, y)
@actor.nstat.size.times {|i|
draw_actor_nstat_param(@actor, x, y + line_height * i, i) }
end

def draw_actor_nstat_param(actor, x, y, param_id)
id = Z26::STATS[param_id]
change_color(system_color)
draw_text(x, y, 120, line_height, id.capitalize)
change_color(normal_color)
draw_text(x + 120, y, 36, line_height, actor.nstat[id], 2)
end
end

end

In order for this to work however change every instance of 'xstat' in nasty extra stats to 'nstat'
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,467
Members
137,821
Latest member
Capterson
Top