How do I modify script commands?

0 votes
39 views
asked Apr 9 in Authoring by RakeVuril (3 points)

Let's say I want to modify the "wait" script command very slightly. If I wanted to change it so it says "Press any key to continue..." instead of "Continue..." while waiting for input.

Is there any way to do that, or are script commands just built into the engine and impossible to modify?

1 Answer

0 votes
answered Apr 9 by The Pixie (121 points)
selected Apr 10 by RakeVuril
 
Best answer

Script commands are built in and impossible to modify.

However, the text they use can be changed if using the off-line editor - this is how the language support works. Copy the ContinueLabel template into your game (show all library elements at the bottom left; search for ContinueLabel at the top left; click Copy at the top right). Type your text into the box.

In code view, your game will now start like this:

<asl version="550">
  <include ref="English.aslx" />
  <include ref="Core.aslx" />
  <template name="ContinueLabel">Press any key to continue...</template>
  <game name= ...
This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...