I have added some custom variables to monster files, like (just an example)
and am currently trying to figure out the best way to fetch those variables for various events like onKill/onDeath/onHealthChange, and the best thing i came up with was on server startup going through all monster files and using line:match to find that line then storing them as a table like:
is there any better way to store/load things like this other than going through every single monster file on startup and storing it like this?
Code:
<myown zone="1" type="2">
Code:
monsters[monsterName]["zone"] = 1
is there any better way to store/load things like this other than going through every single monster file on startup and storing it like this?