[CIRCLE][NEWBIE] two_arguments

From: Jason Benzin (benz0020@cs.fredonia.edu)
Date: 12/18/96

  Thanx for the help on spells guys, got them workin nicely now.

There is a spell I made called 'force bolt'.  Right now when you
hit a mob/char you inflict damage and try to push them into
a random direction using do_simple_move.  I'd like the user
to be able to say what direction to push the mob/char into.

ie    cast 'force bolt' orc north

In order to do this I need to use the two_arguments function, I assume.

Just a s atets I tried this, and it complies, yet no ouput.

  char argument[MAX_INPUT_LENGTH];
  char arg1[MAX_INPUT_LENGTH];
  char arg2[MAX_INPUT_LENGTH];
  two_arguments(argument, arg1, arg2 );
  act(argument, TRUE, ch, 0, 0, TO_ROOM);
  act(arg1, TRUE, ch, 0, 0, TO_ROOM);
  act(arg2, TRUE, ch, 0, 0, TO_ROOM);

Any help on how to get this or any arguments to work would
be appreciated.. thanx.

-Jason Benzin
                    (@ @)  

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |

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