Using the extra stats for the crystal engine does anyone know how I would have it display only half the stats on one side and the other on the other side?
https://crystalnoel42.wordpress.com/2013/07/05/crystal-engine-extra-stats/
Extra stats script layout
● ARCHIVED · READ-ONLY
-
-
I've moved this thread to Script Support. Thank you.
-
You could try this script I wrote some time ago:
Spoiler -
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? -
is that a script that you can tell us which one it is?
-
I found this modification for the crystal engine https://www.rpgmakercentral.com/topic/20850-extra-stats-multiple-rows/
it lists:
Script Calls:
change_xstat(actor_id, stat, value) # Alter the specified stat by the specified
# value. Can be either positive or negative. -
Sixth nevermind just needed to add one more "end"
-
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...
-
:guffaw: how did that happen? lol -
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. -
So I tried the "Nasty" extra stats and it seemed to have no problems... -
Sixth any chance XStatDisplayM could be modified to work with module Z26 (N.A.S.T.Y. Extra Stats)?
-
Adding one line to the Crystal Engine Xstats script stopped the error for me.
Code:Place this on line 345next if equip.is_a?(RPG::Item)
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 -
Yeah it fixed the issue. -
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.
-
That would be a new request. Not related to the topic you started.
-
Here I made a patch that adds NASTY Extra Stats and Crystal Extra Stats to the status screen
NASTYCrystalPatchclass 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'