• Baja feasibility

    From Hausmaus@VERT/MIDNITE1 to Digital Man on Sat Nov 15 14:23:00 2003
    (NOTE: If anyone else besides DM has an answer to my questions, please let meãknow.)ããDM,ããI have a question for you concerning porting one of my doors from Pascal toãpossibly Baja. I'd like to try porting my door "The Magic Oracle" fromãPascal to Baja. In a short nutshell, here's what it does from start to finish:ããSees if INDEX.DAT is existant (a simple integer that tells how many lines ofãtext are in the answer file). If not, count ANSWERS.DAT (a text file) andãrecord in INDEX.DAT how many files there are.ãGet user's question.ãPick random number from 1 to INDEXãGet answer(index)ãShow answer(index)ããNow I know it sounds silly to be asking this, but is there random numberãcapabilities in Baja? I've been reading over the docs and I haven't seenãanything yet (or perhaps I skipped over it). I'd like to do it in Baja so itãwould be backwards-compatible with older versions of Sync, but if it can (orãshould be) written in JS, then I'll just wait until I can devote a little moreãtime to learning JS.ããIdeas or suggestions?ãã--HMãã---ã þ Synchronet þ Midnight's Hour BBS - midnightshour.orgã
  • From PistolGrip@VERT/WASTELND to Hausmaus on Sat Nov 15 18:41:00 2003
    Re: Baja feasibilityã By: Hausmaus to Digital Man on Sat Nov 15 2003 02:23 pmãã > Now I know it sounds silly to be asking this, but is there random numberã > capabilities in Baja? I've been reading over the docs and I haven't seenã > anything yet (or perhaps I skipped over it). I'd like to do it in Baja so iã > would be backwards-compatible with older versions of Sync, but if it can (orã > should be) written in JS, then I'll just wait until I can devote a little moã > time to learning JS.ããSure, just use the RANDOM function.ããRANDOM <int_var> <#>ã args: dest numã---------------------ãPlaces a random number between 0 and num-1 into dest.ããPistolGripã----------ãã---ã þ Synchronet þ WasteLand BBS þ telnet://wasteland-bbs.com ã
  • From Hausmaus@VERT/MIDNITE1 to PistolGrip on Sat Nov 15 21:06:00 2003
    Re: Baja feasibilityã By: PistolGrip to Hausmaus on Sat Nov 15 2003 06:41 pmãã > Sure, just use the RANDOM function.ããOkay, I feel like a dork now. ;)ããThanks.ãã--HMãã---ã þ Synchronet þ Midnight's Hour BBS - midnightshour.orgã
  • From Digital Man@VERT to Hausmaus on Mon Nov 17 14:07:37 2003
    Re: Baja feasibilityã By: Hausmaus to Digital Man on Sat Nov 15 2003 02:23 pmãã > Now I know it sounds silly to be asking this, but is there random numberã > capabilities in Baja? I've been reading over the docs and I haven't seenã > anything yet (or perhaps I skipped over it). I'd like to do it in Baja so iã > would be backwards-compatible with older versions of Sync, but if it can (orã > should be) written in JS, then I'll just wait until I can devote a little moã > time to learning JS.ã > ã > Ideas or suggestions?ããI would recommend writing it in JS instead. Both languages have a random numberãgeneration function in Synchronet.ãã digital manããSnapple "Real Fact" #29:ãOn average a human will spend up to 2 weeks kissing in his/her lifetime.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Hausmaus@VERT/MIDNITE1 to Digital Man on Mon Nov 17 21:32:00 2003
    ã > I would recommend writing it in JS instead. Both languages have a random numã > generation function in Synchronet.ããOkay, gotcha. I kinda figured you would say JS (just because it's more of aãcomplete language, I guess-not quite sure what I'm trying to say).ãã--HMããã---ã þ Synchronet þ Midnight's Hour BBS - midnightshour.orgã