CODING ★ 16. BREAKDOWN OF WITCH HUNT ★

Writing Adventure Games on the Amstrad - 16 - Breakdown of witch hunt - Locations
★ 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 ★ 

LOCATION 0 - THE GLOBAL LOCATION

Many of the definitions in this location will be standard for most AKS scenarios. Commands which are usually explicitly coded in the Basic program of other adventure games, such as movement, inventory, get and drop, are defined in the AKS scenario global location. The explicit coding in AKS is associated with the action (A) statements not with the keywords which cause their execution. Witch Hunt defines the action of going east as:

T,e,east,*
A,GO,E

This associates the keywords 'e' and 'east' with the action 'GO,E' so that when the player's command line contains either then word 'e' or the word 'east' AKS will perform the action of moving the player east. Supposing you wished to adapt Witch Hunt to print a message on the screen confirming the action, it is a simple matter to add an extra action to this trigger as follows:

T,e,east,*
A.PR,Going eastwards A,GO,E

No modification of the AKS program itself is required. In addition to allowing modification of the fundamental actions of an adventure game scenario, actions may be deliberately omitted from a scenario by omitting their definition from the global location.

The way Witch Hunt implements the cat following the player around shows the flexibility of AKS triggers. From the above example, it can be seen that adding actions to triggers allows extension of an action. A brief examination of the Witch Hunt global location definition will reveal that it has two versions of every movement command. Both versions contain the same keywords but have different trigger conditions and actions. The first version will fire when flag 4, the 'player being followed by cat' flag, is set to true (ie. '*F4' evaluates to true). The second version will fire unconditionally and so if the first version does not fire the second version will. The first version, which fires when flag 4 is set to true, results in the player being moved by the 'GO' action and the object 12 (the cat) being Zapped In to the player's new location. The second version, which fires when version one fails to fire, just does a normal move player using 'GO1. To cause the cat to start or stop following the player merely requires setting flag 4 to true or false respectively.

The global location in Witch Hunt also contains triggers for actions not fundamental to adventure games in general but which may be performed at any location in the Witch Hunt scenario. An example is the action of eating something. Commands containing 'eat loaf or 'eat bread' will cause 'Yummy yummy!' to be printed and the loaf (object 5) to be Zapped Out to nowhere; provided, of course, that the player is carrying the loaf (ie. '*C5' is true). A similar trigger exists for eating the cheese. However, if the player enters 'eat church' then neither of these triggers will fire and AKS will reach the 'T,eat,*' trigger and print 'No thanks'. The addition of these extra scenario specific commands helps to give the scenario credibility.

The global location cannot be reached by the player and so requires no description or connection statements. Triggers which may occur in any location must be defined here. However, remember that triggers defined in the player's current location (local triggers) have priority over triggers defined in the global location (global triggers). If a local trigger is satisfied then the global trigger will never even be tested. This is illustrated in Witch Hunt by the global trigger 'T,n,north,*' and the local trigger defined in location 13, 'T,n,north,church, *-F4.012'. If the player is at location 13 and enters the command 'go north' then AKS try to match the local trigger first. The keyword 'north' will match and so the condition '*-F4.012' will be evaluated. When this evaluates to false, the trigger is not satisfied and so AKS continues to try the remaining local trigger statements; only when all these have been tried are the global triggers tried resulting in the firing of the unconditional 'T,n,north,*'. In the case where ' *-F4.012' evaluates to true, the actions immediately following the local trigger statement are executed and no further trigger testing is done; hence AKS does not reach the global trigger statement. In this way, the same keyword can be made to have different effects in different locations. Here, 'north' is made to cause an entirely different action in location 13 to the normal global one.

