View Full Version : Immunity?

11-02-2011, 12:56 PM
Shadow, I saw that the keyword Immunity is used in MonsterArcheTypes.gdb to prevent SlipperySurface from acting on the Ice Elemental. Is there anywhere else where I can use that keyword? I would like to, for example, make it so that above a certain threshold of Cold Resistance, the chance of being affected by Frost is 0. To do that I would make a skill that goes up with Cold Resistance and stick it in my hidden tree and it would have 'Immunity StatusEffectFrost'. The question is if that's possible.

BTW The ideal way to do this would be to have a way of reducing the percentage that a certain effect happens (when StatusEffectChance is used). It would have something like

ReduceChanceEffect StatusEffectFrost
ReduceChanceAmount 0.1

for a skill, where each level of the skill would reduce the chance by 10%.

For mobs, it would be more like
ReduceChanceEffect StatusEffectFrost
ReduceChanceAmount 0.01
ReduceChanceAttribute ResistanceCold

But anyway, can I use 'Immunity StatusEffectFrost' in a skill or status effect?

11-02-2011, 03:01 PM
You should be able to use Immunity with any status effect for monsters or npcs.

11-03-2011, 11:22 AM
How hard would it be to extend Immunity to the PC as well? Just to illustrate the applications of that, being on fire could also make you immune to Frost.

EDIT: After some experimentation, it seems like Immunity doesn't work in StatusEffects even on monsters.

11-18-2011, 11:30 AM
I'll look at both.

11-18-2011, 01:03 PM
Thanks very much. This is a lower priority request though.

My highest priority requests would be to add a 'DirectMult' keyword (just like 'Mult') that affects negative multipliers directly (ie. StatDirectMultAttack -0.5 would really reduce attack by by 50%) rather than via the formula 1/(1-%), as detailed in another thread here.

The next request would be to allow StandStillToCast 1 to work on regular attack skills (like base bow attacks), though it sounds like this one's a lot of work.

Third in line would be to externalize the Town Modifiers for SemiHardCoreVitLostPerDeath X, HonorableDeathLoseLife 0/1 and HonorableDeathVitLostPerTown X.

Fourth would be this request for Immunities.

Fifth would be to add a command to play animations backwards so doors can close smoothly. But that's a really minor cosmetic request -- I just think the game looks less polished than it can without it.