Spawner and leveled monsters
Posted: Sun Mar 31, 2013 8:02 pm
Basically I had a request come in for my mod to make leveled creatures. I have basically figured out how to do it.
It looks something like this.
It looks something like this.
Code: Select all
function LevelMonsters()
if party:getChampion(1)::getLevel() > 10
Spawner:setSpawnedEntity(name)
end
if party:getChampion(1)::getLevel() > 20
end
end
[code]
That would work, but I would need to already know what every single spawner in the game has already.
What I would like to do is put a for loop around this Spawner(i):setSpawnedEntity(name+"hard"), but for that I would need local name = Spawner(i):getSpawnedEntity().
But that does not exist according to the scripting reference here for the spanwer. http://www.grimrock.net/modding/scripting-reference/
So any ideas, or could I turn this into a request for a Spawner:getSpawnedEntity()?
The reason I don't want to do it the other way is because my dungeon is bigger than the original grimrock. And they had a team working on it. It is just me alone over here. I should have mentioned earlier I was planning to edit monsters.lua to make 2 harder versions of every monster with (oldname)+hard or (oldname)+veryhard.
Yeah I hear you Komag, I have made custom monsters before, if the armor level gets too high it stops making sense for the player. I would have to consider leveling the weapons and spells and other items too.