7690 DATA L,0
7700 DATA T ,n ,north,*F4
7710 DATA A,GO,N
7720 DATA A,ZI,12
7730 DATA T,n,north,*
7740 DATA A,GQ,N
7750 DATA T,e,east,*F4
7760 DATA A,GO,E
7770 DATA A,ZI,12
7780 DATA T,e,east,*
7790 DATA A,GO,E
7800 DATA T,s,south,*F4
7910 DATA A,GO,S
7920 DATA A,ZI,12
7930 DATA T,s,south,*
7940 DATA A,GO,S
7950 DATA T,w,west,*F4
7960 DATA A,GO,W
7070 DATA A,ZI,12
7880 DATA T,w,west,*
7090 DATA A,GO,W
7900 DATA T,u,up,*F4
7910 DATA A,GO,U
7920 DATA A,ZI,12
7930 DATA T,u,up,*
7940 DATA A,GO,U
7950 DATA T,d,down,*F4
7960 DATA A,GO,D
7970 DATA A,ZI,12
7980 DATA T,d,down,*
7990 DATA A,GO,D
8000 DATA T,wear,put on,*
8010 DATA A,PO
8020 DATA T,remove,take off,*
8030 DATA A,TO
8040 DATA T,get,take,pick up,catch,*
8050 DATA A,GE
8060 DATA T,drop,put,throw,release,*
8070 DATA A,DR
8080 DATA T,ex,exam,examine,look at,*
8090 DATA A,EX
8100 DATA T,i,inv,inventory,*
8110 DATA A,IN 8120 DATA T,score,*
8130 DATA A,SC 8140 DATA T,load,*
8150 DATA A,LO
8160 DATA A,IS,—1
8170 DATA T,save,*
8180 DATA A,SA
8190 DATA T,eat bread,eat loaf,*C5
8200 DATA A,PR,yummy yummy!
8210 DATA A,ZO,5
8220 DATA T,eat cheese,*C4
8230 DATA A,PR,Far too mouldy!
8240 DATA T,eat,*
8250 DATA A,PR,No thanks.
8260 DATA T,feed cat,drop mouse,release mouse,*C6,012
8270 DATA A,PR,The cat takes both mouse and cheese and the n runs off.
8280 DATA A,IS,10
8270 DATA A,AF,4,F
8300 DATA A,ZO,6
0310 DATA A,ZO,12
8320 DATA A,HC,0
8330 DATA T,hit,kill,attack,*
8340 DATA A,PR,Sorry. No violence is allowed in this game.
8350 DATA T,show,give,accuse,feed,*
8360 DATA A,PR,Not interested.
8370 DATA T,quit,*
S380 DATA A,SC
8390 DATA A,QU

LOCATION 1 - GREEN MIDDLE

This is the first real game location in the scenario definition. Witch Hunt starts the player off at this location. This location has two description definitions (D statements). The description the player is given will always start with the first of these which has no condition attached. The second description is only given when the player has not spent one game turn at this location (ie. not visited location 1, '*-V1is true). Being as the player starts at this location he will only receive the second description once — before his first move. In this way, Witch Hunt implements the usual introduction to an adventure game (ie. as the second description).

The player is only allowed 100 turns in which to complete Witch Hunt. The counting of moves is done using one of the AKS counters (counter I). When the counter reaches zero event 1 will fire automatically and the actions defined in event 1 will be executed. These actions are described later in this chapter. However, for a countdown to be started, the player's first move must result in an initialise counter (IC) action. For this reason there is a trigger for each possible direction of movement from this location (N,S,E,W). In addition to the normal effect of moving the player (by 'GO,N 'GO,S', etc.) each of these triggers initialises counter 1 to 100 (by 'IC,1,100'). Although this would have the desired effect on the player's first move, if the player later returns to this location and moves off again then the counter will be reinitialised to 100. This would be fine if you wanted to implement something like a player holding his breath as he leaves a diving bell and having to return to the bell within 100 moves or drown, but we don't. Therefore a flag (flag II) is used to indicate whether the initialisation has been done or not. AKS automatically initialises all flags to false (F) at the start of a game. The movement triggers test for this flag not being true (by '*-F11') before firing and once fired they assign a value of true to flag 11 (by 'AF, 11 ,T'). Counter 1 will only be initialised by the player's first movement as these triggers will never fire again.

Travelling east from this location will take the player to location 2 — the inn. The trigger keyword 'inn' allows the player to enter commands like 'go inn' or 'enter inn'. However, if the player has been banned from the inn (ie. flag 6 is set to T) then the trigger 'T.inn,*-F6' will not fire. Instead, the 'T,e,east,inn,'F6' trigger will fire and print a message saying that the player may not enter. The latter is another example of the local trigger having priority over the global trigger.

8400 DATA L,1
8410 DATA D,*,In the middle of the village green.
8420 DATA D,*-V1,Beyond the north end of the green you can see your home - the mill. To east is the inn. The church where all this trouble began is to the south. You can h ear the goats making goaty noises to the west.
8430 DATA T,inn,*-F6
8440 DATA A,GO,E
8450 DATA T,e,east,inn,*F6
8460 DATA A,PR,The innkeeper refuses to let you enter the inn.
8470 DATA T,e,east,inn,*-F11
8480 DATA A,GO,E
8490 DATA A,AF,11,T
8500 DATA A,IC,1,100
8510 DATA T,n,north,*-F11
8520 DATA A,GO,N
8530 DATA A, AF, 11, T
8540 DATA A,IC,1,100
8550 DATA T,w,west,*-F11
8560 DATA A,GO,W
8570 DATA A,AF,11,T
8580 DATA A,IC,1,100
8590 DATA T,s,south,*-F11
8600 DATA A,GO,S
8610 DATA A,AF,11,T
8620 DATA A,IC,1,100
8630 DATA C,N,*,4
8640 DATA C,S,*,6
8650 DATA C,E,*,2
8660 DATA C,W,*,5

LOCATION 2 - INN BAR

