diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/main.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 5fb9e9e7..89b2cff7 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -551,6 +551,10 @@ function script isat { return isin(getarg(0), getarg(1), getarg(2), 0); } +function script if_then_else { + return (getarg(0) ? getarg(1) : getarg(2)); +} + ////////////////////////////////////////////////////////////////////// // maptimer("<map>", <tick>, "<npc>::<event>") function script maptimer { |