#scriptevent message dont work with applyDamage

1 messages · Page 1 of 1 (latest)

leaden lagoon
#

because the message is a string, not a number

cyan totem
leaden lagoon
#

you need a different approach

cyan totem
leaden lagoon
#

before you search for anything

#

do NOT use eval()

modest agate
#
entity.applyDamage(+msg || 0)
#

+msg tries to turn the variable into number, and when it's NaN it'll continue with || 0

cyan totem
#

thx