summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-13 00:32:32 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-13 00:32:32 -0300
commit78aed570499e1606f6a207a883c9eea0f38007ae (patch)
treed707ecea67427e07144346e6eed1607f3ddd93fe /npc/functions/main.txt
parent1c6f15feae59ae309033c46e722dcd620e3be48a (diff)
downloadserverdata-78aed570499e1606f6a207a883c9eea0f38007ae.tar.gz
serverdata-78aed570499e1606f6a207a883c9eea0f38007ae.tar.bz2
serverdata-78aed570499e1606f6a207a883c9eea0f38007ae.tar.xz
serverdata-78aed570499e1606f6a207a883c9eea0f38007ae.zip
Add the missing Doomsday utilities. It requires a near-full rewrite, though.
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index bf69551e..f9ec439d 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -688,6 +688,11 @@ function script misceffect {
return specialeffect(getarg(0), AREA, getarg(1, strnpcinfo(0)));
}
+function script selfeffect {
+ // or SELF + something
+ return specialeffect(getarg(0), SELF, getarg(1, strnpcinfo(0)));
+}
+
function script fakenpcname {
if (getargcount() > 2)
setnpcdisplay(getarg(0), getarg(1), getarg(2));