RPG Fusion
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.



 
AccueilPortailRechercherDernières imagesS'enregistrerConnexion
Le Deal du moment : -39%
Pack Home Cinéma Magnat Monitor : Ampli DENON ...
Voir le deal
1190 €

 

 Compatibilité de menu avec un "Switch_Party"

Aller en bas 
AuteurMessage
zido
Acrobate
Acrobate
zido


Masculin
Nombre de messages : 154
Age : 28
Projet(s) en cours : Yalra
Niveau Rpg Maker : Moyen
Jeux Préférés : Final fantasy, Zelda, Kingdom hearts, Dark Chronicle, Spyro, Roller Coaster Tycoon
Date d'inscription : 28/03/2008

Compatibilité de menu avec un "Switch_Party" Empty
MessageSujet: Compatibilité de menu avec un "Switch_Party"   Compatibilité de menu avec un "Switch_Party" EmptyDim 14 Aoû 2011, 19:58

Bonjour à tout le monde! ^^
Il y a peu, j'ai ajouté le script suivant: http://forum.rpgcreative.net/f70-menu-pour-plus-de-4-heeros-t9794.html qui sert à afficher dans la fenêtre Menu_Status tous les héros; qu'ils soient dans l'équipe ou non. Ce script sert aussi à pouvoir échanger les héros de l'équipe depuis le menu. Ce script marche très bien seul mais quand je l'ai mélangé à mon script actuel de menu, il ne marche plus si bien...
Pour l'intégrer, j'ai juste supprimé la partie "Scene_Menu" du script en gardant les lignes importantes. Venons-en au problème: quand je sélectionne la commande pour changer l'équipe, tout se passe normalement et le curseur bascule sur "Window_MenuStatus". Ensuite, lorsque j'appuie sur un personnage pour l'échanger, rien ne se passe... Impossible de changer l'équipe. Je précise que le reste du script importé est dans un autre script.
Voila le script du menu:

Code:
#==============================================================================
# ¦ Scene_Menu
#------------------------------------------------------------------------------
#==============================================================================

class Scene_Menu
#--------------------------------------------------------------------------
# ? ?????????
# menu_index : ?????????????
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
@actor_change = false
end
#--------------------------------------------------------------------------
# ? ?????
#--------------------------------------------------------------------------
def main
# ????????????
s1 = $data_system.words.item
s2 = $data_system.words.skill
s3 = $data_system.words.equip
s4 = "Synthèse"
s5 = "Interface"
s6 = "Quêtes"
s7 = "Equipe"
s8 = "Quitter"
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7, s8])
@command_window.index = @menu_index
@command_window.x = 480
@command_window.y = 0
# ??????? 0 ????
if $game_party.actors.size == 0
# ?????????????????????
@command_window.disable_item(0)
@command_window.disable_item(1)
@command_window.disable_item(2)
@command_window.disable_item(3)
end
# ????????
if $game_system.save_disabled
# ?????????
@command_window.disable_item(4)
end
# ?????????????
@playtime_window = Window_PlayTime.new
@playtime_window.x = 480
@playtime_window.y = 288
# ??????????
@steps_window = Window_Steps.new
@steps_window.x = 480
@steps_window.y = 352
# ????????????
@gold_window = Window_Gold.new
@gold_window.x = 480
@gold_window.y = 416
# ?????????????
@status_window = Window_MenuStatus.new
@status_window.x = 0
@status_window.y = 0
# ?????????
Graphics.transition
# ??????
loop do
# ????????
Graphics.update
# ???????
Input.update
# ??????
update
# ????????????????
if $scene != self
break
end
end
# ?????????
Graphics.freeze
# ????????
@command_window.dispose
@playtime_window.dispose
@steps_window.dispose
@gold_window.dispose
@status_window.dispose
end
#--------------------------------------------------------------------------
# ? ??????
#--------------------------------------------------------------------------
def update
# ????????
@command_window.update
@playtime_window.update
@steps_window.update
@gold_window.update
@status_window.update
# ??????????????????: update_command ???
if @command_window.active
update_command
return
end
# ???????????????????: update_status ???
if @status_window.active
update_status
return
end
end
#--------------------------------------------------------------------------
# ? ?????? (??????????????????)
#--------------------------------------------------------------------------
def update_command
# B ??????????
if Input.trigger?(Input::B)
# ????? SE ???
$game_system.se_play($data_system.cancel_se)
# ??????????
$scene = Scene_Map.new
return
end
# C ??????????
if Input.trigger?(Input::C)
# ??????? 0 ??????????????????????
if $game_party.actors.size == 0 and @command_window.index < 4
# ??? SE ???
$game_system.se_play($data_system.buzzer_se)
return
end
# ---------------------------
case @command_window.index
when 0 # Objets
# ?? SE ???
$game_system.se_play($data_system.decision_se)
# ---------------------------
$scene = Scene_Item.new
when 1 # Magies
# ?? SE ???
$game_system.se_play($data_system.decision_se)
# ---------------------------
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 2 # Equipement
# ?? SE ???
$game_system.se_play($data_system.decision_se)
# ---------------------------
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 3 # Synthèse
# ?? SE ???
$game_system.se_play($data_system.decision_se)
# ???????????????????
$scene = Scene_Craft.new
when 4 # ???
# ????????
if $game_system.save_disabled
# ??? SE ???
$game_system.se_play($data_system.buzzer_se)
return
end
# ?? SE ???
$game_system.se_play($data_system.decision_se)
# ??????????
$scene = Scene_WindowOp.new
when 5
  $game_system.se_play($data_system.decision_se)
