

same error
Can you post the non working cloneObject definition? Have you defined the name or the class properties for the components?cromcrom wrote:cough cough ahem, JKos ? It still doesn't![]()
![]()
same error
Code: Select all
cloneObject{ name = "crom_iron_chunks",
baseObject = "rock",
components = {
{
uiName = "Iron chunks",
weight = 0.4,
description = "Bits of iron ore. Used in crafting."
},
}
}
cloneObject{ name = "crom_iron_ore",
baseObject = "rock",
components = {
{
uiName = "Iron ore",
weight = 0.8,
description = "Iron Ore. Used in crafting."
},
}
}
what do you mean ?Have you defined the name or the class properties for the components?
Code: Select all
cloneObject{ name = "crom_iron_chunks",
baseObject = "rock",
components = {
{
uiName = "Iron chunks",
weight = 0.4,
description = "Bits of iron ore. Used in crafting.",
class="Item"
},
}
}
cloneObject{ name = "crom_iron_ore",
baseObject = "rock",
components = {
{
uiName = "Iron ore",
weight = 0.8,
description = "Iron Ore. Used in crafting.",
class="Item"
},
}
}
Code: Select all
modifyObjects{
filter = {
hasComponents = {'item','meleeattack'}
},
components = {
{
name = 'meleeattack',
onHitMonster = function(self, monster, tside, damage, champion)
print(champion:getName(),'hits',monster.go.id,'with',self.go.name,'from',tside,'dealing damage:',damage)
end
}
}
}