Subj : Door Scores... To : echicken From : Android8675 Date : Wed Apr 11 2018 03:23 pm Re: Door Scores... By: echicken to Android8675 on Tue Apr 10 2018 09:43 pm An>> So it'll first see if there's even an entry then ask if the player An>> wants to display the score file? I'm tinkering with it now, will An>> post when finished. ec> Yep, you've got the right idea. You could also check if the score file ec> exists / if the HTTP request succeeds (though this might cause a delay) ec> before bothering the user at all. If BBSLink, DoorParty, etc. all publish ec> score files it might be worth turning this into a common module. function launch(code) { bbs.exec_xtrn(code); console.crlf(); var f = new File(system.ctrl_dir + 'scores.ini'); f.open('r'); var ini = f.iniGetObject(ScoreFiles); f.close(); if (ini[code]) { console.clear(BG_BLACKIGHTGRAY); if (console.yesno('Display score file')) { if (ini[code].search(/^http/) > -1) { const http = new HTTPRequest(); const ans = http.Get(ini[code]); console.putmsg(ans); } else { console.printfile(ini[code]); } console.pause(); } } } So if there's an entry in the .ini [ScoreFiles] it'll prompt, otherwise it just moves on. Still testing. Next, multiple files, check that file/url exists before prompting. I'm going to move it all to a module once it's working because I want to turn this into a door launcher. User starts Game Display opening .asc file (History, or whatever) run game Display score files if any after game Going to expand Run Game to an actual Interactive Fiction Interpreter assuming I can find open source code that'll do what I want it too. -- Android8675@ShodansCore .... The public is wonderfully tolerant. It forgives everything except genius. --- þ Synchronet þ Shodan's Core @ ShodansCore.com .