#==============================================================================
# ** Vocab
#------------------------------------------------------------------------------
# This module defines terms and messages. It defines some data as constant
# variables. Terms in the database are obtained from $data_system.
#==============================================================================
module Vocab
# Nothing Unusual
Unusual = "There's nothing unusual "
Inside = 'inside.'
Here = 'here.'
end
#==============================================================================
# ** Unusual
#------------------------------------------------------------------------------
# This module defines checkable tiles and their output. The instance of this
# class is referenced by $game_player.
#==============================================================================
module Unusual
Inside = [72, 75, 77, 97, 128, 131, 133, 145, 314, 315, 316, 317, 318, 319,
328, 329, 330, 331, 332, 333, 334, 335, 393, 395, 396, 397, 448,
449, 456, 457, 464, 465, 472, 473, 480, 481, 484, 485, 488, 489,
490, 491, 494, 495, 496, 497, 498, 499, 504, 505, 506, 507, 526,
527, 637, 638, 639, 682, 683, 684, 670, 671, 678, 679]
Here = [78, 79, 84, 86, 87, 92, 93, 94, 95, 96, 98, 105, 109, 110, 111,
112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 123, 125, 126,
127, 134, 135, 140, 142, 143, 144, 146, 148, 149, 150, 151, 336,
337, 338, 339, 340, 342, 343, 344, 345, 346, 347, 348, 350, 351,
352, 353, 354, 355, 356, 357, 358, 359, 363, 364, 365, 366, 367,
368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380,
381, 382, 383, 432, 433, 434, 435, 436, 437, 438, 439, 442, 444,
445, 447, 450, 451, 452, 453, 454, 455, 458, 459, 460, 461, 462,
463, 466, 467, 468, 469, 470, 471, 474, 475, 476, 477, 478, 479,
486, 487, 502, 510, 511, 516, 517, 518, 524, 525, 536, 537, 538,
539, 540, 541, 542, 543, 552, 553, 554, 555, 556, 557, 558, 559,
568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580,
581, 582, 583, 584, 585, 586, 587, 588, 589, 641, 648, 649, 650,
651, 652, 653, 654, 655, 662, 663, 664, 665, 666, 667, 668, 669,
675, 676, 677, 680, 681, 688, 689, 690, 691, 692, 696, 697, 698,
699, 700, 701, 712, 713, 714, 715, 716, 717, 718, 719, 726, 727,
734, 735, 742, 743, 748, 749, 750, 751]
end
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
# This class handles maps. It includes event starting determinants and map
# scrolling functions. The instance of this class is referenced by $game_map.
#==============================================================================
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
alias glitch_unusual_update_nonmoving update_nonmoving
#--------------------------------------------------------------------------
# * Processing when not moving
# last_moving : Was it moving previously?
#--------------------------------------------------------------------------
def update_nonmoving(last_moving)
if not $game_message.visible and Input.trigger?(Input::C)
check_tile
end
glitch_unusual_update_nonmoving(last_moving)
end
#--------------------------------------------------------------------------
# * Check Tile
#--------------------------------------------------------------------------
def check_tile
if @direction == 2
tile_data = $game_map.data[@x, @y + 1, 2]
elsif @direction == 4
tile_data = $game_map.data[@x - 1, @y, 2]
elsif @direction == 6
tile_data = $game_map.data[@x + 1, @y, 2]
elsif @direction == 8
tile_data = $game_map.data[@x, @y - 1, 2]
end
return if tile_data == nil || tile_data == 0
if Unusual::Inside.include?(tile_data)
text = Vocab::Unusual + Vocab::Inside
$game_message.texts.push(text)
elsif Unusual::Here.include?(tile_data)
text = Vocab::Unusual + Vocab::Here
$game_message.texts.push(text)
end
end
end