Jump to content

resistance field in eff structs


Avenger

Recommended Posts

Posted

This misinformation kept me hanging for years, but i think it is time to reach consensus.

 

Resistance

 

* 0=Nonmagical

* 1=Dispel/Not Bypass

* 2=Not Dispel/Not Bypass <---- i think this one isn't good. Resistance type 2 is also bypassing resistance.

* 3=Dispel/Bypass

 

In Taimon's notes:

resistance:

if (eff.0x058 & 0x2 == 0)

if (cre.res > rand6)

if (eff.0x058 & 0x1)

-> resisted

 

Shows clearly that only resistance = 1 checks creature resistance.

Posted

This is correct, except that Bit 1 is redundant unless Bit 0 is also set (if no bits are set, the behavior is also to ignore resistance).

 

You might be able to just massage its labeling:

Bit 0: Can be dispelled

Bit 1: ... and ignore resistance

 

But it still might not be clear that no bits doesn't mean No dispel/no bypass, but No dispel/bypass.

Posted

I would just put:

0=Nonmagical (No Dispel/Bypass)

1=Dispel/No Bypass

2=No Dispel/Bypass

3=Dispel/Bypass

Assuming that's essentially correct.
Posted

in EFF V2 file format

 

The timing method is a word. 0x1000 means Absolute Duration (the duration field of simple 0 was already converted to gametime+duration*15).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...