<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">textadventures.co.uk Forums - Squiffy Forum</title><subtitle type="text">All posts to the Squiffy Forum forum on textadventures.co.uk</subtitle><id>http://textadventures.co.uk/forum/squiffy/feed</id><updated>2021-01-03T19:21:15Z</updated><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy" /><link rel="self" type="application/atom+xml" href="http://textadventures.co.uk/forum/squiffy/feed" /><entry><id>http://textadventures.co.uk/forum/squiffy/topic/s7obpizrv02ipjcbjd1e3w/js-arrays-in-squiffy#1aaff333-06a9-4172-87d9-0c951953547b</id><title type="text">JS arrays in squiffy</title><published>2021-01-03T15:47:35Z</published><updated>2021-01-03T15:47:35Z</updated><author><name>Bluevoss</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/s7obpizrv02ipjcbjd1e3w/js-arrays-in-squiffy#1aaff333-06a9-4172-87d9-0c951953547b" /><content type="html">&lt;p&gt;Taking Var out of this code causes it to crash in Squiffy.&lt;/p&gt;
&lt;p&gt;Actually, last night I poked around some more and found a conversation where someone talked about the same thing - JS variables and arrays do not cross into new sections - they are local to that section.&lt;/p&gt;
&lt;p&gt;If you want to jump a variable to another section, you have to carry it across in a squiffy variable, using Set and Get commands. Which means arrays are out.&lt;/p&gt;
&lt;p&gt;Which is okay. Last night in bed, I thought about it and figured a way to do it with just squiffy variables. I'm not sure how keen I am with this -an array would have been perfect. But you do what you can do with this application, I guess.&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/s7obpizrv02ipjcbjd1e3w/js-arrays-in-squiffy#9ffd7d92-ba29-49b3-a498-4de2e9e87c15</id><title type="text">JS arrays in squiffy</title><published>2021-01-03T06:34:39Z</published><updated>2021-01-03T06:34:39Z</updated><author><name>mrangel</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/s7obpizrv02ipjcbjd1e3w/js-arrays-in-squiffy#9ffd7d92-ba29-49b3-a498-4de2e9e87c15" /><content type="html">&lt;p&gt;Declaring a variable with &lt;code&gt;var&lt;/code&gt; is optional, and makes it local to the current function.&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/s7obpizrv02ipjcbjd1e3w/js-arrays-in-squiffy#a49f088a-f1a5-4d8f-b887-6ce36a92d798</id><title type="text">JS arrays in squiffy</title><published>2021-01-03T03:06:17Z</published><updated>2021-01-03T03:06:17Z</updated><author><name>Bluevoss</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/s7obpizrv02ipjcbjd1e3w/js-arrays-in-squiffy#a49f088a-f1a5-4d8f-b887-6ce36a92d798" /><content type="html">&lt;p&gt;According to what I'm reading, variables (and arrays) in JS are all global in nature. However, I'm not having a lot of luck seeing arrays in functions. An example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[[Start]]:

    var Arr1 = [];
    Arr1[0]=50;

    set("test1",Arr1[0]); //works
test1={test1}

[[Next]]

[[Next]]:
    set("test2",Arr1[0]); //fails