$scene = Scene_Quests.new
when 6 # ?????
    $game_system.se_play($data_system.decision_se)
    @command_window.active = false
    @status_window.active = true
    @status_window.index = 0
when 7 # ?????
# ?? SE ???
$game_system.se_play($data_system.decision_se)
$scene = Scene_End.new

# ????????????
end
return
end
end

def command_destination
  Audio.bgm_fade(800)

Audio.bgs_fade(800)

Audio.me_fade(800)

map_id = 60 # Choisissez l'ID de la map

map_x = 9 # Choisissez X pour coordonné

map_y = 7 # Choisissez Y pour coordonné

# téléportation vers ID, X et Y de la map

$game_map.setup(map_id)

$game_player.moveto(map_x, map_y)

$game_player.refresh

$game_map.autoplay

$game_map.update
$scene = Scene_Map.new
#--------------------------------------------------------------------------
# ? ?????? (???????????????????)
#--------------------------------------------------------------------------
def update_status
    if Input.trigger?(Input::B)
    $game_system.se_play($data_system.cancel_se)
    @command_window.active = true
    @status_window.active = false
    @status_window.index = -1
    @actor_change = false
return
end
# C ??????????
if Input.trigger?(Input::C)
# ???????????????????
case @command_window.index
when 1 # ???
# ???????????? 2 ?????
if $game_party.actors[@status_window.index].restriction >= 2
# ??? SE ???
$game_system.se_play($data_system.buzzer_se)
return
end
# ?? SE ???
$game_system.se_play($data_system.decision_se)
# ??????????
$scene = Scene_Skill.new(@status_window.index)
when 2 # ??
# ?? SE ???
$game_system.se_play($data_system.decision_se)
# ?????????
$scene = Scene_Equip.new(@status_window.index)
    when 6 # party actors switch
    if @actor_change == true
    $game_system.se_play($data_system.decision_se)
    $game_party.actors[@old_index] = $game_party.actors[@status_window.index]
    $game_party.actors[@status_window.index] = @new_actor
    $game_player.refresh
    @actor_change = false
    @status_window.refresh
    return
  end
    $game_system.se_play($data_system.save_se)
    @old_index = @status_window.index
    @new_actor = $game_party.actors[@status_window.index]
    @actor_change = true

end
return
end
end
end

end
J'espère avoir été assez clair et que vous pourrez m'aider s'il vous plaît ^^.
Revenir en haut Aller en bas
http://aquabyssia.forumactif.org/
 
Compatibilité de menu avec un "Switch_Party"
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» Mog menu + A-rpg xas
» Menu 3

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
RPG Fusion :: BANQUE DU CODE :: Implorer de l'aide :: Signaler & Résoudre un problème :: Archives-
Sauter vers:  
Ne ratez plus aucun deal !
Abonnez-vous pour recevoir par notification une sélection des meilleurs deals chaque jour.
IgnorerAutoriser