Prev: 9469 Up: Map Next: 94B1
947C: Action: Swim
Swim when the current room contains water.
ActionSwim 947C LD HL,$89B9 Jump to ActionSwim_Step1 when the command matches the phrase at 89B9.
947F CALL Parser_AdvanceToSeparator
9482 JR Z,ActionSwim_Step1
Print "You can't.".
9484 LD HL,$645B HL=Messaging_YouCanT.
9487 JR ActionSwim_Step4 Jump to ActionSwim_Step4.
ActionSwim_Step1 9489 LD A,($6223) Fetch the current room.
948C CP $38 The player is in the water at room 38: " The Subterranean Lake".
948E JR Z,ActionSwim_Step3
9490 CP $37 The player is in the water at room 37: " The West Bank of the Lake".
9492 JR Z,ActionSwim_Step3
9494 CP $39 The player is in the water at room 39: " The East Bank of the Lake".
9496 JR Z,ActionSwim_Step3
9498 CP $3A The player is in the water at room 3A: " The South Bank of the Lake".
949A JR Z,ActionSwim_Step3
949C CP $2F The player is at the stream in The Underground Stream.
949E JR Z,ActionSwim_Step2
Print "But there's no water here.".
94A0 LD HL,$7B26 HL=Messaging_ButThereSNoWaterHere.
94A3 JR ActionSwim_Step4 Jump to ActionSwim_Step4.
Print "The water is too shallow.".
ActionSwim_Step2 94A5 LD HL,$7B99 HL=Messaging_TheWaterIsTooShallow.
94A8 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 94AA LD HL,$7B41 HL=Messaging_YouPlungeIntoTheLakeAndHaveAPleasantRef.
ActionSwim_Step4 94AD CALL PrintStringAndANewline Call PrintStringAndANewline.
94B0 RET Return.
View the equivalent code in;
Prev: 9469 Up: Map Next: 94B1