From 1dab71476e7fa493966b8e389e3a8c9f3a3616ee Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 14 Jan 2019 16:00:01 -0200 Subject: Introduce a new helper for main storyline: msObjective(). --- npc/functions/main.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 2d4d3a11a..05ec73fc1 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -266,6 +266,16 @@ function script VarDiffValue { return (getarg(0) < .@val && getarg(1) >= .@val); } +// Function meant to be used by Main Storyline Quest +// msObjective ( condition , message ) +function script msObjective { + if (getarg(0)) + mesc getarg(1), 2; + else + mesc getarg(1), 9; + return; +} + function script getmap { if (getmapxy(.@mapName$, .@xpos, .@ypos, getarg(0,0)) != 0) return false; -- cgit v1.2.3-60-g2f50