Re: [NEWBIE] Damage Message code

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 08/01/01


Timbrewolf wrote:
>
> >   istrlist (3, message,
> >             replace_string (dam_weapon[weapon_index].to_room,
> >                             attack_hit_text[w_type].singular,
> >                             attack_hit_text[w_type].plural),
> >             ", which ",
> >             dam_amount[amount_index].to_room);
>
> Mr. Hall's 'istrlist' is obviously the lib, the '3' states how many
> arguments are being passed, the 'message' is the name of the variable, and
> the rest is the variable to strcat together... As far as I can tell.

Look up the standard function sprintf().

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST