10-22-2021, 01:56 PM
(This post was last modified: 10-22-2021, 01:58 PM by DerVVulfman.)
Oh oh oh.... the colored meter bar you want altered as well. The image you provided (below) did show that the Actors did have differing options for SP, the Gloria and Hilda actors having CP and SP in the example.
That and your post contained (once translated)
I guess I neglected to notice the bar itself was different for each. Well, the edit... THIS time... will be in the subsequently replaced HP/SP/TP Meter replacement script you just received. And it is actually quite similar.
In the meter script, you will find the draw_actor_sp method begin on line 93. To be more specific, that is where the 'alias' command begins for that method. With that, you will find the offending statement.....
(Um, yeah... I actually COPY/PASTED THE ABOVE EXPLANATION FROM YESTERDAY'S POST!)
Now I just made this little bit of code... and it replaces the line on 97 itself, though it of course utilizes the same RPG::Cache command.
Now, you may be thinking "What the? Is this the same code?" Basically yes! Since this too alters the draw_actor_sp method as the previous reply, it too can use the actor ID. And this just substitutes the SP_Meter string used when generating the windowskin much like replacing the "SP" string in the previous.
So this took even LESS time for me than before... And again, you can use this for the above HP, or below TP and EXP bars.
That and your post contained (once translated)
Quote:Each actor succeeded in changing the SP name.
If Actor.name != "Hilda"
;Another
self.contents.draw_text(x + 1, y + 4, 32, 32, "MP")
End
I guess I neglected to notice the bar itself was different for each. Well, the edit... THIS time... will be in the subsequently replaced HP/SP/TP Meter replacement script you just received. And it is actually quite similar.
In the meter script, you will find the draw_actor_sp method begin on line 93. To be more specific, that is where the 'alias' command begins for that method. With that, you will find the offending statement.....
@skin = RPG::Cache.windowskin(SP_Meter)
...on line 97. It is here where simple magic can be made.(Um, yeah... I actually COPY/PASTED THE ABOVE EXPLANATION FROM YESTERDAY'S POST!)
Now I just made this little bit of code... and it replaces the line on 97 itself, though it of course utilizes the same RPG::Cache command.
Code:
# CHANGE BEGINS HERE---------------------------------------------------
sp_replace = "SP_Meter"
case actor.id
when 2; sp_replace = "Gold_Meter"
when 4; sp_replace = "Blue_Meter"
end
@skin = RPG::Cache.windowskin(sp_replace)
# CHANGE ENDS HERE ----------------------------------------------------
Now, you may be thinking "What the? Is this the same code?" Basically yes! Since this too alters the draw_actor_sp method as the previous reply, it too can use the actor ID. And this just substitutes the SP_Meter string used when generating the windowskin much like replacing the "SP" string in the previous.
So this took even LESS time for me than before... And again, you can use this for the above HP, or below TP and EXP bars.