The bar in the Melbourne Inn has an unconditional short description and a long description for the first visit to the location implemented in the same way as for location 1. The long description mentions that the kitchen door is slightly ajar thereby giving a clue to the way of trying the hat on the innkeeper. A third description is given when the player has balanced the hat on the door. Triggers exist to allow the hat to be placed on the door and to retrieve it should the player fail to complete the puzzle. Two versions of calling the innkeeper allow him to enter the room when the hat is either on or off the door (flag 5). Notice that the nnkeeper object is never actually moved as the messages displayed make this seem to happen without having to genuinely move the object. When the innkeeper is called and the hat is on the door, the player discovers that the hat does not fit him, gains ten points for solving this puzzle (by Increment Score — 'IS,10'), gets thrown out of the inn with the hat and banned from returning (by 'AF,6,T').

8670 DATA L,2
8680 DATA D,*,The bar in the Melbourne Inn.
8690 DATA D,»F3,Some fool has balanced a pointed hat on top of the kitchen door!
8700 DATA D,*-V2,The inn is closed at the moment due to the unexplained spoiling of the ale. The kitchen door sits slightly ajar at the east end of the room.
8710 DATA T,balance hat,put hat,place hat,*C1
8720 DATA A,PR,You manage to balance the hat on top of the kitchen door.
8730 DATA A,AF,5,T
8740 DATA A,ZO,1
8750 DATA T,e,east,kitchen,*F5
8760 DATA A,PR,The hat falls to the floor.
8770 DATA A,ZI,1
8780 DATA A,AF,3,F
8790 DATA A,GO,E
8800 DATA T,get hat,*
8810 DATA A,ZI,1
8820 DATA A,AF,3,F
8830 DATA A,GE
8840 DATA T,call,shout,*-F5
8850 DATA A,PR, "The in keeper comes into the room but seeing you he crosses himself and dashes back into the kitchen. "
8860 DATA T,call,shout,*F5
8870 DATA A,PR,The innkeeper pushes the kitchen door open and steps in the room.
8880 DATA A,FR,PLOP! The hat lands on his head. It looks like a thimble on a giants head. He throws you and your h at out of the inn.
8890 DATA A,IS,10
8900 DATA A,GO,W
8910 DATA A,ZI,1
8920 DATA A,AF,5,F
8930 DATA A,AF,6,T
8940 DATA T,leave,out,*
8950 DATA A,GO,W
8960 DATA C,E,*,3 8970 DATA C,W,*,1

LOCATION 3 - INN KITCHEN

The kitchen in the Melbourne Inn is the home for two puzzles — the cheese and the bread. The innkeeper will not allow the player to take either of these objects. Provided that the objects are present, local triggers will trap an attempt to 'get cheese' or any mention of the words 'loaf and 'bread'. Instead of performing the normal get action, a message is printed telling the player that the innkeeper has prevented his action. Both messages contain clues to a way of obtaining the appropriate object. In the case of the cheese, the clue is in the words “.. . openly trying to take . . .". The solution is to not try and take the cheese openly — 'steal' it. In the case of the bread, the clue is in the words . . last loaf. . ." and in the fact that on entering the inn bar the player is told that the innkeeper is broke. Giving the innkeeper a sack of flour from the mill allows him to bake some new loaves and so he gives the player the old one. This is implemented by the trigger "T,give,*010.05” which may fire when the player is carrying the flour (object 10) and when the innkeeper has the loaf to give away (object 5 is at this location). Although dishonest enough to accept stolen flour, he will not be interested in receiving money from the player because of the danger of being accused of stealing the woodcutter's gold.

8980 DATA L,3
8990 DATA D,*,Kitchen in the Melbourne.
9000 DATA D,*-V3,It seems surprisingly empty. Perhaps the i nnkeeper is a little short of money at the moment.
9010 DATA T,steal cheese,*
9020 DATA A,GE
9030 DATA T,cheese,*04
9040 DATA A,PR,GET OFF MY CHEESE! What do you mean openly trying to take my -food!
9050 DATA T,gi ve,*C10.05
9060 DATA A,PR,The innkeeper says "Oh goody goody. I A can bake some more loaves now." and grabs your sack of flour. "You can have this loaf. "
9070 DATA A,MO,5,0
9080 DATA A,ZO,10
9090 DATA T,loaf,bread,*05
9100 DATA A,PR,GET OFF MY BREAD! What do you mean trying to take my last loaf!
9110 DATA T,leave,out,bar,»
9120 DATA A,GO,W
9130 DATA C,W,*,2

LOCATION 4 - GREEN NORTH

The north end of the village green is the location where the game can be completed. With the blacksmith in the stocks here for stealing the woodcutter's gold (flag 10 is set to T), the hat can be tried on the woodcutter and found to fit. The final twenty points are awarded for doing this (by 'IS,20') and the player clears himself.

