• 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!

addDamageCondition with formula damaga

Paulix

Active Member
Joined
Sep 13, 2012
Messages
151
Solutions
8
Reaction score
36
Hello, im actually working on a weapon for my server, but i'm facing the following problem...

local combat = createCombatObject()

local condition = createConditionObject(CONDITION_POISON)
addDamageCondition(condition, ticks, times, damage)

setCombatCondition(combat, condition)

as the function addDamageCondition shows, it needs a specific value on "damage".
i would like to know if there is any way to define some kind of formula to calculate this damage, since im out of onUseWeapon function... for example leve+ml or something
i tried already to define condition inside onUseWeapon, but its not possible since you can only set it while script is loading...
 
Back
Top