Quedada del ChatBox
Conectarse

Recuperar mi contraseña

Estadísticas
Tenemos 2162 miembros registrados.
El último usuario registrado es chichox.

Nuestros miembros han publicado un total de 37848 mensajes en 4923 argumentos.
Últimos temas
» Relato de Seytan
por Jfrmz Hoy a las 5:39 pm

» Pequeño tilemap de Pokemon
por Wecoc Hoy a las 5:39 pm

» Vehiculos por agua
por orochii Hoy a las 5:30 pm

» Denme su opinión sobre este sprite
por mrhawi Hoy a las 5:13 pm

» Saludos gente
por orochii Hoy a las 4:43 pm

» CONCURSO DE TROFEOS (Nº2)
por EdénTheGame Hoy a las 4:40 pm

» script Titulo animado -Modificacion-
por Felipe_9595 Hoy a las 4:27 pm

» Galeria de Dibujos
por Wecoc Hoy a las 3:32 pm

» D.R.E.A.M.S [RPGXP] [DEMO 2.0!]
por ZeroTwilight Hoy a las 3:05 pm

» Ganar dinero con el maker
por gerrtunk Hoy a las 12:57 pm

Afiliados
Temas importantes
----------------------------------------
Páginas con recursos RPG Maker
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
Topic de screens
----------------------------------------
Navega con Firefox
[DESCARGA]

Xas hero Scripts, eliminar movimiento diagonal (8 direcciones)

 :: RPG Maker :: Scripts

Ver el tema anterior Ver el tema siguiente Ir abajo

Xas hero Scripts, eliminar movimiento diagonal (8 direcciones)

Mensaje por thedemonxz el Sáb Jun 05, 2010 12:54 am

Hola.
Tengo una duda con los scripts del xas hero, se como eliminar el movimiento en 8 direcciones del personajer principar (borrando unas lineas en System), pero el problema es que los personaje no jugador (PNJ) se mueven de todas formas en diagonal.
¿Como elimino completamente el movimiento en 8 direcciones?. De antemano gracias.
(Como trataba de script lo puse en esta sección, si debía ir en "ayuda", pido disculpas).

thedemonxz
Iniciado
Iniciado

0/3

Créditos 58


Volver arriba Ir abajo

Re: Xas hero Scripts, eliminar movimiento diagonal (8 direcciones)

Mensaje por elisamuelps el Sáb Jun 05, 2010 1:12 am

Jaja yo otra vez xD toma este script, se necesita este para desabilitar todo por completo, no trabaja al 100% pero si ya le editaste la parte de que no usara las 8 direcciones esta listo solo copia y pega encima de main, este tambien te permite activar y desactivar el movimiento en 8 direcciones
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

elisamuelps
Soñador
Soñador

0/3

Créditos 317


Volver arriba Ir abajo

Re: Xas hero Scripts, eliminar movimiento diagonal (8 direcciones)

Mensaje por thedemonxz el Sáb Jun 05, 2010 4:58 am

elisamuelps escribió:Jaja yo otra vez xD toma este script, se necesita este para desabilitar todo por completo, no trabaja al 100% pero si ya le editaste la parte de que no usara las 8 direcciones esta listo solo copia y pega encima de main, este tambien te permite activar y desactivar el movimiento en 8 direcciones
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


Gracias de nuevo, me sirvio para que el chara dejara de moverse en 8 direcciones, pero los PNJ aún se mueven en 8 direciones :S
¿Como desablito las 8 direcciones en los PNJ?.

thedemonxz
Iniciado
Iniciado

0/3

Créditos 58


Volver arriba Ir abajo

Re: Xas hero Scripts, eliminar movimiento diagonal (8 direcciones)

Mensaje por elisamuelps el Sáb Jun 05, 2010 3:47 pm

Bueno en lo que te puedo ayudar es en lo siguiente: xas hero viene con el script dfe movimiento avanzado de XMS, te recomiendo que estudies ese script y veas que trabaja para saber que quitar, pero el truco no esta en SYSTEM, tienes que editar el script xas en si...

elisamuelps
Soñador
Soñador

0/3

Créditos 317


Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba


 :: RPG Maker :: Scripts

Permiso de este foro:
No puedes responder a temas en este foro.