Re: Help with Idea

From: Daniel Koepke (dkoepke@california.com)
Date: 02/12/97


On Mon, 10 Feb 1997, Shaw J wrote:

> I have two ideas I want to add, but I need help... maybe just some
> advise for me and my coders.
> 
> First I want to modify the timing in battle. Correct me if I'm wrong but
> you can do many actions of some and only one of others... like if you
> kick that is your action, but you can get 5 breads from your bag between
> rounds.  Now what I want to modify is with potions.  I do not want the
> potions to count as a one use action between rounds, so one can quaff 3
> healing potions and kick between one round, or quaff potions until the
> time runs out between the round.  I hope this makes sense

The above is wrong.  Most skills delay combat for a particular person
(eg., that person doesn't hit during the delay) for one or two combat
rounds, in which you can type commands but they won't execute until
after the delay.

> Second is just cosmetic... below the name and title of a character
> someone sees in a room will be added features, the first one I want to
> do is the affect of infravsion, it is easier to show you:
> 
> Talok the Ruler of All stands here.
>      ...his eyes strangely glow red!
> 
> This added line would happen if Talok is under the affect of the
> infravision spell...

Look at the existing code in act.informative.c, function list_one_char().
There you'll see (in two places), something like:

  if (IS_AFFECTED(i, AFF_SANCTUARY))
    act("...$e glows with a bright light!", FALSE, i, 0, ch, TO_VICT);

Copy this above code, replacing AFF_SANCTUARY with AFF_INFRAVISION and
replacing the message with something like "...$s eyes glow red!". 
Remember that there is *two* places in which this should be added, one
of which is right at the end, the other is about the middle of the
function.


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
|    Or send 'info circle' to majordomo@cspo.queensu.ca     |
+-----------------------------------------------------------+



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