summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/util.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index dc893403f..01ed71056 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -524,6 +524,12 @@ function script party_expon {
return .@value[0];
}
+// Special rif for books
+// rif2(<menu_id>, <condition>, <text>)
+function script rif2 {
+ return rif( getarg(1) ,rif(@menu == getarg(0), "► ") + getarg(2));
+}
+
// Prepare Mana Stone
// mstone( lvl )