This may sound like a noob question, but I've never messed with the immortality state before.
I'm making a helmet that allows a spell that has a 1% chance to grant immortality.
Also while on that note if I were to unequip the helmet that gave me that spell, does the spell become unlearned?
Any state will last however long you specify on the Removal Conditions part of the States tab. If you don't specify a number of turns, yes it will last the battle. If you don't specify any removal conditions at all, it will last forever, until a Recover All command is used on the character or they die (which would be hard considering it's an immortality state!).
Yes, the spell would be unavaiable after unequipping the helmet.
It depends on how you did that feature, because a skill can either be learned or be added. If added by an item it will be removed when the item is removed, but if learned instead of being added it will remain.
And the same with your other part: The state immortality give the feature "resist death". The state (if unchanged from default) is removed on battleend (see state database).
If you add resist death as a feature it will not be removed
Ok thanks for the explanation! The helmet works properly now 😀