I'm new at this and my game has a slight problem

retroPacifist
06 Nov 2016, 08:29

There's no player object in my game anywhere. I was wondering if there is a way to get it back?


The Pixie
06 Nov 2016, 09:26

Create a new object as normal, and call it "player". On the Features tab, tick "Player: ...", then on the Player tab, set Player to "Can be player". Fill in the other boxes:

me

you

yourself

myself
self

Looking good.


hegemonkhan
06 Nov 2016, 13:19

new/default game code looks like this:

(just right click on your game file, and open it with a text software: notepad, wordpad, notepad++, Apple: text editor, etc)

(you just need to add in the '<object name="player>content</object>' aslx/xml creation tag block, either within a Room Object or within the '<asl version="550">your entire game content</asl>' and with a set 'parent' Object Attribute within your Player Object)

<asl version="550">

  <include ref="English.aslx" />
  <include ref="Core.aslx" />

  <game name="xxx">
    <gameid>xxx</gameid>
    <version>1.0</version>
    <firstpublished>2016</firstpublished>
  </game>

  <object name="room">

    <inherit name="editor_room" />

    <object name="player">
      <inherit name="editor_object" />
      <inherit name="editor_player" />
    </object>

  </object>

</asl>

example (using the new/default game code) of adding (copying and pasting) in the Player Object yourself:

(for it to be within the '<asl version="550">your entire game content</asl>', you just need it to not be within anything else, and for it to be at the same indent as your Game Object)

<asl version="550">

  <include ref="English.aslx" />
  <include ref="Core.aslx" />

  <game name="xxx">
    <gameid>xxx</gameid>
    <version>1.0</version>
    <firstpublished>2016</firstpublished>
  </game>

  <object name="player">

    <inherit name="editor_object" />
    <inherit name="editor_player" />

    <attr name="parent" type="object">room</attr>

  </object>

  <object name="room">
    <inherit name="editor_room" />
  </object>

</asl>

http://docs.textadventures.co.uk/quest/asl_requirements.html

what quest requires... though most of it is at the underlying code, though it does mention that there must be a Player Object, lol.