Prev: 42229 Up: Map Next: 42305
42238: Event: A Short Reply
Prints one of "you are doing a great job", "hurry up" or "hello". A character script calls this from 51415.
If the message is held back, the short reply is not printed.
Event_AShortReply 42238 CALL ConditionSuppressTheMessage Call ConditionSuppressTheMessage. If the message is held back, the short reply is not printed.
42241 LD A,2 Roll a random number below 2.
Roll a random number.
42243 CALL GetRandomNumber Call GetRandomNumber to roll a number from the limit in A.
42246 LD HL,45138 Point HL at "you are do(s|d|ing|es) a great job.".
42249 CP 0 Jump back to Response_YouSay when A is zero.
42251 JP Z,Response_YouSay
42254 LD HL,45147 Point HL at "hurry up.".
42257 CP 1 Jump back to Response_YouSay if the roll is 1.
42259 JP Z,Response_YouSay
42262 LD HL,45151 Point HL at "hello.".
42265 JP Response_YouSay Jump back to Response_YouSay to print "hello.".
If the message is held back, Thrain's key is not mentioned.
42268 CALL ConditionSuppressTheMessage Call ConditionSuppressTheMessage. If the message is held back, Thrain's key is not mentioned.
42271 LD HL,45153 Point HL at "this was Thrains key.".
42274 JP Response_YouSay Jump back to Response_YouSay to print "this was thrains key.".
42277 LD A,(46838) Read *46838.
42280 LD HL,46837 Return if the script location is not where the player starts.
42283 CP (HL)
42284 RET NZ
If the message is held back, the hello is not printed.
42285 CALL ConditionSuppressTheMessage Call ConditionSuppressTheMessage. If the message is held back, the hello is not printed.
42288 LD HL,45151 Point HL at "hello.".
42291 JP Response_YouSay Jump back to Response_YouSay to print "hello.".
Test whose turn it is.
42294 LD A,(46826) Jump to ResponseThatWillNotWork if *CurrentCharacter is not 64.
42297 CP 64
42299 JP NZ,ResponseThatWillNotWork
42302 JP ActionOpenOrClose Jump to ActionOpenOrClose to open or close.
Prev: 42229 Up: Map Next: 42305