how to add percentage to your save game

Started by nathmatt, February 05, 2009, 05:35:58 pm

Previous topic - Next topic

nathmatt

February 05, 2009, 05:35:58 pm Last Edit: February 06, 2009, 07:38:11 am by nathmatt
add this in Window_SaveFile
self.contents.draw_text(4, 40, 130, 32, "%" ,2)
self.contents.draw_text(4, 40, 110, 32, $game_variables[99].to_s ,2)
self.contents.draw_text(4, 0, 150, 32, $game_variables[98].to_s ,2)

right below this line 73
self.contents.draw_text(4, 40, 600, 32, time_string, 2)

then u just use the variable i have 99 as the percentage & use 98 as name
just use this code
$game_variables[98] ='name of chapter'


Screenshots

Spoiler: ShowHide
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


G_G

Its actually pretty helpful. Though there is a similar script called Chaos Project's Save Layout. There is chatpers in there but can easily be edited to display percentage.

Anyways power up

Tazero



If you were a fish...

nathmatt

February 05, 2009, 07:36:06 pm #3 Last Edit: February 05, 2009, 07:53:05 pm by nathmatt
added chapter & moved the percentage some to make it look better
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script