*choice multiable


#1

I know this has been answered before but was unable to find the topic.

I have:

*choice Name_NPCs Level
  #Yes
    #Easy
      #npc
        *set c_or -1
        *set sec +1
        *gosub_scene timer
        *set control false
        *finish
    #Hard
      #Second
        *set sec +1
        *set npcname true
        *set c_or +1
        *gosub_scene timer
        *set control true
        *finish
  #No
    #Easy
      #npc
        *set c_or -1
        *set sec +1
        *gosub_scene timer
        *set control false
        *finish
    #Hard
      #Second
        *set sec +1
        *set npcname true
        *set c_or +1
        *gosub_scene timer
        *set control true
        *finish

It plays fine until I press next getting the error falling out of choice. Any ideas what I am doing wrong? Thanks.


#2

After much reading, hunting, trial and error I have it solved. :smiley:

Seleting an NPC's name. During a rather large game it can be hard to track whos who. During the game you will be able to pull up the lapstone to see the name of all NPC's encountered. Or you can choose to give them a name when you meet them for the first time.

Players will differ in how much control the want durning play. Easy is straight forward and most actions are automatic. While Hard lets you control a lot more of what is going on.
*choice NPC_Name Level
      #Yes
        #Easy
          *gosub one
          *finish
        #Hard
          *gosub two
          *finish
      #No
        #Easy
          *gosub one
          *finish
        #Hard
          *gosub two
          *finish

*label one
*set c_or -1
*set sec +1
*gosub_scene timer
*set control false
*return

*label two
*set sec +1
*set npcname true
*set c_or +1
*gosub_scene timer
*set control true
*return

#3

I don’t get what you’re trying to do here …


#4

@gkkiller
This is enabling the player to pick the game options from one screen. I have it working in my wip if you care to see the code in action.

https://dl.dropboxusercontent.com/u/80005171/Main%20copy%20Norif/web/mygame/index.html


#5

Ooh. Interesting - I didn’t know you could do that.