Help Zombie 1 (Pixie)

jmnevil54

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


Pertex

Just what the error message says: You are calling the function ProcessText but this function does not exist in your game


The Pixie

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))

jmnevil54

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.


The Pixie

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.


jmnevil54

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


jmnevil54

Help?


hegemonkhan
  1. download Pixie's (?library/game?) file
  2. right click on it and choose to open it
  3. open it with a text editor software (notepad, wordpad, notepad++, Apple: texteditor, etc)
  4. scroll down to the very bottom
  5. 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>
  1. save over Pixie's (?game/library?) file

(though Pixie will have to complete/adjust some of the code above...)


Log in to post a reply.

Support

Forums