2021-07-20 21:18:31 +02:00
|
|
|
EventScript_TV::
|
2017-11-11 23:10:17 +01:00
|
|
|
lockall
|
2019-09-05 20:56:34 +02:00
|
|
|
incrementgamestat GAME_STAT_WATCHED_TV
|
2017-11-11 23:10:17 +01:00
|
|
|
special ResetTVShowState
|
2021-04-25 23:22:45 +02:00
|
|
|
specialvar VAR_RESULT, CheckForPlayersHouseNews
|
|
|
|
compare VAR_RESULT, PLAYERS_HOUSE_TV_MOVIE
|
2019-10-28 14:28:08 +01:00
|
|
|
goto_if_eq EventScript_PlayersHouseMovie
|
2021-04-25 23:22:45 +02:00
|
|
|
compare VAR_RESULT, PLAYERS_HOUSE_TV_LATI
|
2019-10-28 14:28:08 +01:00
|
|
|
goto_if_eq EventScript_PlayersHouseLatiNewsFlash
|
2019-11-12 18:55:46 +01:00
|
|
|
goto_if_unset FLAG_SYS_TV_START, EventScript_MomDadMightLikeThis1
|
|
|
|
goto_if_set FLAG_SYS_TV_WATCH, EventScript_MomDadMightLikeThis1
|
2021-04-25 23:22:45 +02:00
|
|
|
specialvar VAR_RESULT, IsGabbyAndTyShowOnTheAir
|
2019-11-12 18:55:46 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
goto_if_eq EventScript_DoInSearchOfTrainers
|
|
|
|
goto EventScript_TryDoPokeNews
|
2017-11-11 23:10:17 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_TryDoTVShow::
|
2019-11-12 18:55:46 +01:00
|
|
|
specialvar VAR_0x8004, GetRandomActiveShowIdx
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8004, 255
|
2019-11-12 18:55:46 +01:00
|
|
|
goto_if_eq EventScript_MomDadMightLikeThis2
|
|
|
|
specialvar VAR_RESULT, GetNextActiveShowIfMassOutbreak
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 255
|
2019-11-12 18:55:46 +01:00
|
|
|
goto_if_eq EventScript_MomDadMightLikeThis2
|
2017-11-11 23:10:17 +01:00
|
|
|
copyvar VAR_0x8004, VAR_RESULT
|
2019-11-12 18:55:46 +01:00
|
|
|
specialvar VAR_RESULT, GetSelectedTVShow
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-12 18:55:46 +01:00
|
|
|
goto_if_ne EventScript_DoTVShow
|
2017-11-11 23:10:17 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_MomDadMightLikeThis1::
|
2017-11-11 23:10:17 +01:00
|
|
|
special GetMomOrDadStringForTVMessage
|
2019-08-15 05:38:42 +02:00
|
|
|
msgbox gText_MomOrDadMightLikeThisProgram, MSGBOX_DEFAULT
|
2017-11-11 23:10:17 +01:00
|
|
|
special TurnOffTVScreen
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PlayersHouseMovie::
|
2019-10-23 02:50:41 +02:00
|
|
|
msgbox PlayersHouse_1F_Text_TheresAMovieOnTV, MSGBOX_DEFAULT
|
2017-11-11 23:10:17 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-11-12 18:55:46 +01:00
|
|
|
@ special InitRoamer is a junk call. Its input var (VAR_0x8004) hasn't been set, and
|
|
|
|
@ It's called again when Mom actually asks for the color, overwriting
|
|
|
|
@ whatever it does here.
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PlayersHouseLatiNewsFlash::
|
2019-10-23 02:50:41 +02:00
|
|
|
msgbox PlayersHouse_1F_Text_LatiEmergencyNewsFlash, MSGBOX_DEFAULT
|
2017-11-11 23:10:17 +01:00
|
|
|
special InitRoamer
|
2019-01-02 22:12:43 +01:00
|
|
|
clearflag FLAG_SYS_TV_LATIAS_LATIOS
|
|
|
|
setflag FLAG_LATIOS_OR_LATIAS_ROAMING
|
2017-11-11 23:10:17 +01:00
|
|
|
special TurnOffTVScreen
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_DoTVShow::
|
2017-11-11 23:10:17 +01:00
|
|
|
special DoTVShow
|
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2019-11-12 18:55:46 +01:00
|
|
|
goto_if_ne EventScript_DoTVShow
|
|
|
|
goto EventScript_TurnOffTV
|
2017-11-11 23:10:17 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_TurnOffTV::
|
2017-11-11 23:10:17 +01:00
|
|
|
special TurnOffTVScreen
|
|
|
|
setflag FLAG_SYS_TV_WATCH
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_MomDadMightLikeThis2::
|
2017-11-11 23:10:17 +01:00
|
|
|
special GetMomOrDadStringForTVMessage
|
2019-08-15 05:38:42 +02:00
|
|
|
msgbox gText_MomOrDadMightLikeThisProgram, MSGBOX_DEFAULT
|
2019-11-12 18:55:46 +01:00
|
|
|
goto EventScript_TurnOffTV
|
2017-11-11 23:10:17 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_TryDoPokeNews::
|
2017-11-11 23:10:17 +01:00
|
|
|
special DoPokeNews
|
2019-11-12 18:55:46 +01:00
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq EventScript_TryDoTVShow
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2019-11-12 18:55:46 +01:00
|
|
|
goto EventScript_TurnOffTV
|
2017-11-11 23:10:17 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_DoInSearchOfTrainers::
|
2017-11-11 23:10:17 +01:00
|
|
|
special DoTVShowInSearchOfTrainers
|
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-12 18:55:46 +01:00
|
|
|
goto_if_eq EventScript_DoInSearchOfTrainers
|
|
|
|
goto EventScript_TurnOffTV
|
2017-11-11 23:10:17 +01:00
|
|
|
end
|