LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



View previous topic View next topic Go down Message [Page 1 of 1]

EVENTALIST
EVENTALIST
#1 default RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
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.


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
#2 default Re: RMXP + XAS 4dir Movement
Loading

Thormund

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
Sorry, so how should I go about installing this? :S
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
#3 default Re: RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
What version of XAS are you using? (lol i don't even member posting this...)
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
#4 default Re: RMXP + XAS 4dir Movement
Loading

Thormund

avatar
ACTIVATED
ACTIVATED
ACTIVATED
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
#5 default Re: RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
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.
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
#6 default Re: RMXP + XAS 4dir Movement
Loading

Thormund

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
Crap. xD Well, I'll guess I'll use 3.7 then. ;P
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
#7 default Re: RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
k here you are just paste it in a script section under XAS System..

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
#8 default Re: RMXP + XAS 4dir Movement
Loading

Thormund

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
Yessir. Smile Razz It just doesn't go well. It causes lots of graphical errors. Razz

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
#9 default Re: RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
are you using it in 3.7 ?
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
#10 default Re: RMXP + XAS 4dir Movement
Loading

Thormund

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
Um, it's 3.72? :S
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
#11 default Re: RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
darn him and his updates, i don't have that version ATM sorry...
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
#12 default Re: RMXP + XAS 4dir Movement
Loading

Thormund

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
Ah, crap. ;-; Lmfao, damn him and his 8-Dir movement. ;P I don't even see why the script causes an error... Lol. Razz I mean, I can't script from scratch or anything but I usually am able to fix errors, perform minor edits, and such. >< Razz
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
#13 default Re: RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
cause i edited the script above and tested it in 3.7 and it seemed to work fine, but i barely tested i just started in debug and tested all the directions. worked fine.
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
#14 default Re: RMXP + XAS 4dir Movement
Loading

Thormund

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
Weird. :S Well, thanks for trying anyways. Smile Would +Rep if I could. ;P
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
#15 default Re: RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
when i get the chance i will DL the newest version..
Well if you want it that bad you did say you new a little scripting just see how i made the edits and go and find where the movement is at and make the edits i did to the script. (that is if you wanted to do that)
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
#16 default Re: RMXP + XAS 4dir Movement
Loading

Thormund

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
All right, thanks. ^^ I will try my best to get it working... I doubt I'll be able to though. xD If I do get it working I'll let you know so you won't have to go through all the trouble. Razz
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
#17 default Re: RMXP + XAS 4dir Movement
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
thanks, but i have a version of XAS all my own, that i edited from 3.6
EVENTALIST
Show Signature
EVENTALIST

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 1 of 1]

 

Chatbox system disabled
Personal messaging disabled