mattkw80
Well-known member
Hey Everybody,
I've got a RPG style game I am putting together - mostly to teach myself vb.net. I am using alot of global variables to hold game values.
ie:
Health
Money
Attack
Defence
Monster1_Health
Monster2_Type
monster2_XP_Points
The reason these are global variables, is because I need these values always available to many different forums.
My question is -- I am trying to make a "SAVE" and "LOAD" the game's state. Is there a simple way to save the values of all my global variables, without having to type everysingle variable out. Is there anyway to call upon all my global variables at one time, and possible save/load them to a text file ?
Thanks in Advance.
I've got a RPG style game I am putting together - mostly to teach myself vb.net. I am using alot of global variables to hold game values.
ie:
Health
Money
Attack
Defence
Monster1_Health
Monster2_Type
monster2_XP_Points
The reason these are global variables, is because I need these values always available to many different forums.
My question is -- I am trying to make a "SAVE" and "LOAD" the game's state. Is there a simple way to save the values of all my global variables, without having to type everysingle variable out. Is there anyway to call upon all my global variables at one time, and possible save/load them to a text file ?
Thanks in Advance.