Waking up and feeling meh about the morning and morning classes then reading g_g's comment put a smile on my face... lol <3
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
# Calculate basic damage
atk = [attacker.atk + attacker.str / 3, 1].max # Is there someway to make the attacker.atk not be effect by the dividing of 3?
arm = [self.pdef]
self.damage = atk - arm
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Passable Determinants
# x : x-coordinate
# y : y-coordinate
# d : direction (0,2,4,6,8)
# * 0 = Determines if all directions are impassable (for jumping)
#--------------------------------------------------------------------------
def passable?(x, y, d)
# Get new coordinates
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
# If coordinates are outside of map
unless $game_map.valid?(new_x, new_y)
# Impassable
return false
end
# If debug mode is ON and ctrl key was pressed
if $DEBUG and Input.press?(Input::Keys['YOUR KEY HERE'])
# Passable
return true
end
super
end
end