• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Resistance going up at levels

thrillba

Member
I know this is probably simple, but whereas I am a network admin - programming completely escapes me.

I am creating a new race which has fire resistance.

I want him to have resist 5 at the start but for the resistance to go up at certain levels

How do I do this in the editor to automatically happen?

I have added the resistance but just do not know how to make it go up at the desired level.
 
Take a look at the half fiend or half celestial template for ideas on adding progressively better resistance.

You'll need to analyse the scripts for it's application in your own custom data. Not near HL at the moment so can't provide example.

Celestial Creature Defenses
Hit Dice Resist Cold, Acid, and Electricity DR
1–4 5 —
5–10 10 5/evil
11+ 15 10/evil
 
Last edited:
creature or monster

I cannot find a half fiend or celestial anywhere. I also cannot find a monster or creature tab anywhere.

What am I missing?
 
Copied directly from the Celestial Template in the editor

Post levels 10000


~ Set up the amount of damage we resist
var damage as number
var resist as number
if (herofield[tHitDice].value < 5) then
damage = 5
elseif (herofield[tHitDice].value < 10) then
damage = 10
resist = 5
else
damage = 15
resist = 10
endif

#applyresist[xDamRsAcid, damage]
#applyresist[xDamRsCold, damage]
#applyresist[xDamRsElec, damage]

~ Set up our damage reduction
#applydr[xDamRdEvil, resist]


Hope this helps!
 
Back
Top