[MUD-Dev] PirateMUD and CSL

Koster Koster
Wed Aug 6 10:13:41 CEST 1997


On Wednesday, August 06, 1997 2:53 AM, 
cg at ami-cg.GraySage.Edmonton.AB.CA wrote:
> [Niklas E:]
> :Greetings everyone,
>
> Greetings!
>
> :	 <room>
> :	 .. (room data)
> :	 <csl>
> :	 <leave>
> :	 if (is_env("north")) then {
> :		 if (has_item("fraznium gloves") {
> :			 tell_room("The portal glows as @the(i) enter at ve(i).")
> :			 okay()
> :		 }
> :		 else {
> :			 tell_room("The portal prevents @the(i) from entering."
> :			 fail()
> :		 }
> :	 }
> :	 </leave>
> :	 </csl>
> :	 </room>
> :
> :This worked tremendously well, and has allowed us to write some 
very nice
> :puzzles and quests. However, there is one little problem with this 
approach:
> :Since the MUD engine gets confirmation of an event from the CSL 
function,
> :things may happen in the wrong order.
>
> Been there. Noticed the problem. Don't really have a solution. :-)



More information about the mud-dev-archive mailing list