From 827697813a2bec31f370408535f610d560eda09d Mon Sep 17 00:00:00 2001 From: AllyTally Date: Sun, 1 Jan 2023 01:14:12 -0400 Subject: [PATCH] add `ifcoins` command --- desktop_version/src/Script.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index f8e5701fd2..15edab75e1 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -1197,6 +1197,14 @@ void scriptclass::run(void) position--; } } + else if (words[0] == "ifcoins") + { + if (game.coins() >= ss_toi(words[1])) + { + load("custom_" + raw_words[2]); + position--; + } + } else if (words[0] == "hidecoordinates") { map.setexplored(ss_toi(words[1]), ss_toi(words[2]), false);