• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Spell that increase elemental defence

Icaraii

Well-Known Member
Joined
Jan 5, 2020
Messages
469
Solutions
1
Reaction score
58
TFS 1.3
Hello guys, I think the title says it all,

I would like a spell, that when someone cast it, it will increase for example, the caster fire resistance by 5% for the next 10 seconds.
 
Last edited:
Solution
X
This is literally the same thing as your other thread, but with different words. xP

Fire Resistance = negating a # or % of fire damage

-> 50% less damage to fire attacks
-> caster fire resistance by 5%

Both of these things are considered fire resistance, but just worded differently.

--
So just use same spell as before, but modify for 10 seconds.
And use same onHealthChange script as before but change

from
LUA:
primaryDamage = primaryDamage / 2
secondaryDamage = secondaryDamage / 2
to
LUA:
primaryDamage = primaryDamage * 0.95
secondaryDamage = secondaryDamage * 0.95
This is literally the same thing as your other thread, but with different words. xP

Fire Resistance = negating a # or % of fire damage

-> 50% less damage to fire attacks
-> caster fire resistance by 5%

Both of these things are considered fire resistance, but just worded differently.

--
So just use same spell as before, but modify for 10 seconds.
And use same onHealthChange script as before but change

from
LUA:
primaryDamage = primaryDamage / 2
secondaryDamage = secondaryDamage / 2
to
LUA:
primaryDamage = primaryDamage * 0.95
secondaryDamage = secondaryDamage * 0.95
 
Last edited by a moderator:
Solution
ahh ok, I miss placed the words, and you right, they are the same, sorry for doble topic and thanks for the answer
 
Back
Top