kts.DispelMagic – trigger Dispel Magic effect
kts.DispelMagic(message)
This function instantly removes most magical effects from all knights currently in the dungeon.
Specifically, the following effects are all cancelled:
The message
string is also displayed for the current actor (cxt.actor
), if any, as if kts.FlashMessage(message)
had been called.
None.
Note that magic is dispelled for all knights, not just the current actor!
In the standard Knights data files, this is one of the possible scroll effects: see magic.lua.