Help Zombie 1 (Pixie)
jmnevil54
24 Mar 2017, 03:44Hey. 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
Pertex
24 Mar 2017, 07:09Just what the error message says: You are calling the function ProcessText but this function does not exist in your game
The Pixie
24 Mar 2017, 15:32My 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))
jmnevil54
24 Mar 2017, 20:05Thanks 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.
The Pixie
25 Mar 2017, 07:20Create 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.
jmnevil54
27 Mar 2017, 03:05I'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
jmnevil54
28 Mar 2017, 01:50Help?
hegemonkhan
28 Mar 2017, 05:04- download Pixie's (?library/game?) file
- right click on it and choose to open it
- open it with a text editor software (notepad, wordpad, notepad++, Apple: texteditor, etc)
- scroll down to the very bottom
- add this in, so that Pixie's (?game/libray?) file looks jsut like the below:
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>
- save over Pixie's (?game/library?) file
(though Pixie will have to complete/adjust some of the code above...)