Jump to content

Yung_Walrus

Member
  • Content Count

    1
  • Joined

  • Last visited

  1. Yung_Walrus

    Fast Travel Script

    Hi, I'm having troubles and was hoping you or someone else could help me out. Whenever I add more than three locations, the game crashes upon opening the map. Script 'Game_Switches' line 19: TypeError occurred. no implicit conversion from nil to integer I have tried changing switches, location coordinates, window colors, and teleport coordinates, to no success. Here's my edited script. Thanks in advance! #-------------------------------------------------------------------------- # Map name list. This is needed for metaprogramming. #-------------------------------------------------------------------------- MAP_LIST = ["Cracktown", "Eastern Range Village", "Ithril", "Arriba", "Kan", "Barkleys House", "Great Sea Peninsula", "Turban", "Yokai Castle", "Rodney", "Bakastan", "Dimpleton", "Rodriguez", "X Fortress", "Clodingham", "Caroline", "Eregon", "Roowarts", "St. Leonardo", "Fuego", "Imperium", "Dynas House", "Gensokyo", "Slam Temple", "Benito Archipelago", "Polaris"] #-------------------------------------------------------------------------- # Switches that enable the map. #-------------------------------------------------------------------------- SWITCH_LIST = [0001, # When switch 01 is on, you can transfer to Australia. 0001, # When switch 03 is on, you can transfer to Russia. 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001]# And so on. #-------------------------------------------------------------------------- # Assign each map name where to teleport. #-------------------------------------------------------------------------- # Map ID, x, y, player direction TELEPORT_LIST = [[16, 25, 40, 2], # This is where "Australia" is going to be. [13, 17, 35, 2], # "Russia". [25, 25, 19, 2], [37, 20, 28, 2], [24, 70, 30, 4], [49, 14, 17, 2], [62, 18, 21, 2], [68, 21, 40, 2], [51, 19, 35, 2], [106, 22, 17, 2], [130, 6, 4, 2], [139, 14, 26, 2], [116, 25, 60, 6], [149, 29, 43, 2], [155, 197, 143, 2], [167, 1, 9, 8], [170, 22, 55, 6], [229, 24, 56, 6], [224, 1, 14, 6], [267, 23, 41, 6], [82, 33, 65, 6], [222, 131, 91, 2], [247, 66, 38, 2], [202, 23, 20, 2], [300, 16, 28, 6], [205, 65, 82, 2]]# and so on. #-------------------------------------------------------------------------- # Assign overworld location coordinate. #-------------------------------------------------------------------------- LOCATION_COORDINATE = [[10,-50], #The map will move here when "Australia" is highlighted [-120,560], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300], [880,300]] #-------------------------------------------------------------------------- # Assign text color for location selection. The color depends on Window # graphic that you use. 0 is the default color. #-------------------------------------------------------------------------- TEXT_LOCA_COLOR = [0, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
×