Yes, I was planning to add a command like "check game exists" to work around this problem.
Checking for both .rpg and .rpgdir is a good idea too. On 2 November 2016 at 04:26, James Paige <[email protected]> wrote: > I was looking at the run game implementation. > > I saw this comment in the source: > > PRIVATE SUB run_game () > ' Not being able to load the game should always show an error (use > serrError for everything) > > I would definitely like to have the option of running a game with the > error silenced. > > For example, At the end of Quest.rpg I might have code that runs > Quest2.rpg even though the sequel does not even exist yet. > > One way to get this effect would be an argument to run game to make it > silent. (I don't really like this one.) > > Alternatively another command "run game if exists" that just does the same > thing without the error > > Finally, maybe an "is other game available($0="othergame")" check that > returns a boolean. > > Next, I was wondering if you do: > > run game($0="gamename.rpg") > > and gamename.rpg does not exist, should it automatically check for > "gamename.rpgdir" and nice-versa > > --- > James > > _______________________________________________ > Ohrrpgce mailing list > [email protected] > http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org > >
_______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
