Electronics and computers since the 70s. Patron of the arts (accidental ) Inventor ( that is what the US Patent Office says )
18 years at Symantec / Broadcom
I have always thought the way my modified Tinymud was programmed was fun. I have started to distill the idea into a standalone program.
https://t.co/ncI1cKkSb8
exits that start with a period, are only matchable when the effective userid is the owner of the exit or a wizard.
So the .wet is not matchable by players, fill bottle with water sends .wet to the room to see if water is available.
As a programming environment it can be easy or hard : )
CAVERN(#5586 RQ)
You are in a magnificent cavern with a rushing stream, which cascades over a
sparkling waterfall into a roaring whirlpool which disappears through a
hole in the floor. Passages exit to the south and west.
Follow the light : )
It's too dark to see anything.
look here;look;l(#5502 EF)
Key: (EXEC{".lit",#5500}|FAIL{"It's too dark to see anything.",
}|SHOW{#840, }&FALSE{ , })&EXECL{"@LOOK HERE",#5500}
@open /ME .lit
look
You are at one end of an immense north/south passage.
For some reason I thought this was a good idea, Bottle(#5826 C)
Class: Adven Thing Class
Commands:
.reset #7331
.port #7116
.isempty #3336
look #3334
.has # water #3330
.pour # water #3324
.fill # water #3321
How this works uses the search order of the environment - room, things in room, player, players in room. All matches are put in a list and the lock functions are evaluated one by one until there is a true result or all have been tried. FAIL issues a message and returns false
Was forgetting to set the class of the objects used to define the play order. So typical Object Oriented hack (#15983 is the class room ) :-
@open /#15983 .class = 0
4 opened exit number 15992 from autoscript(15983).
Trying to link...
Linked.
@lock #15992=FAIL{"$0 autoscript", }