Squiffy in a Quest game (an iframe cheat)

K.V.

http://textadventures.co.uk/games/view/drqfcs71qk_jgdbm_qgdua/squiffy-inside

<!--Saved by Quest 5.7.6404.16853-->
<asl version="550">
  <include ref="English.aslx" />
  <include ref="Core.aslx" />
  <game name="Squiffy Inside">
    <gameid>06379ff4-aa5f-41cf-87be-310383e3ed12</gameid>
    <version>1.0</version>
    <firstpublished>2017</firstpublished>
    <menufont>Georgia, serif</menufont>
    <description><![CDATA[Example game with Squiffy in an iframe.<br/><br/>msg ("<iframe width=\"100%\" height=\"344\" src=\"http://media.textadventures.co.uk/games/4-UsOMnCN0qMfbNqms-18Q/index.html\" frameborder=\"0\" allowfullscreen></iframe>")]]></description>
    <start type="script">
      msg ("{command:squiffy:Open the Squiffy gamebook.}")
    </start>
    <showpanes />
    <commandpane />
    <showdescriptiononenter type="boolean">false</showdescriptiononenter>
    <autodescription type="boolean">false</autodescription>
    <attr name="changeroom_newline" type="boolean">false</attr>
  </game>
  <object name="room">
    <inherit name="editor_room" />
    <description type="string"></description>
    <object name="player">
      <inherit name="editor_object" />
      <inherit name="editor_player" />
      <feature_startscript />
      <attr name="_initialise_" type="script">
        JS.setCommands ("Squiffy", "black")
      </attr>
    </object>
  </object>
  <command name="kv_squiffy">
    <pattern>squiffy</pattern>
    <script><![CDATA[
      msg ("<iframe width=\"100%\" height=\"344\" src=\"http://media.textadventures.co.uk/games/4-UsOMnCN0qMfbNqms-18Q/index.html\" frameborder=\"0\" allowfullscreen></iframe>")
    ]]></script>
  </command>
  <turnscript name="showSquiffyLinkTurnscript">
    <enabled />
    <script>
      msg ("{command:squiffy:Open the Squiffy gamebook.}")
    </script>
  </turnscript>
</asl>

Now if we could put a Quest game in a Squiffy game, maybe people would be happy!



@KV A Squiffy game in a Quest game in a Squiffy game... What did you do...


K.V.

Squiffy Iframe

@title Squiffy Iframe
@start Home

[[Home]]:
<center><h1>Welcome to the in-Quest Squiffy gamebook!</h1><h2><b>You can click [[help]] or [[commands]].</b></h2></center>

[[help]]:
Help is coming soon!  

(Don't depend on it, though.  **If this is an emergency, call your local version of 911!**)

[[commands]]:
    alert("This function is coming soon!");
    squiffy.story.go("Home");
[[]]:
@clear
<center style="background:silver;font-weight:bold;padding:2px;border:1px solid black;">[[Home]]</center>

Squiffy Inside

<!--Saved by Quest 5.7.6404.16853-->
<asl version="550">
  <include ref="English.aslx" />
  <include ref="Core.aslx" />
  <game name="Squiffy Inside">
    <gameid>06379ff4-aa5f-41cf-87be-310383e3ed12</gameid>
    <version>1.0</version>
    <firstpublished>2017</firstpublished>
    <menufont>Georgia, serif</menufont>
    <description><![CDATA[Example game with Squiffy in an iframe.<br/><br/>msg ("<iframe width=\"100%\" height=\"344\" src=\"http://media.textadventures.co.uk/games/4-UsOMnCN0qMfbNqms-18Q/index.html\" frameborder=\"0\" allowfullscreen></iframe>")]]></description>
    <start type="script">
      msg ("{command:squiffy:Open the Squiffy gamebook.}")
    </start>
    <showpanes />
    <commandpane />
    <showdescriptiononenter type="boolean">false</showdescriptiononenter>
    <autodescription type="boolean">false</autodescription>
    <attr name="changeroom_newline" type="boolean">false</attr>
  </game>
  <object name="room">
    <inherit name="editor_room" />
    <description type="string"></description>
    <object name="player">
      <inherit name="editor_object" />
      <inherit name="editor_player" />
      <feature_startscript />
      <attr name="_initialise_" type="script">
        JS.setCommands ("Squiffy", "black")
      </attr>
    </object>
  </object>
  <command name="kv_squiffy">
    <pattern>squiffy</pattern>
    <script><![CDATA[
      msg ("<iframe width=\"100%\" height=\"344\" src=\"http://media.textadventures.co.uk/games/4-UsOMnCN0qMfbNqms-18Q/index.html\" frameborder=\"0\" allowfullscreen></iframe>")
    ]]></script>
  </command>
  <turnscript name="showSquiffyLinkTurnscript">
    <enabled />
    <script>
      msg ("{command:squiffy:Open the Squiffy gamebook.}")
    </script>
  </turnscript>
</asl>

Quest Inside (v3)

@title Quest Inside (v3)

Play [[Squiffy Inside]].

[[Squiffy Inside]]:
    $("div#squiffy-container").css("max-width", "100%");
<iframe src="http://play2.textadventures.co.uk/Play.aspx?id=editor/8e813ba2-e89a-4ffe-a8e0-c81f41951619%2fSquiffy+Inside.aslx" width="100%" style="min-height:550px"  />

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums