Prev: 37993 Up: Map Next: 38065
38012: Action: Swim
Swim when the current room contains water.
ActionSwim 38012 LD HL,35257 Jump to ActionSwim_Step1 when the command matches the phrase at 35257.
38015 CALL Parser_AdvanceToSeparator
38018 JR Z,ActionSwim_Step1
Print "You can't.".
38020 LD HL,25691 HL=Messaging_YouCanT.
38023 JR ActionSwim_Step4 Jump to ActionSwim_Step4.
ActionSwim_Step1 38025 LD A,(25123) Fetch the current room.
38028 CP 56 The player is in the water at room 56: " The Subterranean Lake".
38030 JR Z,ActionSwim_Step3
38032 CP 55 The player is in the water at room 55: " The West Bank of the Lake".
38034 JR Z,ActionSwim_Step3
38036 CP 57 The player is in the water at room 57: " The East Bank of the Lake".
38038 JR Z,ActionSwim_Step3
38040 CP 58 The player is in the water at room 58: " The South Bank of the Lake".
38042 JR Z,ActionSwim_Step3
38044 CP 47 The player is at the stream in The Underground Stream.
38046 JR Z,ActionSwim_Step2
Print "But there's no water here.".
38048 LD HL,31526 HL=Messaging_ButThereSNoWaterHere.
38051 JR ActionSwim_Step4 Jump to ActionSwim_Step4.
Print "The water is too shallow.".
ActionSwim_Step2 38053 LD HL,31641 HL=Messaging_TheWaterIsTooShallow.
38056 JR ActionSwim_Step4 Jump to ActionSwim_Step4.
Print "You plunge into the lake and have a pleasant,refreshing dip and then you get out again.".
ActionSwim_Step3 38058 LD HL,31553 HL=Messaging_YouPlungeIntoTheLakeAndHaveAPleasantRef.
ActionSwim_Step4 38061 CALL PrintStringAndANewline Call PrintStringAndANewline.
38064 RET Return.
View the equivalent code in;
Prev: 37993 Up: Map Next: 38065