9140 DATA L,4
9150 DATA D,*,At the north end of the village green.
9160 DATA D,*-V4,You remember coming here in the past to th row rotten food (and the odd brick) at people in the sto cks. This is where they always burnt witches. You rememb er throwing on wood... Those were good times.
9170 DATA T,put hat,place hat,try hat,*C1.F10
9180 DATA A,PR,It fits!
9190 DATA A,PR,A crowd of villagers gather. "The blacksmit his the witch ! " screams the priest. "Burn him! Burn him ! Burn him!". And they do. Everyone has a real good time ... roasting chestnuts and potatoes in the fire. You hav e cleared yourself.
9200 DATA A,IS,20
9210 DATA A,SC
9220 DATA A,QU
9230 DATA T,road,*
9240 DATA A,GO,E
9250 DATA C,S,*,1 9260 DATA C,E,*,14

LOCATION 5 - GRAZING LAND

This location is a red herring. It is a very good way of losing bread and cheese to the goats. If the player is carrying either the cheese or the bread and tries to feed these (or any other object) to the goats then a goat will help itself to either cheese or bread. The order of triggers makes the goats prefer cheese to bread. In addition to this, any attempt

to perform an action using either cheese or bread will result in the goats snatching one or the other.

9270 DATA L,5
9280 DATA D,*,An area of grazing land.
9290 DATA T,feed,cheese,*C4
9300 DATA A,PR,A goat snatches your cheese and eats it.
9310 DATA A,ZO,4
9320 DATA T,feed,bread,1 oaf,*C5
9330 DATA A,PR,A goat snatches your bread and eats it.
9340 DATA A,Z0,5 9350 DATA C,E,*,1

LOCATION 6 - GREEN SOUTH

9360 DATA L,6
9370 DATA D,*,At the southern end of the village green.
9380 DATA D,*-V6,A foul odour drifts from the direction of the meadow at the west of the green.
9390 DATA T,meadow,*
9400 DATA A,GO,W
9410 DATA T,church,*
9420 DATA A,GO,S
9430 DATA C,W,*,B
9440 DATA C,N,*,1
9450 DATA C,S,*,10

LOCATION 7 - POND

The water in the pond is stagnant and may not be reached by the player. The pond does provide a means of releasing the goatherd from the spell which has turned him into a toad. Throwing the toad into the pond undoes the spell and so he turns back into a boy. Five points are awarded for this and a clue from the boy tells the player to try exploring the woods. The changing of the toad to a boy is only a change in the description of the toad object (object 2) brought about by setting a flag (flag 3) to true. This technique is explained in the description of the toad object later in this chapter.

Feeding the ducks the bread from the inn makes the ducks move away from their nest and reveal the woodcutter's gold. Unlike the toad to boy change, the ducks to gold change involves a genuine substitution of objects. The ducks object (object 3) is Zapped Out to nowhere and the gold object (object 14) is Zapped In from nowhere. The reason for this alternative approach is that the gold object can be manipulated by the player whereas the boy object can not. Were the description switching technique used here, the player could create strange effects by referring to the gold as ducks. While not doing any harm in terms of the scenario, this would make the game appear rather stupid to the player.

9460 DATA L,7
9470 DATA D,*,At the edge of the village pond.
9400 DATA D,*-V7,The pond Is stagnant and smells foul.
9490 DATA T,put toad,drop toad,throw toad,release toad,*C2.-F3
9500 DATA A,DR
9510 DATA A,PR,Splash...! The toad turns into a small boy. "Where am I? What happened?" he mutters as he climbs ou t of the pond. "Last thing I remember I was strolling in the woods!"
9520 DATA A,AF,3,T
9530 DATA A,IS,5
9540 DATA T,feed duck,feed ducks,*C5
9550 DATA A,PR,The ducks gabble up the bread and leave. There was something hidden in their nest.
9560 DATA A,ZO,3
9570 DATA A,ZO,5
9580 DATA A,ZI,14
9590 DATA A,IS,5
9600 DATA T,fill,water,pond,*
9610 DATA A,PR,It is impossible to get at the water.
9620 DATA C,S,*,0

LOCATION 8 - MEADOW

9630 DATA L,B
9640 DATA D,*VB,In the meadow.
9650 DATA D,*-V8,In the middle of a meadow. To the north th e ground becomes marshy. At the western end of the meado w you can see a wooden building.
9660 DATA C,N,*,7
9670 DATA C,W,*,9
9680 DATA C,E,*,6

LOCATION 9 - FORGE

The description the player is given on the first visit to this location says that the blacksmith is well known for his all round handyman skills. This might give the player a clue as to who carved the intricate markings on the floor of the secret crypt.

