Hey everybody,
I am Duban65 came from Germany and i am using the RPG Maker VX Ace for 2 weeks.
First things first i am a bloody noob at ruby language and only can modify some scripts
that they are fit for my personal favours.
Here is my problem: I try to creat a HUD for the "Survival System 1.10" from Apellonix
but for various reason the gauges did not update on map. When i go to the menu
and back on the map the gauges update one time and then they are still standing.
Here is the scriptpassage for the HUD maybe someone can show me my mistake:
class Scene_Map < Scene_Base alias survival_map_update update alias survival_map_start start def start create_survival_window survival_map_start update end # def start def update Anyx.update survival_map_update end # def update def create_survival_window barcount = 0 if $survival_s[1] == true barcount += 1 if $survival_s[6] == false || $survival_v[1] < Anyx::LIFEHIDEVAL end # if $survival_s[1] == true if $survival_s[2] == true barcount += 1 if $survival_s[7] == false || $survival_v[2] < Anyx::FOODHIDEVAL end # if $survival_s[2] == true if $survival_s[3] == true barcount += 1 if $survival_s[8] == false || $survival_v[3] < Anyx::WATERHIDEVAL end # if $survival_s[3] == true if $survival_s[4] == true barcount += 1 if $survival_s[9] == false || $survival_v[4] < Anyx::RESTHIDEVAL end # if $survival_s[4] == true if $survival_s[5] == true barcount += 1 if $survival_s[10] == false || $survival_v[5] > Anyx::TOXINHIDEVAL end # if $survival_s[5] == true @survival_window = Window_Survival.new @survival_window.contents.draw_text(0, 0, 500, 24, " Survival System") if barcount == 0 barcount -= 1 if barcount >= 1 survivalwinypos = Anyx::WINYPOS - (24 * barcount) @survival_window.x = Anyx::WINXPOS @survival_window.y = survivalwinypos @survival_window.opacity = Anyx::WINOPACITY end # def create_survival_window end # class Scene_Map < Scene_BaseThanks for your help.
Have a nice day.
Edit: I solved the problem by my self.
Thread can be closed.