Prev: 50161 Up: Map Next: 50177
50170: Handler: Put Scenic Event Into Play
Used by the routine at Action_Take.
Writes 255 over the event's byte in Table_ScenicEventLocations. On the next turn GameEventsProcessor treats 255 as in play but not yet in a room, and picks one from Data_ScenicEvents_Seagull.
Input
A Scenic event ID (+128)
Handler_PutScenicEventIntoPlay 50170 LD B,A Copy the scenic event ID into B.
50171 LD C,255 Set C to 255 so the event is in play but has no room yet.
50173 CALL Handler_UpdateObjectLocation Call Handler_UpdateObjectLocation.
50176 RET Return.
View the equivalent code in;
Prev: 50161 Up: Map Next: 50177