On 05 Jun 2019, xqtr said the following...
I made a simple test script and works fine. Can you post the part of the code that makes this error?
I'm guessing that's why it was giving the error. There are two arrays that
I'm loading in TDTA. One for weapons, the other for armour.
type wrec = record
index : byte
name : string[20]
price : LongInt
strength: integer
end
type arec = record
index : byte
name : string[20]
price : LongInt
strength: integer
end
Var
weapons : Array[1..15] of wrec
armour : Array[1..15] of arec
Right now, I'm filling those arrays via a procedure. (I know, it should be in
a data file... It's on my TODO list)
procedure setweapons
Begin
weapons[1].index:=1
weapons[1].name:='Stick'
weapons[1].price:=200
weapons[1].strength:=5
weapons[2].index:=2
etc... etc...
If I change the array to [0..15], and add lines to fill that record, is when Mystic starts giving me the 216 error
My thought was to have a minimum 'default' weapon/armour, in case the user sells their stick. Right now, it just shows they have a ' ' weapon/armour.
---
Black Panther(RCS)
a.k.a. Dan Richter
Sysop - Castle Rock BBS
telnet://bbs.castlerockbbs.com
http://www.castlerockbbs.com
The sparrows are flying again....
--- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
* Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)