I'm fairly new to scripting and I'm currently experimenting with creating a monster bossfight.
I understand that you can get a monster's HP through Monster:getHealth(). However, I'd like to create a script along the following lines:
Code: Select all
findEntity("monster")
if monster:getHealth("< 50") then
monster:destroy()I read that LUA does know the >/< symbols. Do I need to create a hook for this purpose?
Thanks in advance.