#Game: Liberty City Stories
#Author: Freakler & MicSuit
#Version: 1.0
#Category: World
#Date: 2022-09-08
#Description: Check current island you're on.


:CHECK
// Portland ID = 1
// Staunton Island ID = 2
// Shoreside Vale ID = 3
// Subway Station ID = 4

03CB:   is_collision_in_memory island_id 1
004C: goto_if_true @PORTLAND_CHECK 

03CB:   is_collision_in_memory island_id 2
004C: goto_if_true @STAUNTON_CHECK 

03CB:   is_collision_in_memory island_id 3
004C: goto_if_true @SHORESIDE_CHECK 

03CB:   is_collision_in_memory island_id 4
004C: goto_if_true @SUBWAY_STATION_CHECK 

03EA: print_help '~r~Error: Invalid Island ID' // This line shouldn't be reachable since it MUST be one of the above cases!
004E: terminate_this_script

:PORTLAND_CHECK
03EA: print_help '~h~You are currently in ~y~Portland~w~.'
004E: terminate_this_script 

:STAUNTON_CHECK 
03EA: print_help '~h~You are currently in ~y~Staunton Island~w~.'
004E: terminate_this_script 

:SHORESIDE_CHECK 
03EA: print_help '~h~You are currently in ~y~Shoreside Vale~w~.'
004E: terminate_this_script 

:SUBWAY_STATION_CHECK
03EA: print_help '~h~You are currently in the ~y~Subway Station~w~.'
004E: terminate_this_script 
