kts.ZombifyActor

Name

kts.ZombifyActor – turn the current actor into a monster

Synopsis

kts.ZombifyActor(monster_type)

Description

If the current actor (as given by cxt.actor) is a knight, they are turned into a monster of the given MonsterType.

This counts as "killing" the knight, and any items they were carrying are dropped. No corpse is created.

Return Value

None.

Notes

Even though the function is called "Zombify", this can actually be used to turn knights into any kind of monster, not just zombies.

Only knights can be affected by this function – other types of creatures are immune.

Knights are affected even if they have Invulnerability.

Examples

This is one of the possible pentagram or scroll effects; see magic.lua.

See Also

The cxt table

kts.ZombifyTarget