> Hello Anarchangel,
> 
> It's simple.
> 
> cold 20
> poison -20
> 
> and so on. If mob have a normal resist, just dont write it to area
> file.
> 
> 

I appreciate the response.
I'm not so much worried about writing it out and reading it in.  Let me
use the nosummon command as an example.

      if (IS_SET(ch->imm_flags,IMM_SUMMON))
      {
        send_to_char("You are no longer immune to summon.\n\r",ch);
        REMOVE_BIT(ch->imm_flags,IMM_SUMMON);
      }

Since I'd be doing away with immunities (and using 100% resistence in its
place), we'll need to slightly modify it to suit our needs:

      if (IS_SET(ch->res_flags,RES_SUMMON))

Now, my problem is that there would be no more ch->res_flags.  It'd have
to be something like if (ch->res_immune == 100)
So there would be ch->res_immune, ch->res_metal, ch->res_energy, etc.  See
what I mean?  I want to avoid all that if I can.  I know I can simply not
load it (and save it) if it's 0, but this method still seems less than
streamlined.



Reply via email to