On Tuesday, February 03, 1998 1:00 PM, Angus Mezick
[SMTP:angus@EDGIL.CCMAIL.COMPUSERVE.COM] wrote:
> whoops, missed the point
> i was talking about an AFF2_NAME and AFF_NAME and the fact that
> affect_modify only works on AFF_NAME's vector. Two flags at once is
> easy, check out the bless spell.
> --Angus
>
Oops.. just tried to reply and ended up sending a blank reply to everyone.
*blush*
Why not just make a function and be done with it? I doubt there's really
that much a timesavings when it's all said and done. Then you can hide your
multiple variable implementation in a struct, have a routine that figures
out the variable crossover at 32 bits for you and simplify the code at the
same time.
I did it and I like it. I don't have to watch every processor cycle, so
YMMV.
--Mallory
>
> ______________________________ Forward Header
> __________________________________
> Subject: Re: affect_join and more than one AFF_ vector
> Author: INTERNET:CIRCLE@POST.QUEENSU.CA at CSERVE
> Date: 2/3/98 1:32 PM
>
> On Tue, 3 Feb 1998, Angus Mezick wrote:
>
> > has anyone come up with a way to use more that one AFF_ vector with
> > affect join? I am trying to avoid modifying the affected_types
> > struct
> > that is saved in the pfile but I don't know if i will get away with
> > it. What did other people do to get around this problem?
>
> You can use two AFF_ flags at once, with some side effects.
>
> af.type = SPELL_POISON;
> af.duration = amount * 3;
> af.modifier = 0;
> af.location = APPLY_NONE;
> af.bitvector = AFF_POISON | AFF_SICKY;
> affect_join(ch, &af, FALSE, FALSE, FALSE, FALSE);
>
> Of course, you cannot get rid of one flag without the other going too...
>
> This was on the mailing list a short while ago, try the queensu mailing
> archive.
>
> --
> George Greer - Me@Null.net
>
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
> +------------------------------------------------------------+
+------------------------------------------------------------+
| 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