Guest Access
ACTIVATED
ACTIVATED
ACTIVATED
profile
rpg-dutch
profile
I have the following issues that were not issues but now are...
- Can't Dash
- Can't Change Leader
I have made a few recent changes such as setting CT to a Variable and Normal Speed to a Variable. *Had everything working before the normal speed change.
Also I as wondering how to set Dash_Speed to a variable as well?
Around the same time of changing Normal Speed to a variable the Change Leader script. (Which was working very well) has suddenly stopped... :S
I'm no pro scripter, I'm just trying to learn, so if you can explain what I did wrong then I'll avoid the same mistake again.
Thanks so much everyone.
Change Leader Script
(PART 1)
- Can't Dash
- Can't Change Leader
I have made a few recent changes such as setting CT to a Variable and Normal Speed to a Variable. *Had everything working before the normal speed change.
Also I as wondering how to set Dash_Speed to a variable as well?
Around the same time of changing Normal Speed to a variable the Change Leader script. (Which was working very well) has suddenly stopped... :S
I'm no pro scripter, I'm just trying to learn, so if you can explain what I did wrong then I'll avoid the same mistake again.
Thanks so much everyone.
Change Leader Script
- Spoiler:
- #------------------#
#Dod Change Leader #
#by:Dodoop #
#version:1.0 #
#------------------#
#
# Edited by: Night_Runner
# Date: 15/Sept/09
#
# Designed to: Turn on the switch corresponding with the leading player's ID
# (and turn off the switch from the last leading player). And update the
# leading player before battle (designed to be compatable with MOG XAS Hud
# V2.6.
#
#-----------------#
#Muda o líder quando uma certa tecla for pressionada no mapa.
module Dodoop
#Tecla que devera ser pressiona para mudar o líder.
CHANGE_LEADER_INPUT = Input::L
end
class Scene_Map
alias change_leader update
def update
change_leader
if Input.trigger?(Dodoop::CHANGE_LEADER_INPUT)
leader_read
end
$game_variables[$game_party.actors[0].id] = $game_system.xas_skill_id
$game_switches[$game_party.actors[0].id] = true # Turns on the switch of
# the leading hero
end
def leader_read
$game_switches[$game_party.actors[0].id] = false # Turns off the switch of
# the last hero
@actors = []
for i in 0...$game_party.actors.size
@actors[i] = $game_party.actors[i]
end
for i in 1...@actors.size
$game_party.actors[i - 1] = @actors[i]
end
$game_party.actors[@actors.size - 1] = @actors[0]
$game_player.refresh
$game_party.refresh # Needed to update the party order.
@sthero.refresh # Only to be used with MOG's XAS, refreshes the HUD.
@sthero.update if @sthero != nil
@sthero.refresh if @sthero != nil
@sthero.update if @sthero != nil
if @sthero != nil
@sthero.dispose
last_act = $game_party.actors.shift
$game_party.add_actor (last_act.id)
$game_player.refresh
$game_system.xas_item_id = 0
$scene = Scene_Map.new
$game_system.xas_skill_id = $game_variables[$game_party.actors[0].id]
@sthero = Window_HUD.new
@sthero.x = XAS_HUD::XASHUD_X
@sthero.y = XAS_HUD::XASHUD_Y
if $game_switches[XAS_HUD::DISABLE_STATUS_HUD_SWITCH] == false
@sthero.visible = true
else
@sthero.visible = false
end
@sthero.update
$game_switches[25] = true
end
end
end
#================================================#
# Game_Party
#================================================#
class Game_Party
def remove_actor(actor_id)
# Delete actor
@actors.delete($game_actors[actor_id])
# Refresh player
$game_player.refresh
$game_switches[actor_id] = false # If the actor is removed, they cannot
# be the leading hero.
end
end
(PART 1)
ACTIVATED
Show Signature
ACTIVATED
ACTIVATED
ACTIVATED
ACTIVATED
profile
rpg-dutch
profile
XAS MISC
(PART 2)
*Is there any chance we can increase max post length, because I can't post my XAS System Script, which I think might be key to the problem.
- Spoiler:
- #===============================================================================
# XAS - GENERAL CONFIG
#===============================================================================
module XAS_COMMAND
#Definições das teclas de comando.
#-------Botão--------#
# A B C X Y Z L R #
#------Teclado-------# O equivalente no teclado.
# Z B C A S D Q W # (modo Default)
#--------------------#
#Usar a habilidade.
SKILL_ACTION = Input::Z
#Mudar a habilidade no mapa.
SKILL_CHANGE = Input::R
#Usar Item.
ITEM_ACTION = Input::Y
#Mudar o Item no mapa.
ITEM_CHANGE = Input::R
#Atacar com arma.
SLASH_ACTION = Input::C
#Habilidade carregada.
SKILL_CHARGE = Input::C
#Usar escudo.
SHIELD_ACTION = Input::A
#Ativar ação de reação, quando o herói estiver caido.
REACTION_BUTTON = Input::A
#Botão que ativa o Dash.
DASH_BUTTON = Input::X
#Switch que desativa os comandos de ações, com excessão dos
#comandos de Item e Dash.
COMMAND_DISABLE_SWITCH = 16
#Ativar Menu de seleção rapida.
MENU_SHORT_CUT = true
end
#===============================================================================
# XAS - HUD CONFIG
#===============================================================================
module XAS_HUD
#Posição das janelas dos itens e skills.
WINDOW_HUD2_X = 475
WINDOW_HUD2_Y = 360
WINDOW_CT_X = -15
WINDOW_CT_Y = 355
FONT_NAME = "Georgia"
#ID da switch que desativa a janela de itens e skills.
DISABLE_HUD_SWITCH = 15
#Deixar o HUD opaco caso o herói estiver em cima do HUD.
FADE = true
#===============================================================================
# Active Info Window
#===============================================================================
# Ativar a informação
ACTIVE_INFO = true
# Tempo de exposição da informação
IFW_TIME = 1
# Posição vertical da informação
IFW_Y = 0
# Definiçãoes de fonte.
IFW_FONT_SIZE = 22
IFW_FONT_NAME = "Georgia"
IFW_FONT_BOLD = true
IFW_FONT_ITALIC = true
# Tipo de animação inicial.
# 0 = Slide
# 1 = Zoom
IFW_START_ANIMATION_TYPE = 1
end
#===============================================================================
# XAS - WINDOW MENU SETUP
#===============================================================================
module XAS_WINDOW_SKILL
#Texto de Skill Equipada.
EQUIPPED = "Equipado"
#Texto de ajuda inicial.
PRESS = "Pressione C para Equipar"
#Botão para equipar a skill.
BUTTON = Input::C
end
#===============================================================================
# XAS - WINDOW ITEM SETUP
#===============================================================================
module XAS_WINDOW_ITEM
#Texto de item Equipado.
EQUIPPED = "Equipado"
#Texto de ajuda inicial.
PRESS = "Pressione C para Equipar"
#Botão para equipar o item.
BUTTON = Input::C
end
#===============================================================================
# CT SYSTEM ( COMBAT TIME, DASH / SHIELD )
#===============================================================================
module XAS
#--------------------------------------------------------------------------------
# O valor do medidor de CT é o mesmo do medidor de DASH e do
# SHIELD. Ou seja CT = DASH = SHIELD
#--------------------------------------------------------------------------------
#Switch que desativa a função CT
CT_DISABLE_SWITCH = 17
#Ativar Sistema de Dash.
DASH_SYSTEM = true
#Velocidade do DASH
DASH_SPEED = 5.0
#Velocidade normal
NORMAL_SPEED = 104
# Limite do medidor de movimento para ativar o Dash e
# limite de resistência do escudo.
DASH_ACTIVE_PERC = 5
#Velocidade do medidor de CT.
CT_METER_SPEED = 3
#Texto do medidor de CT.
CT_SYSTEM_NAME = "Energy Level"
#Texto do medidor de CT quando está no modo Shield.
SHIELD_NAME = "Shield"
#Texto do medidor de CT quando está no modo Charge.
CHARGE_NAME = "Special"
#Texto do medidor de CT quando está em nível baixo.
LOW_NAME = "Low!"
#Ativar recuo(Aperte o botão de DASH 2X).
DODGE_SYSTEM = true
#Texto do dano quando for ativado a esquiva.
DODGE_TEXT = "Dodge"
end
#===============================================================================
# XAS - Customização das vozes.
#===============================================================================
module XAS_VOICE
#-----------------------------------------
# Definição das vozes para cada ação, é possível definir
# 2 vozes aleatórias para cada ação.
#
# RPG::AudioFile.new( A, B, C)
#
# A = "Nome do arquivo"
# B = Volume
# C = Pitch
#
# Defina nil se quiser desativar a voz.
#-----------------------------------------
# Heroi recebendo dano.
HERODAMAGE= ["V_Damage1","V_Damage2"]
# Heroi se esquivando.
HEROMISS = ["V_Miss1"]
# Quando o herói é derrotado(Morto).
HERODEFEAT = ["V_Defeat1"]
# Heroi recebendo dano critico ou recebendo dano muito alto
# baseado na definição de LOWHP na parte de BATTLER.
HEROCRITICAL = ["V_Critical"]
# Quando o herói causa dano critico no inimigo.
ENEMYCRITICAL = ["V_ENMCritical"]
# Heroi aumentando o level
LEVEL_UP_VOICE = ["V_Level_UP1","V_Level_UP2","V_Level_UP3"]
end
#===============================================================================
# XAS - Customização do Mapa de Ferramenta.
#===============================================================================
module XAS
# Velocidade do jogo (Quantidade de frames).
GAME_FRAME = 40
# ID da variável de impacto de Ferramentas.
HIT_ID = 82
# ID do mapa onde fica ficarão os eventos de ferramentas.
ACTION_TEMPLATE_MAP_ID = 1
# Definição de uma variável com um valor aleatório(0 a 100).
# Útil para fazer puzzles e outras funções.
RAND_VARIABLE_ID = 998
end
#===============================================================================
# XAS - Customizações gerais de evento.
#===============================================================================
module XAS_BA
# Variável que define a ID do inimigo.
ENEMY_ID_VARIABLE_ID = 83
# Sensor que Define a página de ação do inimigo.
SENSOR_SELF_SWITCH = "D"
# Definição da variável que registrará a
# quantidade de inimigos derrotados.
DEFEAT_NUMBER_ID = 999
end
(PART 2)
*Is there any chance we can increase max post length, because I can't post my XAS System Script, which I think might be key to the problem.
ACTIVATED
Show Signature
ACTIVATED
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
Yo Dutch - I'm still trying to learn how to script ^,^
one thing I do know about "class and subclass" is that some scripts can overwrite the commands of another script if placed above it.
What version of XAS? and How many 'new' scripts have you added above the XAS-Movement script?
also for the change leader try this XAS_Leader_Switch
*looking into post increase
one thing I do know about "class and subclass" is that some scripts can overwrite the commands of another script if placed above it.
What version of XAS? and How many 'new' scripts have you added above the XAS-Movement script?
also for the change leader try this XAS_Leader_Switch
*looking into post increase
Administrator
Show Signature
ACTIVATED
ACTIVATED
ACTIVATED
profile
rpg-dutch
profile
I have Hero 3.6 (old I know -but I'd been working on this for a while)
I don't have an XAS Movement Script.
Also tried that script for changing leader can't seem to get it to work.
I don't have an XAS Movement Script.
Also tried that script for changing leader can't seem to get it to work.
ACTIVATED
Show Signature
ACTIVATED
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
ahh...3.6
place any added scripts above "Main" and below the "XAS-system" script.
make certain that your MISC scripts reads "DASH_SYSTEM = true" (line 105)
have you made any edits to the XAS-System script? added any new scripts that may have caused the dash error?
place any added scripts above "Main" and below the "XAS-system" script.
make certain that your MISC scripts reads "DASH_SYSTEM = true" (line 105)
have you made any edits to the XAS-System script? added any new scripts that may have caused the dash error?
Administrator
Show Signature
ACTIVATED
ACTIVATED
ACTIVATED
profile
rpg-dutch
profile
i Thought this could have happen after the adjustment for Normal Speed to be a variable...
I have have a quick fix is when X is pressed (conditional branch) it changes variable (Normal_Speed) = 5. (else = 4).
Also still unlucky with the Swap Leader Script... Dunno whats happen here at all... :S
I have have a quick fix is when X is pressed (conditional branch) it changes variable (Normal_Speed) = 5. (else = 4).
Also still unlucky with the Swap Leader Script... Dunno whats happen here at all... :S
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
@dutch - you have a common event for your dash? like this?
EVENTALIST
Show Signature
EVENTALIST