Alright, not going to edit the above post like i said.
DIMing the arrays,
New_Game: `Creating Players Charactor.
DIM Player$(5)
DIM Player(18)
`Player (P_) variblies.
P_Name$="Player" : P_Race$="It"
P_Weapon$="Fist" : P_WepAtt$="Punches" : P_Armor$="Cloth"
P_THP=0 : P_Str=0 : P_Dex=0 : P_Con=0 : P_Luck=0
P_WD=0 : P_WW=0 : P_Arm=0 : P_AW=0
P_Att=0 : P_Def=0 : P_Spd=0 : P_Wght=0
P_XP=0 : P_Potion=0 : ChPt=0
CLS
Saving the Arrays (was proud of this, got it working in two tries):
EndPlayer: `When E_HP reaches zero.
CLS
Text 10,10, "You have beaten the "+E_Race$+"."
Text 10,30, "You have gained "+Str$(E_XP)+" XP."
Text 10,50, "Total XP: "+Str$(P_XP)+"."
Text 10,70, "Gold Gained: "+Str$(E_Cash)+", Total Gold: "+Str$(P_Cash)+"."
Text 10,90, "Please select your next action."
Text 10,110, "[1]Next Fight [2]Shop [3]Save [4]Main Menu"
Repeat
KP$=Inkey$()
Until KP$="1" or KP$="2" or KP$="3" or KP$="4"
If KP$="1"
KP$="\" : Wait 500
Goto Continue
Endif
If KP$="2"
KP$="\" : Wait 500
Gosub Store
Endif
If KP$="3"
KP$="\" : Wait 500
Player$(0)=P_Name$ : Player$(1)=P_Race$ : Player$(2)=P_Weapon$
Player$(3)=P_WepAtt$ : Player$(4)=P_Armor$
Player(0)=P_THP : Player(1)=P_Str : Player(2)=P_Dex : Player(3)=P_Con
Player(4)=P_Luck : Player(5)=P_WD : Player(6)=P_WW : Player(7)=P_Arm
Player(8)=P_AW : Player(9)=P_Att : Player(10)=P_Def : Player(11)=P_Spd
Player(12)=P_Wght : Player(13)=ChPt : Player(14)=P_XP : Player(15)=P_Potion
Player(16)=P_Lvl : Player(17)=P_Cash
Save Array "Saves\"+P_Name$+"$",Player$(0)
Save Array "Saves\"+P_Name$,Player(0)
Goto EndPlayer
Endif
If KP$="4"
KP$="\" : Wait 500
Goto Start
Endif
first off, i think i set it up correctly for the loading with a "$" at the end of one array, as 60[] said it is to show it as a string array.
okay, saving works sorta; it made arrays in the "Saves/" folder.
not sure about the array storing integers, but the array for strings didn't hold the right info.
that is, it is storing the default values for weapons and armor ("Fists" and "Cloth") dispite having been saved
after selecting the equipment during charactor creation (right under the DIMs for Player$ and Player.
i was willing to look past that issue at the time i discovered this in favor of working on loading, i wasn't completely awake last night while i was working on this part, but in hind-sight i should have figured that out first, as now it might be causing some of this issue.
as always, i can't sit around while other people possible see the error of my code (which i know needs alot of cleaning.) so i'l be toying with things tonight and check back here before i go to bed.
thanks for the efforts.
Anti
Today is a good day, at least compared to tomorrow.
And every day is a good day to die, because then, there is no tomorrow