Zyx wrote:Probably already asked dozen of times...
setMonsterStat (index, value)
getMonsterStat(index)
Allow to get/set any useful monster property. (provide an indexed list of interesting properties)
Hmmm...
>> setMonsterStat ("perturbed", true)
>> setMonsterStat ("merchant", true)
>> setMonsterStat ("blinded", true)
>> setMonsterStat ("party_ally", true)
This could have a lot of potential if there was support for altering the default AI actions; (like setting destination tiles and attack target IDs ~even giveItem()/takeItem() methods).
>> green_Ogre:setMonsterStat ("party_ally", true)
>> green_Ogre:giveItem("magic_anvil_of_Crom")
>> follow = {party.level, party.x, party.y}
>> green_Ogre:setMonsterStat ("destination", follow)