I'm making an RPG map atm. This map uses equipment for the weapon on each hero. Problem is, there is an ability on one of my heroes that causes the weapon to disappear from the hero's inventory after a few uses (Seems random) I've done several debugging tests disabling and re-enabling different things and the only thing that is consistent is that the weapon only disappears when the ability does damage to something (I.E. If i cast it 15 times into open space the weapon doesn't disappear.)
The ability:
It's an AOE ability that does 50 damage within an area of 1.5 using 50 energy. It creates 3 effects (visual not functional) when it hits.
Is there any specific thing i should look out for that might be causing this? it's got me at my whits end here. This RPG has item drops and rare items as well as an economy that just breaks if your rare weapon disappears when you use an ability. Driving me insane!
That's exactly what i thought but i did a test where i just casted the ability next to myself and the weapon never disappeared. I'll take a look though.
Also, the unit for the weapon is invulnerable and the search filters exclude invulnerable.
Nope. I flagged the search effect for both levels of the ability to exclude items and it didnt work. The weapon still disappears.
It also seems that it's removing objects from the hero's inventory as well.
Alright, so it is an issue of the idem being damaged by the ability but that doesn't make any sense. I have the item flagged as invulnerable and Invulnerable and Item are both excluded on the search. Why would it be damaging it?
A pseudo fix i have in place right now is to set the life of the item to 100000 and the armor to 9999. It doesn't die but that is messy. Any other suggestions?
I think I fixed it, I didn't have any filters set on the Damage effect. Only the search area. Finicky -.-
I'm making an RPG map atm. This map uses equipment for the weapon on each hero. Problem is, there is an ability on one of my heroes that causes the weapon to disappear from the hero's inventory after a few uses (Seems random) I've done several debugging tests disabling and re-enabling different things and the only thing that is consistent is that the weapon only disappears when the ability does damage to something (I.E. If i cast it 15 times into open space the weapon doesn't disappear.)
The ability: It's an AOE ability that does 50 damage within an area of 1.5 using 50 energy. It creates 3 effects (visual not functional) when it hits.
Is there any specific thing i should look out for that might be causing this? it's got me at my whits end here. This RPG has item drops and rare items as well as an economy that just breaks if your rare weapon disappears when you use an ability. Driving me insane!
Any ideas?
Make sure your Damage effect's filters are setup properly. EXCLUDE Items. Your AoE ability is likely hitting/targetting the equipment.
@BorgDragon: Go
That's exactly what i thought but i did a test where i just casted the ability next to myself and the weapon never disappeared. I'll take a look though.
Also, the unit for the weapon is invulnerable and the search filters exclude invulnerable.
Nope. I flagged the search effect for both levels of the ability to exclude items and it didnt work. The weapon still disappears.
It also seems that it's removing objects from the hero's inventory as well.
Alright, so it is an issue of the idem being damaged by the ability but that doesn't make any sense. I have the item flagged as invulnerable and Invulnerable and Item are both excluded on the search. Why would it be damaging it?
A pseudo fix i have in place right now is to set the life of the item to 100000 and the armor to 9999. It doesn't die but that is messy. Any other suggestions?
I think I fixed it, I didn't have any filters set on the Damage effect. Only the search area. Finicky -.-