Showing the blacksmith anything other than gold coins, or accusing him of something when the coins (object 14) are not carried results in the player being told to go away. However if the player is carrying the coins the blacksmith will confess to stealing the woodcutter's gold and is dragged away by the villagers. The player is not told where they take him — to the stocks on the north of the green (by 'MO,16,4'). A flag is set (flag 10) to indicate that the blacksmith is in the stocks. Twenty points are awarded for completing this puzzle.

9690 DATA L,9
9700 DATA D,*,At the blacksmith's forge.
9710 DATA D,*-V9,You remember coming here often in the past. The blacksmith always repairs everyones tools. He is a pretty good all round handyman.
9720 DATA T,show gold,give gold,show coins,give coins,accuse,*C14
9730 DATA A,PR,The blacksmith bursts into tears. "Alright. I confess - I stole the woodcutter's gold. " he blurts out.
9740 DATA A,PR,A crowd of villagers rush up and drag the pleading blacksmith away.
9750 DATA A,IS,20
9760 DATA A,AF,10,T
9770 DATA A,MO,16,4
9780 DATA T,show,give,accuse,forge,anvil,*
9790 DATA A,PR,He shouts "Be off with you! Little witch.".
9800 DATA C,E,*,B

LOCATION 10 - CHURCH NAVE

Once the player has managed to get the hat to land over the priest's head and shoulders as described in the next location explanation, the hat must be retrieved. The trigger which traps the keyword 'hat' when the hat is on the priest's head Zaps Out the priest (object 9), Zaps In the hat (object 1) and then does a Get to pick it up.

9010 DATA L,10
9020 DATA D,*,In the church nave.
9830 DATA D,*-V10,The secret entrance to the crypt you found lies open. High above you is the belfry balcony. The front door is to the north. In the south Mall is a small door.
9840 DATA T,hat,*F2.09
9850 DATA A,PR,Tug...
9860 DATA A,ZI,1
9B70 DATA A,AF,1,F
9880 DATA A,Z0,9
9890 DATA A,GE
9900 DATA A,PR,The priest storms off.
9910 DATA T,crypt,*
9920 DATA A,GO,D
9930 DATA T,belfry,*
9940 DATA A,GO,U
9950 DATA C,N,*,6
9960 DATA C,S,*,13
9970 DATA C,D,*,12
9980 DATA C,U,*,11

LOCATION 11 - CHURCH BELFRY

The puzzle at this location is a two stage one, given that the player has already found the hat. The first stage is to ring the bell which causes the priest (object 9) to come from the crypt and stand in the nave (location 10) directly below you (by 'MO.9,10'). Setting flag 1 to true causes the priest's description to change to say he is looking up at the belfry. The second stage of the puzzle involves dropping the hat from the belfry onto the priest's head (indicated by setting flag 2 to T) to reveal that it is too large for the small priest and gain ten points. If the bell has not been rung when the hat is dropped (flag 1 is F) then it just falls onto the nave floor, as a result of the second 'drop hat' trigger statement.

9790 DATA L,11
10000 DATA D,*,In the belfry.
10010 DATA D,#-Vll,Far below you can see the church nave.
10020 DATA T,ring bel1,*-(FI/F2)
10030 DATA A,PR,The bell tolls and nearly deafens you!
10040 DATA A,MO,9,10
10050 DATA A,PR,You see the priest run into the church dire ctly below you.
10060 DATA A,AF,1 ,T
10070 DATA T,ring bell,*
10080 DATA A,PR,Ding dong...!
10090 DATA T,drop hat,throw hat,*C1.F1
10100 DATA A,PR,The hat drops from the belfry and lands ove r the priest's head.
10110 DATA A,15,10
10120 DATA A, AF, 2, T
10130 DATA A,ZO,1
10140 DATA T,drop hat,throw hat,*C1.-F110150 DATA A,FR,Weeee.... It falls from the belfrey.
10160 DATA A,MO,1,10
10170 DATA T,nave,leave,*
10180 DATA A,GO,D 10170 DATA C,D,*,10

LOCATION 12 - CHURCH CRYPT

This is the location discovered by the player (before the game started) and where he was caught by the priest. The function of the crypt in the Witch Hunt scenario is to provide the player with clues to the identity of the witch, without providing any hard and fast evidence. The clues are obtained by examining the location. Examination of the markings on the floor reveals nothing of their meaning but the player is told that they are well carved. When the player first visits the blacksmith, he is reminded that the smith is well known for his all round handyman skills. This clue is a little vague whereas the clue given by examining the torches on the wall is very informative. Just mentioning torches says that they are firmly attached to the wall by brackets. The unwary player may take this to only mean that the torches may not be taken. However, this should prompt the player to examine the brackets and discover that they are made of iron. This points very strongly at the blacksmith's involvement. Notice that the markings, torches and brackets are not objects and so their examination requires explicit triggers in the crypt location definition; whereas objects have their examination details embedded in the object definition.

