I couldn't figure out how to get quest to preserve~accept multiple whitespaces, as I've tried to create an indenting~margining function (very easy to do in python, lol), as it seems that in quest's underlying coding, it unfortunately removes multiple whitespaces. I've tried concatenating, using stringlists (splitting and joining), and etc methods (\t, while and for loops, and etc) in other languages, but quest still automatically~underneath removes any multiple whitespaces.
....
HOWEVER, I found out how to do it, hehe:http://docs.textadventures.co.uk/quest/ ... tting.html (this showed that you can use HTML tags, and not seeing any for indenting~margining, I looked it up, see link below):
http://www.simplehtmlguide.com/text.php (not the best site for html, but it's what came up on google, using search: html formatting)
and it, <blockquote>xxx</blockquote>, works!
an example of doing it in coding:
(if you're doing this in code, you need the 'CDATA' tag block)
<game name="xxx">
<start type="script"><![CDATA[
msg ("<blockquote>Hello</blockquote>")
// outputs:
//: Hello
]]></start>
</game>
to do this in the GUI~Editor, an example:
run as script -> output -> 'print a message' Script -> print [MESSAGE] <blockquote>Hello</blockquote>
OR (if you want to use dynamic~variable outputting), an example:
run as script -> output -> 'print a message' Script -> print [EXPRESSION] "<blockquote>Hello</blockquote>"
example of actually using dynamic~variable usage:
run as script -> variables -> 'set a variable or attribute' Script -> set variable x = [EXPRESSION] "Bye"
run as script -> output -> 'print a message' Script -> print [EXPRESSION] "<blockquote>Hello " + x + "</blockquote>"
// outputs:
Hello Bye
-------------
off-topic, in Python (credit to my Python prof), three simple but useful Formatting Functions:
(the 'def' key word~command is Python's Functions)
(simple stuff, but it's much better than having to manually do the formatting of each message line~block, hehe)
// this is vertical tabbing~spacing (how many lines are skipped, or aka: how many empty lines):
def LineEject (A):
K = 0
while K < A:
print
K += 1
// this is indenting ~ horizontal tabbing (setting how many spaces to indent):
def LeftMargin (A):
K = 0
while K < A:
print "",
K += 1
// this is to center a string:
(80 is the default pixel width of a command prompt box)
def Center (A,B):
K = (80 - len (A)) / 2
LeftMargin (K)
print A
LineEject (B)