• 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 [TFS 1.3] How to make condition damage increase over time

  • Thread starter Thread starter Evil Puncker
  • Start date Start date
E

Evil Puncker

Guest
Hi everyone, currently I have the following:

LUA:
local cursed = Condition(CONDITION_CURSED)
cursed:setParameter(CONDITION_PARAM_DELAYED, true) -- condition will delay the first damage from when it's added
cursed:setParameter(CONDITION_PARAM_MINVALUE, -800) -- minimum damage the condition can do at total
cursed:setParameter(CONDITION_PARAM_MAXVALUE, -1200) -- maximum damage
cursed:setParameter(CONDITION_PARAM_STARTVALUE, -1) -- the damage the condition will do on the first hit
cursed:setParameter(CONDITION_PARAM_TICKINTERVAL, 4000) -- delay between damages
cursed:setParameter(CONDITION_PARAM_FORCEUPDATE, true) -- re-update condition when adding it(ie. min/max value)

but it only gives a ton of "1 damage" over time, I need it to give increasing damage over time, like cursing does
 
Hi everyone, currently I have the following:

LUA:
local cursed = Condition(CONDITION_CURSED)
cursed:setParameter(CONDITION_PARAM_DELAYED, true) -- condition will delay the first damage from when it's added
cursed:setParameter(CONDITION_PARAM_MINVALUE, -800) -- minimum damage the condition can do at total
cursed:setParameter(CONDITION_PARAM_MAXVALUE, -1200) -- maximum damage
cursed:setParameter(CONDITION_PARAM_STARTVALUE, -1) -- the damage the condition will do on the first hit
cursed:setParameter(CONDITION_PARAM_TICKINTERVAL, 4000) -- delay between damages
cursed:setParameter(CONDITION_PARAM_FORCEUPDATE, true) -- re-update condition when adding it(ie. min/max value)

but it only gives a ton of "1 damage" over time, I need it to give increasing damage over time, like cursing does
You should play with these three values:
LUA:
cursed:setParameter(CONDITION_PARAM_MINVALUE, -800) -- minimum damage the condition can do at total
cursed:setParameter(CONDITION_PARAM_MAXVALUE, -1200) -- maximum damage
cursed:setParameter(CONDITION_PARAM_STARTVALUE, -1) -- the damage the condition will do on the first hit
For example, remove the '-'.

Sincerely,
Ralumbi(Caleb)
 
Back
Top