diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index cf7cc76a67..42284054d2 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -1230,6 +1230,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);