RE: TIB: Saveing a game using Lists
[Prev][Next][Index][Thread]
RE: TIB: Saveing a game using Lists
There's also another (maybe some more advanced) way to let
the program determine to which list to save...
8 -> dim(LSAVE1) ;To make sure that there is a list LSAVE with eight
numbers.
;If it doesn't exist, a new list filled with zero's will
;be created.
Slot1:
If sum(LSAVE1)=0 ;If it's filled with zero's...
Then
Goto Slot2
End
Slot2:
If sum(LSAVE2)=0 ;If it's filled with zero's...
Then
Goto Slot3
End
Etc...
; Of coarse, this is not entirely true. I mean, 0+0+0+0 = 0
; But 4+3-1-6=0 also. Got it?
Maybe it's not very clear, but with a bit of
creativity you'll get it.
Bye,
__ __
| \/ |
| \ / | __ _ _ __ ___
| |\/| |/ _` | '__/ __|
| | | | (_| | | | (__
|_| |_|\__,_|_| \___|
References: