So I have the infamous clone bug in the Sher'Tul Fortress, and this means I can't access my stash. I teleported out with the change level command, but I'd like to be able to come back. Can anyone tell me how to use LUA or debug mode to kill my clone?
Edit: I'd like to thank Donkatsu for this suggestion.
How to kill an NPC in LUA
Moderator: Moderator
Re: How to kill an NPC in LUA
cnt+shift+alt + left click will kill an actor I believe.
To do it with the console you need to find the actor's x, y coordinates (they're displayed on the tooltip in debug mode) and then you do...
substitute the x, y for the actual numbers (15, 4 for example) and then type
I think anyway, just working off the top of my head.
To do it with the console you need to find the actor's x, y coordinates (they're displayed on the tooltip in debug mode) and then you do...
Code: Select all
target = game.level.map(x, y, Map.ACTOR)Code: Select all
target:die(target)Code: Select all
target = nilRe: How to kill an NPC in LUA
Thanks! Sadly, before seeing your response I had worked out an in-game way to kill the clone, which broke the game in new and exciting ways (see also: the bugs forum).
I'm primarily just amused at this point.
I'm primarily just amused at this point.