Subj : JS Commission? To : echicken From : Android8675 Date : Sun Jun 07 2020 10:44 am Re: JS Commission? By: echicken to Android8675 on Fri Jun 05 2020 09:39 pm > >> const save_dir = backslash(format('%s%04d-dfrotz', system.data_dir, > >> user.number)); > > My example would've resulted in something like: > > /sbbs/data/0001-dfrotz/ > > Maybe you want something like: > > const save_dir = backslash(format('%s/if/%s/%d', system.data_dir, story, > user.number); OK, so the first %s is replaced with /sbbs/data/, then if/, then story/, and 0001/ for /sbbs/data/if/zork1/0001/ I think I can figure that out, might swap story for the internal door code. I could maybe name the story file as the internal door code that way you just call the .js with no parameters needed, but that sounds like it breaks some code rule. > Looks like I forgot to tell dfrotz which story file to use, so the bbs.exec > statement should be more like: > > bbs.exec( > 'dfrotz' + > '-h ' + console.screen_rows + > '-f ' + (color ? 'ansi' : 'normal') + > '-R ' + save_dir + > story > ); Got that part. Thanks again. -A. -- Android8675@ShodansCore --- þ Synchronet þ Shodan's Core @ ShodansCore.com .