10200 DATA L,12
10210 DATA D,*,In the secret crypt.
10220 DATA D,*-V12,The air is icy cold. The floor is intrica
tely carved with strange markings. On the wall are lit t orches.
10230 DATA T,torches,torch,wall,walls,*
10240 DATA A,PR,A couple of torches are firmly attatched to the wall by brackets.
10250 DATA T,bracket,brackets,*
10260 DATA A,PR,Just plain iron brackets.
10270 DATA T, floor,markings,*
10200 DATA A,FR,You can make no sense of the markings but you can see they are well carved.
10290 DATA T,leave,*
10300 DATA A,GO,U
10310 DATA C,U,*,10

LOCATION 11 - CHURCH BELFRY

The puzzle at this location is a two stage one, given that the player has already found the hat. The first stage is to ring the bell which causes the priest (object 9) to come from the crypt and stand in the nave (location 10) directly below you (by 'MO.9,10'). Setting flag 1 to true causes the priest's description to change to say he is looking up at the belfry. The second stage of the puzzle involves dropping the hat from the belfry onto the priest's head (indicated by setting flag 2 to T) to reveal that it is too large for the small priest and gain ten points. If the bell has not been rung when the hat is dropped (flag 1 is F) then it just falls onto the nave floor, as a result of the second 'drop hat' trigger statement.

9790 DATA L,11
10000 DATA D,*,In the belfry.
10010 DATA D,*-V11,Far below you can see the church nave.
10020 DATA T,ring bel1,*-(F1/F2)
10030 DATA A,PR,The bell tolls and nearly deafens you!
10040 DATA A,MO,9,10
10050 DATA A,PR,You see the priest run into the church dire ctly below you.
10060 DATA A,AF,1 ,T
10070 DATA T.ring bell,*
10080 DATA A,PR,Ding dong...!
10090 DATA T,drop hat,throw hat,*C1.F1
10100 DATA A,PR,The hat drops from the belfry and lands ove r the priest's head.
10110 DATA A,15,10
10120 DATA A, AF, 2, T
10130 DATA A,ZO,1
10140 DATA T,drop hat,throw hat,*C1.-F1
10150 DATA A,FR,Weeee.... It falls from the belfrey.
10160 DATA A,MO,1,10
10170 DATA T,nave,leave,*
10180 DATA A,GO,D
10170 DATA C,D,*,10

LOCATION 12 - CHURCH CRYPT

This is the location discovered by the player (before the game started) and where he was caught by the priest. The function of the crypt in the Witch Hunt scenario is to provide the player with clues to the identity of the witch, without providing any hard and fast evidence. The clues are obtained by examining the location. Examination of the markings on the floor reveals nothing of their meaning but the player is told that they are well carved. When the player first visits the blacksmith, he is reminded that the smith is well known for his all round handyman skills. This clue is a little vague whereas the clue given by examining the torches on the wall is very informative. Just mentioning torches says that they are firmly attached to the wall by brackets. The unwary player may take this to only mean that the torches may not be taken. However, this should prompt the player to examine the brackets and discover that they are made of iron. This points very strongly at the blacksmith's involvement. Notice that the markings, torches and brackets are not objects and so their examination requires explicit triggers in the crypt location definition; whereas objects have their examination details embedded in the object definition.

10200 DATA L,12
10210 DATA D,*,In the secret crypt.
10220 DATA D,*-V12,The air is icy cold. The floor is intricately carved with strange markings. On the wall are lit t orches.
10230 DATA T,torches,torch,wall,walls,*
10240 DATA A,PR,A couple of torches are firmly attatched to the wall by brackets.
10250 DATA T,bracket,brackets,*
10260 DATA A,PR,Just plain iron brackets.
10270 DATA T, floor,markings,*
10200 DATA A,FR,You can make no sense of the markings but you can see they are well carved.
10290 DATA T,leave,*
10300 DATA A,GO,U
10310 DATA C,U,*,10

When the player goes north from here he trips over a black cat which will then follow him around for 20 moves before a crowd of villagers notice he has a black cat familiar and decide to burn him. The counting of moves is done using counter 0 and the villagers burning the player is event 0. The local trigger which traps an attempt to move north starts the countdown by the action 'IC,0,20'. In addition to this, a flag is set to indicate that the player is being followed by the cat (flag 4). This prevents the same trigger from firing again when the player tries to go north again and it allows firing of the alternative set of movement triggers defined in the global location. These alternative movement triggers move both player and cat. The way in which the player may get rid of the cat is described in the explanation of the mill location definition (location 16). It should be noted that the cat will appear again should the player return here and go north again after having got rid of the cat at the mill. However, the objects to get rid of the cat have been destroyed (Zapped Out to nowhere) at this stage in the game so the cat can not be disposed of again.

