I was able to get the effect I want with the script below. I created a new tunic dat with sprits that are semi transparent. also had to add a check to my tunic item so if you changed variants while invisible the spirits would update to the new transparent color. I though about going with a new sprite set altogether like a blacked out ninja set or something... maybe in the future.
local game = item:get_game()
local map = item:get_map()
local hero = map:get_hero()
local tunic_level = game:get_ability("tunic")
local isInvisible = game:get_value("hero_invisible")
if isInvisible == true then
game:set_value("hero_invisible", false)
hero:set_tunic_sprite_id("hero/tunic" .. tunic_level)
else
game:set_value("hero_invisible", true)
hero:set_tunic_sprite_id("hero/item/invisibility/tunic" .. tunic_level)
end
local game = item:get_game()
local map = item:get_map()
local hero = map:get_hero()
local tunic_level = game:get_ability("tunic")
local isInvisible = game:get_value("hero_invisible")
if isInvisible == true then
game:set_value("hero_invisible", false)
hero:set_tunic_sprite_id("hero/tunic" .. tunic_level)
else
game:set_value("hero_invisible", true)
hero:set_tunic_sprite_id("hero/item/invisibility/tunic" .. tunic_level)
end