[MUD-Dev] an idea..wondering if this has been done

David Bennett ddt at discworld.imaginary.com
Thu Jul 15 15:18:13 CEST 1999


On 7/15/99, at 11:21 AM, Christopher Allen - GM Fangs wrote: 

>It is difficult to do this with verbs that have effects on objects, but we
>have created a 'verb editor' using XML for socials in the Skotos lib that
>allows a wizard to add quite complex socials.

Hmmm...  Interesting...

On Discworld I did this instead:
(roll
  (pattern "<indirect:any-living>")
  (pattern "<string>")
  (pattern "<string> <indirect:any-living>")
  (pattern "<indirect:any-living> <string>")
  (single
    (arguments
      (arguments around on the floor laughing,up into a paper to be
delivered,
                 up into a ball,over and plays dead,sideways,backwards,
                 professionally,like a spy through an imaginary door,
                 fearfully,tightly,slowly,a joint)
      (self "You roll $arg$.")
      (rest "$mcname$ rolls $arg$.")
    )
    (arguments
       (arguments eyes,own cigarette)
       (self "You roll your $arg$.")
       (rest "$mcname$ rolls $mposs$ $arg$.")
    )
  )
  (targeted
    (no-arguments
      (self   "You roll over $hcname$.")
      (target "$mcname$ rolls over you.")
      (rest  "$mcname$ rolls over $hcname$.")
    )
    (arguments
      (arguments  quickly,slowly,painfully,excitedly,lovingly,carefully)
      (self   "You roll $arg$ over $hcname$.")
      (target "$mcname$ rolls $arg$ over you.")
      (rest  "$mcname$ rolls $arg$ over $hcname$.")
    )
  )
)


Where it selects an output pattern based on the argument you give it.  It
also specifies the pattens used to trigger the soul.

Good luck!
David.



_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev




More information about the mud-dev-archive mailing list