*I suppose it depends upon what the designer intends. It's sure a lot easier though.

PartyComponent:isCarrying(string) returns true even for disabled champions
Code: Select all
-- this is added to an item, an armor
onEquipItem=function(self,champion,slot)
if slot==4 then
champion:trainSkill("water_magic", 1,false)
champion:trainSkill("earth_magic", 1,false)
champion:trainSkill("air_magic", 1,false)
champion:trainSkill("fire_magic", 1,false)
playSound("level_up")
end
end,
onUnequipItem=function(self,champion,slot)
if slot==4 then
champion:trainSkill("water_magic", -1,false)
champion:trainSkill("earth_magic", -1,false)
champion:trainSkill("air_magic", -1,false)
champion:trainSkill("fire_magic", -1,false)
end
end]]
Thank yor for reply!
It's definitely not the sparse flag.SPARSE:
Items can be picked up and dropped through sparse doors. Monsters can also see through sparse doors, and the Poison Cloud spell can be cast through sparse doors.