10320 DATA L,13
10330 DATA D,*,In the churchyard.
10340 DATA T,dig,grave,headstone,tomb,*
10350 DATA A,PR,Careful... they bury grave robbers around here!
10360 DATA T,n,north,church,*-F4
10370 DATA A,PR,You trip over a black cat which appears -from behind a headstone!
10380 DATA A,ZI,12
10390 DATA A,AF,4,T
10400 DATA A,IC,0,20
10410 DATA T,church,*
10420 DATA A,GO,N
10430 DATA T,woods,*
10440 DATA A,GO,W
10450 DATA C,N,*,10
10460 DATA C,W,*,18

To prevent the player wasting many hours trying to give a hat full of stream water to characters other than the miller, a local trigger will fire as the player moves westwards carrying the hat of water. This trigger tells the player that he tripped and spilt it. The flag indicating that the hat is full of water (flag 8) is reset to F; thereby emptying the hat.

LOCATION 14 - ROAD

10470 DATA L,14
10480 DATA D,*,The road.
10490 DATA D,»-V14,You know this road well. To the north it passes by the mill on its way to town.
10500 DATA T,w,west,*F8
10510 DATA A,PR,WHOOPS! You tripped and spilt the water.
10520 DATA A,AF,0,F
10530 DATA T,-follow road,along road,*
10540 DATA A,GO,N
10550 DATA C,W, *,4
10560 DATA C,N,*,15

LOCATION 15 - BRIDGE

The player may not fill the hat at this location. If he attempts this then the trigger will say that he is unable to fill it here. A careless adventurer may take this to mean that the hat may not be filled instead of 'not filled here'.

10570 DATA L,15
105B0 DATA D,*,On a bridge over a stream.
10590 DATA T,water,stream,fill,down,d,*
10600 DATA A,PR,The stream is totally inaccessable from here.
10610 DATA C,S,*,14 10620 DATA C,N,*,16

LOCATION 16 - MILL

There are two problems to be overcome at the mill. Firstly, the mouse must be caught. However, the player is not automatically told that there is a mouse here. Instead he is told that something is moving around in the rafters. Examination of the rafters or listening in this location will inform the player that he thinks that there is a rat in the rafters. If the player then mentions the keyword 'rat' or 'rats' he is told that it is a mouse not a rat. These triggers only fire when the mouse is in the rafters (ie. flag 7 is F). The mouse can be tempted from the rafters by feeding it the cheese or just dropping the cheese. When this happens, the cheese object is Zapped Out (by 'Z0,4') and flag 7 is set to T indicating the mouse is no longer in the rafters. The description of the mouse changes as a result of setting flag 7 and becomes a 'piece of cheese with a mouse attached to it'. An attempt to get the cheese when flag 7 is set to T results in a message saying that the mouse refuses to let go of it. If the player has the hat he may catch the mouse in it otherwise the mouse will slip through his fingers. From hereon the mouse and cheese may be manipulated as one object.

The second problem faced by the player in this location is finding out if the hat fits the miller. This is solved by giving the miller the hat full of water. He will drink some of the water and then pour the rest over his head at which point the player sees that the hat would not fit the miller. Ten points are awarded for doing this. However, if the player has already done this once (ie. flag 9 is T) and tries a second time, the miller just smiles and says go away creep. When the miller took his drink, he put down the sack of flour (object 10) he was carrying and did not pick it up again when he started working again. The sack can now be picked up by the player. Previously, any mention of flour or sacks caused a trigger to fire which said the miller growls at you.

10630 DATA L,16
10640 DATA D,*,The mill.
10650 DATA T,listen,*-F7
10660 DATA A,PR,You can hear a faint scurrying noise. You wonder if it is a rat.
10670 DATA T,rafters, *-F7
106B0 DATA A,PR,Something is making noises. You wonder if it is a rat.
10670 DATA T,rat,rats,*-F7
10700 DATA A,PR,Rat! Pah! I'm a mouse you fool.
10710 DATA T,feed mouse,drop cheese,*C4
10720 DATA A,PR,The mouse scurries doHn and nibbles the che ese.
10730 DATA A,AF,7,T
10740 DATA A,ZO,4
10750 DATA T,catch mouse,get mouse,take mouse,pick up mouse, *F7.C1.-(W1/FB)
10760 DATA A,GE
10770 DATA A,PR,You caught the mouse in the hat.
10780 DATA T,catch mouse,get mouse,take mouse,pick up mouse, *F7
10790 DATA A,PR,He slips through your fingers.
10800 DATA T,cheese,*F7.(06/C6)
10810 DATA A,PR.The mouse holds onto the cheese.
10820 DATA T,flour,sack,grain,bag,mill,*-F9
10830 DATA A,PR,The miller growls at you!
10840 DATA T,give,*F8.-F9
10850 DATA A,PR,"The miller puts the sack down, takes the hat and drinks some water.
10860 DATA A,PR,He says "Ta Lad." and then pours the rest o ver his head. As he does this you notice that the hat is too small for him to wear.
10870 DATA A,IS,10
10880 DATA A,AF,B,F
10890 DATA A,ZI, 10
10900 DATA A,AF,9,T
10910 DATA T,give,*F8.F9
10920 DATA A,PR,He smiles and says "Go away creep."
10930 DATA C,S,*,13
10940 DATA C,W,*,17

