Re: Two-hand limits

From: Baktor Silvanti (baktor@BEDFORD.NET)
Date: 12/05/97


> Maybe I didn't make myself clear enough, if you are using something in
>each hand then you aren't allowed to wield or hold anything else.  So if
>you are wielding a sword and holding a torch, you won't be able to use a
>shield or hold a wand or anything else.


this should be simple.  Just check if a player is already holding something
already...if so, don't allow them to hold or use whatever object you think
should be two handed...  ie.  you have a two-handed sword and wish to wield it.

1.  check if holding something in hand.  if no, proceed
2.  check if using shield as this sword and shield prolly don't mix. if no,
proceed

3.  check for any other place that may conflict (lights? wands?). if no
proceed.

4. let player wield object.


NOW then, many of you are going to say, "ok, simple, but easy to fool".  yeah,
this allows somebody to remove everything, wield the big beast, then wear all
the assesories.  That is why I'd implement a new obj type TWO_HAND.  and have
the shield, hold, and wield positions check for TWO_HAND before allowing player
to use something else.  Code that does this i think already exists in
somebody's code page, look around, otherwise, it sounds like a simple project
:P


baktor


     +------------------------------------------------------------+
     | 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/08/00 PST