APPLICATIONS ★ GRAPHICS ADVENTURE CREATOR: PROGRAMMING TUTORIAL 1 ★

Gac - Programming Tutorial Part 1 (Amstrad Action)
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

This month the Balrog continues adding to our bank adventure, started last issue, as well as telling you more ahout how to work GAC...

Not only are we going to add more locations to our bank adventure, we'll also be adding a puzzle (a locked bank vault door) and a maze!

First, let's add the extra locations:

Room 3 'You are outside the bank. Exits are north and west.'

  • Connections: N 2 W 4

Room 4'You are on the the High Street. There is an exit to the east and you can go down to the sewers.'

  • Connections: E 3 D 5

and amend the old locations .

  1. Add the message 'The bank vault door lies open to the east' (We're not going to allow the adventurer to close the vault, just open it) in Room 1.
  2. Remove the exit 'west 1' from room 2 (as we'll be putting a door between these two locations) and add south 3. Also add to the end of the room descnption 'There is an exit to the south and a large bank vault door to the west.'

Now let's add a maze - let's make it a sewer complex beneath the High Street...

Room 5'You are in a dank sewer You can see daylight above.'

  • Connections: U 4 N 8 S 7 E

So let's go over what we've got now - we've added a lot more locations, including a four room sewer maze which should be good (and could be made a lot harder tf you changed all the location descriptions to be the same!). Now, we still want to add the following:

  • Start in room 8
  • Put a key in room 8
  • Add a door to Room 2
  • Add a puzzle which lets you open the door with the key...
  1. Starting in room 8 is easy - just go to the 'Begin where7' menu and change it to 8!

As to putting the key in room 8. follow the same approach as the bar of gold from last issue, i.e.:

Nouns
2 Key

Objects
2 a key
starts in room 8
and weighs 1

Messages
2 The key looks important-

Low Priority:

11: IF (VERB 7 AND NOUN 2 AND HERE 2) GET

2 OKAY END 12: IF (VERB 8 AND NOUN 2 AND CARR 2)

DROP 2 OKAY END 13: IF (VERB 16 AND NOUN 2 AND AVAI2) MESS 2 END

Adding the door and the puzzle element is the complicated bit:

Add MESSAGE 3 'The door is wide open...'

add 'door', 'vault' and 'bank' as noun 3 and add the verb 'unlock' to the verb list (make it verb 18).

Now go the local room conditions and add a condition for room 2:

IF (VERB 4 AND SET? 3) GOTO 1 WAIT END

If you typed 'West' and marker/flag three is set (i.e. the door is open) the go to room 1 (the bank vault).

Also, add IF (VERB 4) MESS 4 WAIT END to the list (if type go west and marker is not set then print message 4 (which we make 'You can't walk through doors you know!'))

And finally add:

IF (VERB 18 AND NOUN 3 AND CARR 2) SET 3 WAIT END

Which basically says if you typed 'UNLOCK DOOR' and you have the key on you then set the door to be unlocked

Finally, we want to add the message about the door being open to the end of the room description, so we need to go to the high priority conditions menu and add:

1: IF (AT 2 AND SET? 3) MESS 3

And we should be ready to rock and roll I Pat yourself on the back if it works - Bank Adventure now looks much more like a proper adventure than the two location 'thing' we created last month! If it doesn't work then look at the errors box to see what you've done wrong...

Save it as a datable called bank.

Editing and deleting things

To edit something (such as a room location or a condition), follow the procedure to enter it, and instead of empty lines to edit things on. you will get what was there before. To skip to the next part just press ENTER/RETURN. You are free to edit tilings as you go along, but don't press ESCAPE before you get to the "Which room/object/line number...?" or your changes won't be kept!

To delete something, follow the procedure to enter it, but edit the first bit of data to be a blank line (i.e. no spaces). This can be done by repeatedly holding down the CLR key.

For example, to edit object one from 'a bar of gold'to read 'the mystical lost treasure of Nanu-Xanu', just press 0 from the main menu (for objects), choose object 1, edit the line using CLR. DEL and the cursor keys and then press Enter until the "Which object number?..." prompt appears at the bottom of the screen. Then just press Escape and the change will be committed to the computer's memory.

What is a marker/diagnostics?

Markers and counters (sometimes called flags or variables) are very important to any adventure game - without them, it would be very difficult to write even the simplest puzzle.

There are 256 markers, which can only be true or false They are set by using the SET and RES commands (see example of the bank door above) - thus if marker 3 is set (true) then we say that the door is open, else if it is unset/reset (false) then the door is closed. Markers are tested using the SET? and RES? commands These markers are very useful for puzzles which need to test if something is true or false (i.e. a door open/closed, night/dark, hungry/full etc.).

There are 128 counters, numbered from 0 to 127. They are most frequently used to store the number of moves since a particular event (e.g. in the dark) but could be used for keeping account of how many gold coins you have etc. Counter 0 holds the score and counters 126 and 127 hold the turns count since the start of the game.

When you are testing an adventure, the way to return to the main menu is to press the ESC key. as usual. This gives you the message "Press D for diagnostics or ESC to escape...". If you press the "D" key, then all the markers and counters will be displayed on the screen. For the markers, a filled circle indicates "SET" and an unfilled one "RESET". The values of the counter are given as you would expect. To get back to the main menu just press ESC again, or press any other key to get back to the game (very useful for debugging the adventure).

What next?

That is up to you! Next month I'll continue the tutorial, but I would prefer to answer readers'questions. If anyone has any queries concerning GAC thamstrad en write to: GAC Programming Clinic, Amstrad Action, Boauford Court.

Amstrad Action #77

★ AMSTRAD CPC ★ DOWNLOAD ★

Files:
» Der  Graphic  Adventure  Creator    GERMANDATE: 2012-12-22
DL: 1425
TYPE: ZIP
SiZE: 25Ko
NOTE: 40 Cyls
.HFE: Χ

» Graphic  Adventure  Creator    (Cracked  version)DATE: 2011-02-09
DL: 1225
TYPE: ZIP
SiZE: 38Ko
NOTE: Extended DSK/40 Cyls
.HFE: Χ

» Graphic  Adventure  Creator    ENGLISHDATE: 2011-04-03
DL: 1222
TYPE: ZIP
SiZE: 127Ko
NOTE: Extended DSK/42 Cyls
.HFE: Χ

» The  Graphic  Adventure  Creator    CNGSOFTDATE: 2013-10-25
DL: 1119
TYPE: ZIP
SiZE: 13Ko
NOTE: 3 Cyls
.HFE: Χ
 
» The  Graphic  Adventure  Creator    ENGLISHDATE: 2011-02-10
DL: 1201
TYPE: ZIP
SiZE: 127Ko
NOTE: Extended DSK/42 Cyls
.HFE: Χ

Adverts/Publicités:
» Der  Graphic  Adventure  Creator    GERMANDATE: 2015-01-08
DL: 412
TYPE: image
SiZE: 354Ko
NOTE: w963*h1367

» The  Graphic  Adventure  CreatorDATE: 2015-01-08
DL: 345
TYPE: image
SiZE: 132Ko
NOTE: w1324*h898

» The  Graphic  Adventure  Creator    (Create  your  own  Graphics  Adventures)    ENGLISHDATE: 2015-01-08
DL: 418
TYPE: image
SiZE: 338Ko
NOTE: w939*h1367

» The  Graphic  Adventure  Creator    (Reason  Enough  to  buy  an  Amstrad)DATE: 2015-01-08
DL: 373
TYPE: image
SiZE: 210Ko
NOTE: w970*h1401

» The  Graphic  Adventure  Creator    (The  Most  Sophiscated.)DATE: 2015-01-08
DL: 354
TYPE: image
SiZE: 80Ko
NOTE: w900*h317

» The  Graphic  Adventure  Creator    (Utility  of  the  Year)DATE: 2015-01-08
DL: 309
TYPE: image
SiZE: 67Ko
NOTE: w397*h591

» The  Graphic  Adventure  Creator    ADVERT    ENGLISHDATE: 2014-05-05
DL: 504
TYPE: image
SiZE: 136Ko
NOTE: w872*h329

» The  Graphic  Adventure  Creator    ADVERT    GERMANDATE: 2014-05-05
DL: 338
TYPE: image
SiZE: 274Ko
NOTE: w758*h1104

» The  Graphic  Adventure  Creator    ENGLISHDATE: 2015-01-08
DL: 409
TYPE: image
SiZE: 125Ko
NOTE: w589*h837

Cover/Package:
» The  Graphic  Adventure  Creator    (Release  DISK)    ENGLISHDATE: 2019-12-06
DL: 624
TYPE: image
SiZE: 888Ko
NOTE: Scan by Loic DANEELS ; w3021*h1884
 

Medias/Supports:
» The  Graphic  Adventure  Creator    (Release  DISC)    ENGLISHDATE: 2016-09-06
DL: 178
TYPE: image
SiZE: 74Ko
NOTE: Scan by Loic Daneels ; w929*h583

» The  Graphic  Adventure  Creator    (Release  DISK)    ENGLISHDATE: 2019-11-21
DL: 160
TYPE: image
SiZE: 212Ko
NOTE: Scan by Loic DANEELS ; w1876*h1173

» The  Graphic  Adventure  Creator    (Release  with  Lenslok-TAPE)    ENGLISHDATE: 2019-05-25
DL: 326
TYPE: image
SiZE: 358Ko
NOTE: Scan by hERMOL ; w2430*h1328

Manuels d'utilisation & docs:
» Graphic  Adventure  Creator    (Writers  Handbook)    ENGLISHDATE: 2014-05-05
DL: 1455
TYPE: PDF
SiZE: 296Ko
NOTE:

» Graphic  Adventure  Creator    ENGLISH    MANUALDATE: 2014-05-05
DL: 3748
TYPE: PDF
SiZE: 1925Ko
NOTE:

Dump cassette:
» The  Graphic  Adventure  Creator    ENGLISHDATE: 2024-03-10
DL: 179
TYPE: ZIP
SiZE: 34Ko
NOTE: Uploaded by CPCLOV ; LENSLOK Protection ;
.DSK: Χ
.CDT: 2

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » Genesis vs. Graphic Adventure Creator
» Applications » Lifegame
» Applications » Labgen (CPC Amstrad International)
» Applications » Saga
» Applications » ACB : Arcade Construction Basic
» Applications » P.A.W.S - Professional Adventure Writing System
Je participe au site:
» Vous avez des infos personnel, des fichiers que nous ne possédons pas concernent ce programme ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop/c
Page créée en 258 millisecondes et consultée 1939 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.