summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index ab7dac8e..cb25afbe 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -557,7 +557,15 @@ function script if_then_else {
function script misceffect {
// or SELF + something
- return specialeffect(getarg(0), AREA, getarg(1, strnpcinfo(0));
+ return specialeffect(getarg(0), AREA, getarg(1, strnpcinfo(0)));
+}
+
+function script fakenpcname {
+ if (getargcount() > 2)
+ setnpcdisplay(getarg(0), getarg(1), getarg(2));
+ else
+ setnpcdisplay(getarg(0), getarg(1));
+ return;
}
//////////////////////////////////////////////////////////////////////