Re: Passing args to Spells Question

From: Kyle Goodwin (vbmasta@EARTHLINK.NET)
Date: 06/20/98


Why don't you make this a command?  i.e. knock <door>
If you want it to be a spell use a MAG_MANUAL with the spello
ignoring the argumant and parse it however you like.  Look at the
ASPELL(...)
declarations for an example.

Kyle Goodwin

---------------------------------------------------------------------------
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)

(...)

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.


     +------------------------------------------------------------+
     | 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