Community Projects:WikiAdventure:Games:Test Game:Location01

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

This page contains WikiAdventure game content data.
Please familiarise yourself with the content syntax before editing this page.

This page contains WikiAdventure game contents data for testing purposes.



Warning: The following section may contain spoilers and/or solutions.



<Location>

Location01.jpg
Enlarge
Location01.jpg


<Items>

<Item>
MrJohn.png
MrJohn.png
Item ID: MrJohn
Description: Item with a picture
Position: 400, 300
<OnClick>
StartDialog( "Shop01" )
</OnClick>
</Item>
<Item>
Loc2Keys.png
Loc2Keys.png
Item ID: Loc2Keys
Description: An item with scripting when clicked
Position: 50, 400
<OnLoad>
if bCanStartNextLocation == true then
HideThisItem()
end
</OnLoad>

<OnClick>
bCanStartNextLocation = true
ShowText("You've aquired the keys and can now go to the next location!")
HideThisItem()
</OnClick>
</Item>
<Item>
Item ID: NextLoc
Description: Here's an item without an image
Position: 200, 300
Size: 150, 100
<OnClick>
if bCanStartNextLocation == true then
StartLocation( "Location02" )
else
ShowText("Sorry, you can't go to the next location...[br]You'll need the keys for that!")
end
</OnClick>
</Item>

</Items>


<Dialogs>

<Dialog>
Dialog ID: Shop01
Speaker ID: Shopkeeper John
  1. Hi, can I help you?
    1. Anything interesting happend since I spoke to you last?
      <OnLoad>
      if bTalkedToJohn == nil then
      HideThisDialog()
      end
      </OnLoad>
      1. Nah, not really.
        1. Okay, just checking.
    2. Yes, I would like to have a look at your wares.
      1. [Show wares]
    3. Perhabs, what do you sell here?
      1. I've got everything in modern personal security equipment; amour, weapons, shields, bows, you name it!
        1. Great, let me have a look.
          1. [Show wares]
        2. Not interested.
          1. Okay, some other time maybe?"
    4. Have you got any muscle tasks?
      1. Not that I can think of no. But come by from time to time, I sometimes have some jobs that require more muscle than I can muster.
        <OnLoad>
        if bAskedAboutMuscleTasks == true then
        ChangeDialogText( "No, I still haven't, sorry." )
        end
        bAskedAboutMuscleTasks = true
        </OnLoad>
        1. Okay, will do.
    5. No, thanks.
      <OnClick> bTalkedToJohn = true </OnClick>
</Dialog>

</Dialogs>

</Location>


Back to Test Game Page.

Back to WikiAdventure Games.

Back to WikiAdventure Main.