Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
command parsing
On 12/03/97 at 10:23 PM, cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)
said:
>:I guess it's the difference between making a wall and letting users get
>:over it in whatever way they can manage (whether it be flying, climbing,
>:becoming non-corporeal and walking through, or even smashing it down)
>and :doing a script like:
>:
>:if token++.Is("climb") and token.Is("wall")
>: room_message("$n scale$s the wall.", ch);
>: move_char(ch, UP)
>You're going to have to have a very general scenario in order for all of
>those methods of getting past the wall work! You're not going to get any
>of them for free, I suspect.
I suspect that the solution to the general case for this sort of
limitation (eg can he get over the wall) is to fract the problem into an
attempted motion in a direction (which is easy to code for the success
failure of), and a generalist reaction to motions. In the case of the
wall, if he can somehow get "up" (or "scale" or whatever you call the
verb), you do that. If he then achieves the position of being atop the
wall, you then report or react that.
This comes back to coding in general physical laws into the world, and
then presuming that they will ensure correct behaviour.
--
J C Lawrence Internet: coder#null,net
----------(*) Internet: coder#ibm,net
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...
- Thread context:
- Command Parsers, continued,
Nathan Yospe yospe#hawaii,edu, Mon 25 Nov 1996, 01:28 GMT
- Command Parsing,
Nathan Yospe yospe#hawaii,edu, Sun 24 Nov 1996, 23:06 GMT
- <Possible follow-up(s)>
- command parsing,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Thu 13 Mar 1997, 15:00 GMT
- Re: command parsing,
Adam Wiggins nightfall#inficad,com, Thu 13 Mar 1997, 16:22 GMT
- command parsing,
claw claw#null,net, Tue 18 Mar 1997, 02:08 GMT
- Re: command parsing,
claw claw#null,net, Tue 18 Mar 1997, 02:11 GMT
- Re: MUD Design Digest V1 #52,
Chris Lawrence clawrenc#xsvr1,cup.hp.com, Fri 22 Nov 1996, 21:34 GMT
- Re: MUD Design Digest V1 #49,
Chris Lawrence clawrenc#xsvr1,cup.hp.com, Fri 22 Nov 1996, 21:22 GMT
- Re: MUD Design Digest V1 #47,
Chris Lawrence clawrenc#xsvr1,cup.hp.com, Fri 22 Nov 1996, 21:20 GMT
[ Other Periods
| Other mailing lists
| Search
]