Dran Ryszard
Member
Hi, how do I make a table like that?
I tried to spawn monster X if the player has a skill level from X to Y, but I don't know how to make it in the table. With one value in [], it works, but like that, not, so any help?
Lua:
local monsterName = {
[{1,10}] = {name = "Orc"},
[{11,20}] = {name = "Orc Spearman"}
}
local monsterType = MonsterType(monsterName[player_skill_level].name)
I tried to spawn monster X if the player has a skill level from X to Y, but I don't know how to make it in the table. With one value in [], it works, but like that, not, so any help?