Thanks Dr Disaster
I have used that method for many custom items already actually (see the link to the weapons script thread above) eg...
Code: Select all
cloneObject{
name = "fetid_talons",
baseObject = "pit_gauntlets",
uiName = "Fetid Talons",
model = "assets/models/items/pit_gauntlets.fbx",
gfxAtlas = "mod_assets/textures/akroma_icon_atlas.tga",
gfxIndex = 56,
slot = "Gauntlets",
skill = "unarmed_combat",
requiredLevel = 20,
strength = 2,
protection = 2,
weight = 0.9,
damageType = "poison",
onEquipItem = function(champion, slot)
return specialWeaponScripts.fetidtalonsEquip(champion, slot)
end,
onUnequipItem = function(champion, slot)
return specialWeaponScripts.fetidtalonsUnequip(champion, slot)
end,
gameEffect = "Attack Power +10 when unarmed",
}
cloneObject{
name = "razor_claws",
baseObject = "pit_gauntlets",
uiName = "Razor Claws",
model = "assets/models/items/pit_gauntlets.fbx",
gfxAtlas = "mod_assets/textures/akroma_icon_atlas.tga",
gfxIndex = 66,
slot = "Gauntlets",
skill = "unarmed_combat",
requiredLevel = 35,
strength = 1,
protection = 3,
weight = 0.9,
onEquipItem = function(champion, slot)
return specialWeaponScripts.razorclawsEquip(champion, slot)
end,
onUnequipItem = function(champion, slot)
return specialWeaponScripts.fetidtalonsUnequip(champion, slot)
end,
gameEffect = "Attack Power +12 when unarmed",
}
And have the hooks call scripts which I posted in the first post.... but this way I can not increase attack power unless I add the trait aggressive or unarmed_combat (which the champ is likely to already have if the player decided on unarmed combat) ... and I do not want to add strength for the above mentioned reasons... and attack power can not be increased this way either
So, I used the onAttack hook, calling a script which checks for the monster in front of the party (Grimwolds old script) and for if the item in question is equipped.... then that calls the function to deal the extra damage and do all the cool things..... but for some reason the damagetile does not go off

I am not sure why, obviously an error of some form on my part....
Also looking for alternative methods to handle custom unarmed equipment....
Have you created some??
Thank you for replying though!
Akroma