Passing args to Spells Question

From: Chuck Carson (chuck@EDEN.COM)
Date: 06/20/98


I am trying to code a knock spell that works like this:

PC types: cast 'knock' <direction> or
          cast 'knock' <door alias>  (or have both work)

The spell will then do all the mumno jumbo to check that
direction and all that stuff.

I cannot figure out how to get this argument from the player. I
look at spells like summon and locate object that take pointers
to structs, but I just want to a take a raw argument that I can
strcmp for one of 6 directions and proceed from there.

Am I looking at this the right way and has anyone done anything
similiar? I was toying with the idea of adding a new spell type,
MAG_MISC_ROOM, but I thought I'd see if there was an easier way.

Thanks a bunch,

WC


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST