Itutorial
Legendary OT User
- Joined
- Dec 23, 2014
- Messages
- 2,427
- Solutions
- 68
- Reaction score
- 1,075
Anyone know why it isn't working? There are no errors. It just doesn't add the condition. I have used prints and know the code is executing as intended.
nvm early morning brain. I removed varstats from getMaxHealth/mana before.
LUA:
if potion.health then
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_SUBID, 3)
condition:setParameter(CONDITION_PARAM_STAT_MAXHITPOINTS, potion.health)
condition:setParameter(CONDITION_PARAM_TICKS, 1800 * 1000)
player:addCondition(condition)
end
Post automatically merged:
nvm early morning brain. I removed varstats from getMaxHealth/mana before.
Last edited: