I can't test it right now either but I'll give that a go and see what happens. Thank you.
[Edit] Meh, I found time and... I can't get it to work. I tried with a copy of your code and the following (copied and adapted from the Wiki):
Code: Select all
actor PoisonProtector : PowerProtection
{
damagefactor "PoisonCloud", 0.0
inventory.icon "MEGAA0"
}
actor PoisonProtection : PowerupGiver
{
inventory.pickupmessage "Mook"
powerup.color Grey4 0.25
inventory.maxamount 0
inventory.usesound "misc/chat"
powerup.type PoisonProtector
powerup.duration 1000
translation "128:143=96:103"
+AUTOACTIVATE
+INVENTORY.FANCYPICKUPSOUND
states
{
Spawn:
MEGA ABCD 4 bright
loop
}
}
I can summon the item, I can pick it up, I get the message to confirm that I have done so and I can see a megasphere in the top right of my screen but if I then summon a poisoncloud, I still take damage from it.
