To use different colors for each string, just add a
self.contents.font.color =
Color.new(255,0,0,255) ## Red
statement under each sp_word = "" statement
To add another string, just add another 'when' statement
class Window_Base
#--------------------------------------------------------------------------
# * Draw SP
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : draw spot width
#--------------------------------------------------------------------------
def draw_actor_sp(actor, x, y, width = 144)
# Draw "SP" text string
self.contents.font.color = system_color
case actor.class_id
when 7, 8 ## Magic Users
sp_word = "SP"
self.contents.font.color = Color.new(255,0,0,255) # Red
when 9, 10 ## Something Else
sp_word = "EP"
self.contents.font.color = Color.new(0,255,0,255) # Green
else
sp_word = "TP"
self.contents.font.color = Color.new(0,0,255,255) # Blue
end
self.contents.draw_text(x, y, 32, 32, sp_word)
# Calculate if there is draw space for MaxSP
if width - 32 >= 108
sp_x = x + width - 108
flag = true
elsif width - 32 >= 48
sp_x = x + width - 48
flag = false
end
# Draw SP
self.contents.font.color = actor.sp == 0 ? knockout_color :
actor.sp <= actor.maxsp / 4 ? crisis_color : normal_color
self.contents.draw_text(sp_x, y, 48, 32, actor.sp.to_s, 2)
# Draw MaxSP
if flag
self.contents.font.color = normal_color
self.contents.draw_text(sp_x + 48, y, 12, 32, "/", 1)
self.contents.draw_text(sp_x + 60, y, 48, 32, actor.maxsp.to_s)
end
end
end
[/quote]
I don't really understand the 2nd thing. You want only certain items to restore SP, and others to restore TP?
You can do that with a common event for the healing/restoring items.
Not sure what you mean about "new state". I haven't looked at MOG's script.