Hey. So I tried making a practice game. I used "Pixie's" zombie tutorial. (link) https://github.com/ThePix/quest/wiki/The-Zombie-Apocalypse-(on-the-web-version)
It doesn't work... something about strings and elements.
Game link. http://textadventures.co.uk/games/view/fn4731sn3ee_aiq_becliw/zombie-1
Just what the error message says: You are calling the function ProcessText but this function does not exist in your game
My bad. There will be a ProcessText
command in the next release of Quest, but it is not there yet. However, you can add your own. Create a new function, return type "string", a single parameter called "text" and paste this in:
data = NewDictionary()
dictionary add (data, "fulltext", text)
return (ProcessTextSection(text, data))
Thanks Pixie.
Umm..., what am I supposed to delete for the "ProcessText"?
It's just that, I tried pasting the code in functions, didn't work. So I figure I have to delete something.
Create a new function (click the Add button in the functions bit), give it the name "ProcessText", then set the return type "string". Click to Add a parameter, called "text". Paste in the code.
I'm still having problems.
Maybe it will be better if someone sees the code. Hope this helps.
http://imgur.com/5mlx70U
http://imgur.com/9NTD0Dt
http://imgur.com/9pKatNN
http://imgur.com/C18unAX
http://imgur.com/rEoWtHK
http://imgur.com/ee0GEtd
http://imgur.com/0JYPm1w
http://imgur.com/QkYUMtc
http://imgur.com/3JoaerG
http://imgur.com/eHYJKUi
http://imgur.com/3SnuNJn
http://imgur.com/oL4Z3Pn
http://imgur.com/XnuXE2e
http://imgur.com/ajkduGK
http://imgur.com/fQRtyjh
http://imgur.com/ZCi2cag
http://imgur.com/SXqGMCr
http://imgur.com/aag4YQS
http://imgur.com/95gi0SE
if it's a game file (you'll see the '' at the very bottom), it needs to look like this:
// blah/whatever code lines/blocks
<command name="PROCESS_TEXT_COMMAND">
<pattern>XXX</pattern>
<script>
// ???
</script>
</command>
<function name="ProcessTextSection" parameters="text,data" type="string">
// ???
</function>
<function name="ProcessText" parameter="text" type="string">
data = NewDictionary()
dictionary add (data, "fulltext", text)
return (ProcessTextSection(text, data))
</function>
</asl>
if it's a library file (you'll see the '' at the very bottom), it needs to look like this:
// blah/whatever code lines/blocks
<command name="PROCESS_TEXT_COMMAND">
<pattern>XXX</pattern>
<script>
// ???
</script>
</command>
<function name="ProcessTextSection" parameters="text,data" type="string">
// ???
</function>
<function name="ProcessText" parameter="text" type="string">
data = NewDictionary()
dictionary add (data, "fulltext", text)
return (ProcessTextSection(text, data))
</function>
</library>
(though Pixie will have to complete/adjust some of the code above...)