LOCATION 17 - STREAM

Unlike the bridge over the stream and the pond this location allows the player to fill the hat with water. To indicate the hat is full of water, flag 8 is assigned the value T. Should the player be foolish enough to forget to take the hat off (ie. 'W1' is T) before attempting to fill it, he is told why his action failed.

10950 DATA L,17
10960 DATA D,*,By the stream.
10970 DATA D,*-V17,A loud splashing sound comes -from the wat er wheel. The water looks as -fresh and clear as ever.
10980 DATA T, fill ,#C1.-(W1/C6)
10990 DATA A,PR,If you Insist.
11000 DATA A,AF,8,T
11010 DATA T,fill hat,*W1
11020 DATA A,PR,Bargle...gargle...bubble! You are unable to hold your breath any longer and take your head out of t he stream.
11030 DATA T,mill,*
11040 DATA A, GO, E
11050 DATA C,E,#,16

LOCATION 18 - WOODS (a)

This location is the first WOODS location the player reaches. When the player arrives here for the first time, the second description is given in addition to the main description as a warning to the player.

11060 DATA L,18
11070 DATA D,*,In the deep dark woods.
11080 DATA D,*-V18,Careful! You might get lost.
11090 DATA C,E,*,13
11100 DATA C,W,*,19

LOCATION 19..22 - WOODS (b)

These locations all have the same description as location 18 making it difficult for the player to find his way around. To further complicate navigation of this maze, moving in a certain direction does not always take the player to the next physical location in that direction. Reference to the location map will quickly clarify this idea.

11110 DATA L,19
11120 DATA D,*,In the deep dark woods.
11130 DATA C,E,*,10
11140 DATA C,S,*,20
11150 DATA C,W,*,21
11160 DATA L,20
11170 DATA D,#,In the deep dark woods.
11100 DATA C,W,*,23
11190 DATA C,N,*,19
11200 DATA C,S,*,22
11210 DATA C,E,*,21
11220 DATA L,21
11230 DATA D,*,In the deep dark woods.
11240 DATA C,W,*,20
11250 DATA C,E,*,21
11260 DATA C,B,*,23
11270 DATA L,22
11200 DATA D,*,In the deep dark woods.
11290 DATA C,N,*,20
11300 DATA C,E,*,23

LOCATION 23 - WOODS (c)

This is another location in the maze but, as the player arrives for the first time a second description tells the player that he thought he saw someone run away. The player finds the hat here.

11310 DATA L,23
11320 DATA D,*,In the deep dark woods.
11330 DATA D,*-V23,As you arrived you thought you saw someon e run away.
11340 DATA C,N,*,20
11350 DATA C,E,*,24
11360 DATA C,W,*,22

LOCATION 24 - CLEARING

The clearing in the woods exists to provide the player with a hint tor getting the woodcutter to try the hat on. One part of the location description says that the clearing is sheltered from the wind and the sun seems very hot. Wearing the hat removes this part of the description. The player must be wearing the hat when he first moves south to the woodcutter's house. Seeing that the player is wearing the hat, the overheating woodcutter takes it and tries it on for size to see if it will shade him from the sun. It does not fit so he replaces it on the player's head. The player is awarded ten points for solving this part of the scenario.

11370 DATA L,24
11380 DATA D,*,In a clearing in the woods.
11390 DATA D,*-Wl, 11 is sheltered -from the wind here and the sun is uncomfortably hot.
11400 DATA D,*-V24,You hear a loud chopping sound to the south.
11410 DATA T,s,south,#-V23.W1
11420 DATA A,IS,10
11430 DATA A,GO,S
11440 DATA C,W,*,22
11450 DATA C,S,*,25

LOCATION 25 — WOODCUTTER S

The woodcutter can be found here. Any mention of the woodcutter's hut results in the player being told off by the woodcutter.

11460 DATA L,25
11470 DATA D,#,The wood cutter's hut.
11480 DATA T,hut,*
11470 DATA A,PR,The woodcutter bars your way. "I've already had my gold stolen. I'm not going to lose anything else . Keep out!"
11500 DATA C,N,#,24

★ YEAR: 1985
★ AUTHORS: Mike Lewis & Simon Price

Page précédente : Writing Adventure Games on the Amstrad - 16 - Breakdown of witch hunt
Je participe au site:

» 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
Page créée en 075 millisecondes et consultée 761 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.