test2={test2}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Any ideas on how to use an array in other places (either JS functions or other squiffy sections)?&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/vnlgcuoq6ei5qfphleuzzq/interplanitary-flight#2023e595-c419-4677-ba70-7943e528bb12</id><title type="text">Interplanitary flight</title><published>2021-01-01T01:23:35Z</published><updated>2021-01-01T05:53:32Z</updated><author><name>Bluevoss</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/vnlgcuoq6ei5qfphleuzzq/interplanitary-flight#2023e595-c419-4677-ba70-7943e528bb12" /><content type="html">&lt;p&gt;One funny story about the game (this was from a decade ago). A friend and I were writing our various pieces. When it came time to actually do your mental and physical states, I combined them. I figured that if you were injured or going mad, the affect would be pretty much the same on your effectiveness. So why quibble about open wounds and mental disturbance?&lt;/p&gt;
&lt;p&gt;Since you had your mental state to worry about - long burns and the emptiness of space would make morale problematic - I added things you could buy and take in your ship. Booze, drugs, a bible, video games, even pornography. Each would give you a boost using them if you "got the blues".&lt;/p&gt;
&lt;p&gt;Then my friend called while playing the game over the weekend. Right as he was about to do a critical final burn to enter an orbit (he HAD to be a the controls), there was a solar flare. So, his choice was to hide in his shielded sleep bunk or stay at the controls and manage orbital entry. He chose the latter and got a good dose of radiation, which dropped his health/morale.&lt;/p&gt;
&lt;p&gt;So he calls me up after this and tells me the story and says, "You know, I used smut to heal radiation burns. Who would have thought..."&lt;/p&gt;
&lt;p&gt;The next day, I was splitting morale from health.&lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/vnlgcuoq6ei5qfphleuzzq/interplanitary-flight#b204af2b-e3d4-469b-a597-46948514325b</id><title type="text">Interplanitary flight</title><published>2021-01-01T01:17:04Z</published><updated>2021-01-01T01:17:04Z</updated><author><name>Bluevoss</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/vnlgcuoq6ei5qfphleuzzq/interplanitary-flight#b204af2b-e3d4-469b-a597-46948514325b" /><content type="html">&lt;p&gt;Trust me, even on that scale, Pluto was way far away. Generally you had to fly the entire game and get every fuel tank, air tank and power battery you could get to make the run. You'd accelerate steady off one of the inner planets, boosting hard and shaking your ship and body apart (if you took it slow, you took it longer and might not make it). Usually I'd be going 12+ squares a turn, just coasting along.  That was when I'd tune my ship and try to heal my injuries from the high gees. Meanwhile, I'd have to figure the factorial of my deceleration to figure when I needed to flip and burn hard. And there was nothing worse than an engine failure on those last few burns to not have you slip right by and die just off Pluto.&lt;/p&gt;
&lt;p&gt;So...&lt;/p&gt;
&lt;p&gt;While reading your response, it gave me the idea of how to do this. What I'll probably do is mock it up over the next few weeks and put a demo out there so people can fly the bare bones version (just flying, nothing else). Eventually I'll put in all the other things my old game had - gambling, bomb defusing, assassins, everything. So, coming soon...&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/vnlgcuoq6ei5qfphleuzzq/interplanitary-flight#11beae2e-f4ad-4336-83ae-1996c4101f60</id><title type="text">Interplanitary flight</title><published>2020-12-31T22:23:58Z</published><updated>2020-12-31T22:23:58Z</updated><author><name>mrangel</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/vnlgcuoq6ei5qfphleuzzq/interplanitary-flight#11beae2e-f4ad-4336-83ae-1996c4101f60" /><content type="html">&lt;blockquote&gt;
&lt;p&gt;(and Pluto, something like 285 or so)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I thought it would be more like 500 on that scale; but google says 355 (39.5 times farther than Earth)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;need to know if there is some calculation to know how far each path square is from the 0,0 center.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You already know how to find a distance between two points using their (x,y) coords:&lt;br&gt;
distance² = (x₁-x₂)² + (y₁-y₂)²&lt;/p&gt;
&lt;p&gt;What you need here is probably distance², because the power generated by a solar cell is reduced according to distance squared from the sun. And with the sun at (0,0), the formula is even simpler: power gained per unit time is just your base power divided by (x²+y²).&lt;/p&gt;
&lt;p&gt;Working out the average of all the squares they pass through in a day would be inaccurate; but probably close enough for a game&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/vnlgcuoq6ei5qfphleuzzq/interplanitary-flight#af76df0b-20f4-4103-a0ad-8e0547bf861b</id><title type="text">Interplanitary flight</title><published>2020-12-31T20:38:45Z</published><updated>2020-12-31T20:38:45Z</updated><author><name>Bluevoss</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/vnlgcuoq6ei5qfphleuzzq/interplanitary-flight#af76df0b-20f4-4103-a0ad-8e0547bf861b" /><content type="html">&lt;p&gt;Working out and idea for a game based on solar system flight. Assume the sun is at 0,0 and planets are slowly walking around a grid, so many squares from the sun (like, Mercury =3, and Venus=5 and Earth=9 (and Pluto, something like 285 or so)).&lt;/p&gt;
&lt;p&gt;It would work very easily if, before you fly to another planet, you file a flight plan. This would take into account where you are starting and where you are going and set up a path of squares you need to move across before making it (using good old A2 +B2=C2 stuff). Once you start out, you are moving 1 square each day. Burn fuel and now it's 2 a day. But you need to flip and start decelerating before you get to your destination.&lt;/p&gt;
&lt;p&gt;All fine and good. Again, you aren't running across a messy grid (with all those weird diagonals), you are moving along a path (determined by the location of planets on a grid).&lt;/p&gt;
&lt;p&gt;My only problem I'm facing is ... electricity. I'm wanting that you need to swing out your solar panels to pick up power from the sun. The further away you are, the less well your gain is (past Jupiter, it's pretty much rubbish).&lt;/p&gt;
&lt;p&gt;But lets say you are making the long haul from Uranus to Pluto, and they happen to be in conjunction (opposite sides of the sun). If setting up a flight path from, lets say, +200,0 to -300, 0 (with 500 path squares to cover) is there a way to determine how close EACH square of that path is to the sun? Because, in conjunction like that, you'll be swinging right past the sun and can get that critical power boost.&lt;/p&gt;
&lt;p&gt;If I knew this, I could also know when you are in the asteroid belt (from your range to the sun). But I need to know if there is some calculation to know how far each path square is from the 0,0 center.&lt;/p&gt;
&lt;p&gt;On this hinges everything.&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#6dc0e0bc-584e-4337-9a40-c01bf05f77f2</id><title type="text">Future of squiffy</title><published>2020-12-30T02:24:33Z</published><updated>2020-12-30T02:24:33Z</updated><author><name>Richard Headkid</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#6dc0e0bc-584e-4337-9a40-c01bf05f77f2" /><content type="html">&lt;blockquote&gt;
&lt;p&gt;Why doesn't it give us better Captchas, like maybe bikini girls at the beach, or hamburgers in a drive through?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I've said the exact same thing!&lt;/p&gt;
&lt;p&gt;(Great minds think alike.)&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#89750aa8-7d32-42bf-808b-1f0a0149ae60</id><title type="text">Future of squiffy</title><published>2020-12-29T19:48:23Z</published><updated>2020-12-29T19:48:23Z</updated><author><name>Bluevoss</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#89750aa8-7d32-42bf-808b-1f0a0149ae60" /><content type="html">&lt;p&gt;Why doesn't it give us better Captchas, like maybe bikini girls at the beach, or hamburgers in a drive through?&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#01f79e5c-cf2c-45c0-9675-677d1a3d7c76</id><title type="text">Future of squiffy</title><published>2020-12-29T19:07:04Z</published><updated>2020-12-29T19:07:04Z</updated><author><name>Richard Headkid</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#01f79e5c-cf2c-45c0-9675-677d1a3d7c76" /><content type="html">&lt;blockquote&gt;
&lt;p&gt;I can't even get the traffic lights.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Oh, man!&lt;/p&gt;
&lt;p&gt;The traffic lights and the crosswalks kick my butt.  Sometimes, I give up trying to post stuff!&lt;/p&gt;
&lt;hr&gt;
&lt;blockquote&gt;
&lt;p&gt;could you easily write a dungeon crawl that randomizes the dungeon? Or is it always going to be areas pointing at other areas in a fixed and static relationship?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Err . . .&lt;/p&gt;
&lt;p&gt;I'm pretty sure you can.  The Pixie is the author of Quest 6, and he already has &lt;a href="https://textadventures.co.uk/games/view/em15b32xd0o-y-ysvgrtcg/deeper"&gt;a dungeon-crawler in Quest 5&lt;/a&gt;.  So, I'm betting he probably made Quest 6 capable of handling all that and more.&lt;/p&gt;
&lt;p&gt;Also, Quest 6 is pure JS.  So, you should be able to make it do whatever you like.&lt;/p&gt;
&lt;hr&gt;
&lt;blockquote&gt;
&lt;p&gt;Maybe I'll stick with squiffy or see what else is out there. It's just that I've got years invested on this platform.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I haven't heard any plans to drop Squiffy, but that doesn't really mean anything.  I don't "work here", or anything.  I just bother The Pixie and manowar quite frequently and pick up little pieces of information here and there.  I'm pretty sure I read (somewhere in all the Quest 6 documentation) that it wasn't going to do gamebooks because we already have Squiffy.&lt;/p&gt;
&lt;p&gt;Now, if we're wondering if Squiffy will continue to be maintained or something like that, it's on GitHub.  So, I'm thinking the worst case scenario would be some of us pushing our own updates to that repo.  This is total conjecture, though.  Plus, to be repetitive, and to be repetitive, I haven't seen any sign that Squiffy might be going the way of the dodo.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Me?  I'm pretty sure I'm about to use Squiffy to make a HELP "section" in the Quest 6 game &lt;s&gt;I'm working on&lt;/s&gt; on which I am currently working.&lt;/p&gt;
&lt;p&gt;I did something similar with Twine in an Inform 7 game before.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Has there been a decrease in Squiffy usage?&lt;/p&gt;
&lt;p&gt;(I really only check out the Squiffy forum when the title of a thread jumps out and grabs my attention.)&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;PS&lt;/p&gt;
&lt;p&gt;Oh!  It hit me with the cursed traffic lights this time!  (It's listening to us!)&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#896220eb-2dfd-4fde-ab28-e81a7b121c66</id><title type="text">Future of squiffy</title><published>2020-12-29T18:09:49Z</published><updated>2020-12-29T18:09:49Z</updated><author><name>Bluevoss</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#896220eb-2dfd-4fde-ab28-e81a7b121c66" /><content type="html">&lt;p&gt;I can't even get the traffic lights.&lt;/p&gt;
&lt;p&gt;I appreciate this. So tell me, even though Quest does not support CYOA games, does it allow for a fully randomized set up? In other words, could you easily write a dungeon crawl that randomizes the dungeon? Or is it always going to be areas pointing at other areas in a fixed and static relationship?&lt;/p&gt;
&lt;p&gt;I tend to write games with replayibility in them. In essence, I don't want to write a came I can't enjoy over and over.&lt;/p&gt;
&lt;p&gt;Maybe I'll stick with squiffy or see what else is out there. It's just that I've got years invested on this platform.&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#1dfeba64-96cf-4f87-8b13-59096a837b84</id><title type="text">Future of squiffy</title><published>2020-12-29T16:14:22Z</published><updated>2020-12-29T16:14:22Z</updated><author><name>Richard Headkid</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#1dfeba64-96cf-4f87-8b13-59096a837b84" /><content type="html">&lt;p&gt;Hello, Bluevoss!&lt;/p&gt;
&lt;p&gt;&lt;s&gt;This probably isn't exactly what you're fishing for&lt;/s&gt;&lt;/p&gt;
&lt;p&gt;&lt;s&gt;This probably isn't exactly for what you're fishing&lt;/s&gt;&lt;/p&gt;
&lt;p&gt;This probably isn't the exact response for which you were fishing, but I do know two things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Quest 6 is currently in development.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Okay . . .  So, I know &lt;strong&gt;one&lt;/strong&gt; thing!  (Hehehe.)&lt;/p&gt;
&lt;p&gt;...but I've also heard that Quest 6 will not have a gamebook mode.  So, Squiffy will be the &lt;em&gt;de facto&lt;/em&gt; gamebook authoring system on this site.&lt;/p&gt;
&lt;p&gt;...and I assume that 'they' assume the site will be around for a while (along with Squiffy), otherwise:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Quest 6 probably wouldn't be in development&lt;/li&gt;
&lt;li&gt;I wouldn't have read that Quest 6 won't have a gamebook mode because people can just use Squiffy&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;Having said all that, I'm thinking you're probably talking about the liveliness of the site?&lt;/p&gt;
&lt;p&gt;The only way I know how to judge that is by the forum, which is not very lively.  Maybe that only means fewer authors are currently needing help?&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;If you're wondering if CYOA games are less in-demand, I'm of no help at all, because:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I'm more of a parser person&lt;/li&gt;
&lt;li&gt;I don't really know anyone else who plays Interactive Fiction&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;PS&lt;/p&gt;
&lt;p&gt;I'm not much help.  I know.  But I'm on a break, and I thought maybe the info concerning Quest 6 might be a little relevant.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Also, I'm not a robot.  I can click on all the chimneys. Can robots click on all the chimneys?  I think not!&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#a1d1c292-c766-41cb-bd8b-2ffcaa7852e5</id><title type="text">Future of squiffy</title><published>2020-12-28T23:43:09Z</published><updated>2020-12-28T23:43:09Z</updated><author><name>Bluevoss</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/dkk5fgmxmuojnn3z-j3vpg/future-of-squiffy#a1d1c292-c766-41cb-bd8b-2ffcaa7852e5" /><content type="html">&lt;p&gt;Having been a faithful Atari owner as PCs rose to dominate, I gotta ask what people on this forum think of the future of squiffy.&lt;/p&gt;
&lt;p&gt;I'm not asking solely out of curiosity -  I've been thinking of a major space trading game, one I wrote in Excel a number of years ago, one with trading about our own solar system. It was a lot of fun but I could see places I could have improved it.&lt;/p&gt;
&lt;p&gt;So now I'm thinking of redoing it in squiffy. I'm comfortable with it and have a number of major games out (one of which has a pretty good private following). Also, this site gives me a good platform for players. But if it's drying up and who knows, maybe the squiffy side of things might drop off the site, should I bother with it?&lt;/p&gt;
&lt;p&gt;Curious about what people think about squiffy and what it's survival chances are.&lt;/p&gt;

</content></entry><entry><id>http://textadventures.co.uk/forum/squiffy/topic/jy-sks8fu0kfnh43gos4ga/squiffy-or#fe38ccda-93cd-4ea0-b502-0850b9607868</id><title type="text">Squiffy OR</title><published>2020-12-28T22:03:58Z</published><updated>2020-12-28T22:03:58Z</updated><author><name>mrangel</name></author><link rel="alternate" href="http://textadventures.co.uk/forum/squiffy/topic/jy-sks8fu0kfnh43gos4ga/squiffy-or#fe38ccda-93cd-4ea0-b502-0850b9607868" /><content type="html">&lt;p&gt;Of course, should bave remembered de Morgan's laws.&lt;/p&gt;
&lt;p&gt;Good solution :)&lt;/p&gt;

</content></entry></feed>