Guest Access
Go to page : 1, 2
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
For those who don't like to mess with 8dir movement a script that allows you to toggle it on and off
"Note: does not let you toggle during the game"
Instructions:
Paste script above main and bellow XAS - SYSTEM.
name the scripts 4dir or 8dir Movement.
Work in progress, its not working 100% yet
it works, but you'll have to go into XAS script and replace a chuck of it with this one.
"Note: does not let you toggle during the game"
Instructions:
Paste script above main and bellow XAS - SYSTEM.
name the scripts 4dir or 8dir Movement.
- Spoiler:
#===============================================================================
#===============================================================================
#
# GAME_PLAYER
# Edited by: Mr_Wiggles
#
#===============================================================================
#===============================================================================
#===============================================================================
# Game_Player
HERO_DASH = "_dash" #===============================================================================
class Game_Player < Game_Character
def hero_dash_graphic?(actor)
if moving?
RPG::Cache.character(actor.character_name.to_s + HERO_DASH , actor.character_hue) rescue return false
end
end
def update
@actor = $game_party.actors[0]
if @actor != nil
actor = $game_party.actors[0]
if actor.hp <= 0
if XAS_BA::AUTOGAMEOVER == true
$scene = Scene_Gameover.new rescue nil if self.collapse_done
else
$game_switches[XAS_BAGAMEOVER_SWITCH_ID] = true
$game_map.refresh
end
end
end
last_moving = moving?
unless moving? or $game_system.map_interpreter.running? or
@move_route_forcing or $game_temp.message_window_showing or
$game_temp.dodge_time_real > 0
if @actor != nil and actor.states.include?(XAS::CONFUSE_ID) == true
case Input.dir4
when 2
move_up
when 4
move_right
when 6
move_left
when 8
move_down
end # case 4 dir
else
case Input.dir4
when 2
move_down
when 4
move_left
when 6
move_right
when 8
move_up
end
end # if Confused state
actor = $game_party.actors[0]
if actor != nil and (actor.states.include?(XAS::SLEEP_ID) or
actor.states.include?(XAS::STOP_ID) or
actor.states.include?(XAS::MUTE_ID) or
actor.states.include?(XAS::SEALATTACK_ID))
$game_temp.xas_charge_time = 0
$game_temp.xas_anime_loop2 = 0
$game_temp.xas_anime_loop = 0
$game_system.move_speed = 0
@direction_fix = false
end
if Input.press?(XAS_COMMAND::DASH_BUTTON) and XAS::DASH_SYSTEM == true and
$game_switches[XASCT_DISABLE_SWITCH] == false and
$game_temp.xas_charge_time <= 5
if $game_system.move_meter > XAS::DASH_ACTIVE_PERC
if hero_dash_graphic?(actor)
unless self.action != nil
@character_name = actor.character_name + HERO_DASH
end
end
@move_speed = XAS::DASH_SPEED + $game_system.move_speed
else
@move_speed = XAS::NORMAL_SPEED + $game_system.move_speed
@character_name = actor.character_name
end
else
@move_speed = XAS::NORMAL_SPEED + $game_system.move_speed
if actor != nil
@character_name = actor.character_name
end
end
end
last_real_x = @real_x
last_real_y = @real_y
super
if @real_y > last_real_y and @real_y - $game_map.display_y > CENTER_Y
$game_map.scroll_down(@real_y - last_real_y)
end
if @real_x < last_real_x and @real_x - $game_map.display_x < CENTER_X
$game_map.scroll_left(last_real_x - @real_x)
end
if @real_x > last_real_x and @real_x - $game_map.display_x > CENTER_X
$game_map.scroll_right(@real_x - last_real_x)
end
if @real_y < last_real_y and @real_y - $game_map.display_y < CENTER_Y
$game_map.scroll_up(last_real_y - @real_y)
end
unless moving?
if last_moving
result = check_event_trigger_here([1,2])
if result == false
unless $DEBUG and Input.press?(Input::CTRL)
if @encounter_count > 0
@encounter_count -= 1
end
end
end
end
if Input.trigger?(Input::C)
check_event_trigger_here([0])
check_event_trigger_there([0,1,2])
end
end
end
end
Work in progress, its not working 100% yet
it works, but you'll have to go into XAS script and replace a chuck of it with this one.
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
Thormund
profile
Sorry, so how should I go about installing this? :S
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
What version of XAS are you using? (lol i don't even member posting this...)
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
Thormund
profile
I don't know what I should use yet. :S I'm going to be making a post-apocalyptic warfare game (like Fallout 3) and I have Vr.3.6 and Vr.3.7... I'll probably use 3.7 but the Vr. I have isn't fully translated and I have a much better HUD for 3.6...
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
k well when you figure that out come back and tell me,
if its in 3.7 I'M SURE (maybe) that i can just make a plug and play patch for it, if its 3.6 you'll have to get your hands dirty and change some chunks of code.
if its in 3.7 I'M SURE (maybe) that i can just make a plug and play patch for it, if its 3.6 you'll have to get your hands dirty and change some chunks of code.
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
Thormund
profile
Crap. xD Well, I'll guess I'll use 3.7 then. ;P
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
k here you are just paste it in a script section under XAS System..
so like me not a fan of the 8dir moment?
- Code:
class Game_Player < Game_Character
#movement_update -----------------------------------------
def movement_update
if @actor.states.include?(XAS::CONFUSE_ID) == true
case Input.dir4
when 2
move_up
@quarter = false
when 4
move_right
@quarter = false
when 6
move_left
@quarter = false
when 8
move_down
@quarter = false
end
else
case Input.dir4
when 2
move_down
@quarter = false
when 4
move_left
@quarter = false
when 6
move_right
@quarter = false
when 8
move_up
@quarter = false
end
end
end
end
so like me not a fan of the 8dir moment?
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
Thormund
profile
Yessir. It just doesn't go well. It causes lots of graphical errors.
EDIT: Errr, by the way. I got errors when I put the script in. I get a NoMethodError for line 759 in movement. :S (I get this anytime I try to move)
EDIT: Errr, by the way. I got errors when I put the script in. I get a NoMethodError for line 759 in movement. :S (I get this anytime I try to move)
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
ACTIVATED
ACTIVATED
Go to page : 1, 2