![]() |
Routines |
| Prev: A4F5 | Up: Map | Next: A541 |
|
Prints one of "you are doing a great job", "hurry up" or "hello". A character script calls this from C8D7.
|
||||
|
If the message is held back, the short reply is not printed.
|
||||
| Event_AShortReply | A4FE | CALL ConditionSuppressTheMessage | Call ConditionSuppressTheMessage. If the message is held back, the short reply is not printed. | |
| A501 | LD A,$02 | Roll a random number below 02. | ||
|
Roll a random number.
|
||||
| A503 | CALL GetRandomNumber | Call GetRandomNumber to roll a number from the limit in A. | ||
| A506 | LD HL,$B052 | Point HL at "you are do(s|d|ing|es) a great job.". | ||
| A509 | CP $00 | Jump back to Response_YouSay when A is zero. | ||
| A50B | JP Z,Response_YouSay | |||
| A50E | LD HL,$B05B | Point HL at "hurry up.". | ||
| A511 | CP $01 | Jump back to Response_YouSay if the roll is 01. | ||
| A513 | JP Z,Response_YouSay | |||
| A516 | LD HL,$B05F | Point HL at "hello.". | ||
| A519 | JP Response_YouSay | Jump back to Response_YouSay to print "hello.". | ||
|
If the message is held back, Thrain's key is not mentioned.
|
||||
| A51C | CALL ConditionSuppressTheMessage | Call ConditionSuppressTheMessage. If the message is held back, Thrain's key is not mentioned. | ||
| A51F | LD HL,$B061 | Point HL at "this was Thrains key.". | ||
| A522 | JP Response_YouSay | Jump back to Response_YouSay to print "this was thrains key.". | ||
| A525 | LD A,($B6F6) | Read *B6F6. | ||
| A528 | LD HL,$B6F5 | Return if the script location is not where the player starts. | ||
| A52B | CP (HL) | |||
| A52C | RET NZ | |||
|
If the message is held back, the hello is not printed.
|
||||
| A52D | CALL ConditionSuppressTheMessage | Call ConditionSuppressTheMessage. If the message is held back, the hello is not printed. | ||
| A530 | LD HL,$B05F | Point HL at "hello.". | ||
| A533 | JP Response_YouSay | Jump back to Response_YouSay to print "hello.". | ||
|
Test whose turn it is.
|
||||
| A536 | LD A,($B6EA) | Jump to ResponseThatWillNotWork if *CurrentCharacter is not 40. | ||
| A539 | CP $40 | |||
| A53B | JP NZ,ResponseThatWillNotWork | |||
| A53E | JP ActionOpenOrClose | Jump to ActionOpenOrClose to open or close. | ||
| Prev: A4F5 | Up: Map | Next: A541 |