gasolin Novice
Joined: 17 Aug 2002 Posts: 31 Location: Denmark
|
Posted: Wed Jun 11, 2003 8:51 pm
New to Database |
Hi agian
I have made a database to store all the roomnum in a zone.
Its Name Walk and have 2 fields.
RoomNumber Type Number
Check Type Boolean Display Format Yes/No
I have a alias with this value:
#VAR NextRoom 125
#UNTIL (@NextRoom = 1216) {
#UNTIL (%roomname(@NextRoom)<>"") {#ADD NextRoom 1}
#VAR Room ""
#ADDKEY Room RoomNumber @NextRoom
#ADDKEY Room Check No}
The 125 is the first RoomNum and 1216 is the last,
the 2 #Until is there because there are "holes"
between 125 and 1216.
I want to use the db to check if I have been in
the room before
#TRIGGER {~<(%n)hp (%n)sp (%n)st>} {
#VAR Room ""
#ADDKEY Room RoomNumber %RoomNum
#ADDKEY Room Check Yes} {nocr|prompt}
I know Iam doing something very worng with the #ADDKEY,
but I hope you can understand and help me.
Gasolin
Denmark |
|