Aeronx
Intermediate OT User
- Joined
- Dec 17, 2015
- Messages
- 736
- Solutions
- 9
- Reaction score
- 121
Hello otlanders!
I am trying to learn a bit more here, so maybe you can instruct me.
I have started working with :gmatch and for easy tests I tested it with monster names.
the targeted monster has the name "Monster 1".
But i get error in "tonumber (value expected)", so i guess, my gmatch is not correct. What am I doing wrong?
Thank you for your time!
I am trying to learn a bit more here, so maybe you can instruct me.
I have started working with :gmatch and for easy tests I tested it with monster names.
Lua:
local desc = target:getName():gmatch('%d')
local lvl = tonumber(desc())
print(lvl)
the targeted monster has the name "Monster 1".
But i get error in "tonumber (value expected)", so i guess, my gmatch is not correct. What am I doing wrong?
Thank you for your time!