Prev: 42091 Up: Map Next: 42157
42105: Take an object routine: Robin of Shylock
Robin will refuse to surrender the Bow or any egg he may have. He will only surrender the Newspaper in exchange for an egg. When surrendering the Newspaper, he will always take the most valuable egg Magic Knight currently has, i.e. Golden Egg > Silver Egg > Copper Egg.
Used by the routine at 64623.
42105 LD A,(41779) If Current Object is 33 (Newspaper)...
42108 CP 33 ...
42110 JP Z,42124 ...then skip ahead to 42124
42113 CP 35 If Current Object is 35 (Bow)...
42115 JP Z,64270 Display "[Character] WANTS TO KEEP THE [Object]" window (13) and return to game
42118 CALL 42247 If Current Object is an egg then display "[Character] WANTS TO KEEP THE [Object]" window (13) and return to main game loop
42121 JP 42036 Remove Current Object from Current Character's inventory and add it to Magic Knight's then return to main game loop
42124 LD A,36 Have current character try to take object 36 (Golden Egg) in exchange for Newspaper...
42126 CALL 42157 ...returning to main game loop if successful
42129 LD A,39 Have current character try to take object 39 (Golden Egg) in exchange for Newspaper...
42131 CALL 42157 ...returning to main game loop if successful
42134 LD A,37 Have current character try to take object 37 (Silver Egg) in exchange for Newspaper...
42136 CALL 42157 ...returning to main game loop if successful
42139 LD A,40 Have current character try to take object 40 (Silver Egg) in exchange for Newspaper...
42141 CALL 42157 ...returning to main game loop if successful
42144 LD A,38 Have current character try to take object 38 (Copper Egg) in exchange for Newspaper...
42146 CALL 42157 ...returning to main game loop if successful
42149 LD A,41 Have current character try to take object 41 (Copper Egg) in exchange for Newspaper...
42151 CALL 42157 ...returning to main game loop if successful
At this point, Robin will have failed to take an egg. In this case, he will refuse to surrender the Newspaper.
42154 JP 64270 Display "[Character] WANTS TO KEEP THE [Object]" window (13) and return to game
Prev: 42091 Up: Map Next: 42157