Va-nu-pieds Lv.4
Age : 30 Inscrit le : 23/08/2008 Messages : 69
| Sujet: Re: J'ai un gros problème aidez-moi s'il vous plait !!!!!! Dim 6 Sep 2009 - 20:46 | |
| - Code:
-
#-------------------------------------------------------------------------- # ? ?????? (????????????????????) #-------------------------------------------------------------------------- def update_battle_member @status_window.set_actor(@battle_member_window.actor) if Input.trigger?(Input::A) if @battle_member_window.selected_index == nil # ???????? actor = @battle_member_window.actor # ??????????? if actor == nil || $game_party.actor_fixed?(actor.id) Sound.play_buzzer return end # ??????? Sound.play_decision actors = $game_party.battle_members actors.delete_at(@battle_member_window.index) $game_party.set_battle_member(actors) refresh_window end elsif Input.trigger?(Input::B) if @battle_member_window.selected_index == nil # ???????? # ???????????? Sound.play_cancel show_confirm_window else # ????? # ?????? Sound.play_cancel @battle_member_window.selected_index = nil @battle_member_window.refresh @control_window.mode = Window_PartyFormControl::MODE_BATTLE_MEMBER end elsif Input.trigger?(Input::C) if @battle_member_window.selected_index == nil # ???????? actor = @battle_member_window.actor # ??????????? if actor != nil && $game_party.actor_fixed?(actor.id) Sound.play_buzzer return end # ?????????????????? Sound.play_decision @battle_member_window.active = false @party_member_window.active = true @control_window.mode = Window_PartyFormControl::MODE_PARTY_MEMBER else # ????? unless can_change_shift?(@battle_member_window.actor) Sound.play_buzzer return end # ?????? Sound.play_decision index1 = @battle_member_window.selected_index index2 = @battle_member_window.index change_shift(index1, index2) @control_window.mode = Window_PartyFormControl::MODE_BATTLE_MEMBER end elsif Input.trigger?(Input::X) # ?????????? unless can_change_shift?(@battle_member_window.actor) Sound.play_buzzer return end if @battle_member_window.selected_index == nil # ???????? # ?????? Sound.play_decision @battle_member_window.selected_index = @battle_member_window.index @battle_member_window.refresh @control_window.mode = Window_PartyFormControl::MODE_SHIFT_CHANGE else # ????? # ?????? Sound.play_decision index1 = @battle_member_window.selected_index index2 = @battle_member_window.index change_shift(index1, index2) @control_window.mode = Window_PartyFormControl::MODE_BATTLE_MEMBER end end end #-------------------------------------------------------------------------- # ? ???????? #-------------------------------------------------------------------------- def can_change_shift?(actor) # ??????????????????????????? if actor == nil || (KGC::LargeParty::FORBID_CHANGE_SHIFT_FIXED && $game_party.actor_fixed?(actor.id)) return false end return true end #-------------------------------------------------------------------------- # ? ???? #-------------------------------------------------------------------------- def change_shift(index1, index2) # ??????? $game_party.change_shift(index1, index2) # ?????????????? @battle_member_window.selected_index = nil refresh_window end #-------------------------------------------------------------------------- # ? ?????? (??????????????????) #-------------------------------------------------------------------------- def update_party_member @status_window.set_actor(@party_member_window.actor) if Input.trigger?(Input::B) Sound.play_cancel # ???????????????? @battle_member_window.active = true @party_member_window.active = false @control_window.mode = Window_PartyFormControl::MODE_BATTLE_MEMBER elsif Input.trigger?(Input::C) actor = @party_member_window.actor # ?????????????????? if $game_party.battle_members.include?(actor) Sound.play_buzzer return end # ????????? Sound.play_decision actors = $game_party.all_members battle_actors = $game_party.battle_members if @battle_member_window.actor != nil actors[@party_member_window.actor_index] = @battle_member_window.actor actors[@battle_member_window.index] = actor $game_party.set_member(actors.compact) end battle_actors[@battle_member_window.index] = actor $game_party.set_battle_member(battle_actors.compact) refresh_window # ???????????????? @battle_member_window.active = true @party_member_window.active = false @control_window.mode = Window_PartyFormControl::MODE_BATTLE_MEMBER end end #-------------------------------------------------------------------------- # ? ?????? (????????????????) #-------------------------------------------------------------------------- def update_confirm if Input.trigger?(Input::B) Sound.play_cancel hide_confirm_window elsif Input.trigger?(Input::C) case @confirm_window.index when 0 # ???? # ???????????? if $game_party.battle_members.size == 0 Sound.play_buzzer return end Sound.play_decision return_scene when 1 # ???? Sound.play_decision # ?????????????? $game_party.set_member(@party_actors) $game_party.set_battle_member(@battle_actors) return_scene when 2 # ????? Sound.play_cancel hide_confirm_window end end end #-------------------------------------------------------------------------- # ? ?????????? #-------------------------------------------------------------------------- def show_confirm_window if @battle_member_window.active @last_active_window = @battle_member_window else @last_active_window = @party_member_window end @battle_member_window.active = false @party_member_window.active = false
@confirm_window.draw_item(0, $game_party.battle_members.size > 0) @confirm_window.open @confirm_window.active = true end #-------------------------------------------------------------------------- # ? ??????????? #-------------------------------------------------------------------------- def hide_confirm_window @confirm_window.active = true @confirm_window.close @last_active_window.active = true end end
#???????????????????????????????????????
#============================================================================== # ¦ Scene_Battle #==============================================================================
class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ? ????????????????? #-------------------------------------------------------------------------- alias wait_for_message_KGC_LargeParty wait_for_message def wait_for_message return if @ignore_wait_for_message # ?????????????????
wait_for_message_KGC_LargeParty end #-------------------------------------------------------------------------- # ? ????????? #-------------------------------------------------------------------------- alias display_level_up_KGC_LargeParty display_level_up def display_level_up @ignore_wait_for_message = true
display_level_up_KGC_LargeParty
exp = $game_troop.exp_total * KGC::LargeParty::STAND_BY_EXP_RATE / 1000 $game_party.stand_by_members.each { |actor| if actor.exist? actor.gain_exp(exp, KGC::LargeParty::SHOW_STAND_BY_LEVEL_UP) end } @ignore_wait_for_message = false wait_for_message end #-------------------------------------------------------------------------- # ? ????????????? #-------------------------------------------------------------------------- alias start_party_command_selection_KGC_LargeParty start_party_command_selection def start_party_command_selection if $game_temp.in_battle @status_window.index = 0 end
start_party_command_selection_KGC_LargeParty end
if KGC::LargeParty::USE_BATTLE_PARTYFORM #-------------------------------------------------------------------------- # ? ????????????? #-------------------------------------------------------------------------- alias create_info_viewport_KGC_LargeParty create_info_viewport def create_info_viewport create_info_viewport_KGC_LargeParty
@__command_partyform_index = @party_command_window.add_command(Vocab.partyform_battle) @party_command_window.draw_item(@__command_partyform_index, $game_party.battle_partyform_enable?) end #-------------------------------------------------------------------------- # ? ????????????? #-------------------------------------------------------------------------- alias update_party_command_selection_KGC_LargeParty update_party_command_selection def update_party_command_selection if Input.trigger?(Input::C) case @party_command_window.index when @__command_partyform_index # ?????? unless $game_party.battle_partyform_enable? Sound.play_buzzer return end Sound.play_decision process_partyform return end end
update_party_command_selection_KGC_LargeParty end #-------------------------------------------------------------------------- # ? ????????? #-------------------------------------------------------------------------- def process_partyform Graphics.freeze snapshot_for_background $scene = Scene_PartyForm.new(0, Scene_PartyForm::HOST_BATTLE) $scene.main $scene = self @status_window.refresh perform_transition end end end Bonne chance |
|
Ex-Admin Cruelle
Age : 32 Inscrit le : 03/07/2008 Messages : 2441
| Sujet: Re: J'ai un gros problème aidez-moi s'il vous plait !!!!!! Dim 6 Sep 2009 - 20:54 | |
| Tu vois quand tu veux... C'ets juste que toi tu demande de l'aide pour réparer ta maison, et que tu nous donne aucune information sur celle ci, on t'aide comment ? (Métaphore hein) .__. Et on est gentils avec les gens qui ne sont pas des boulets pas la peine de faire son chien battu...
Tu fait un appel de script avec dedans fix_actor(ActorID, true)
Tu remplace ActorID par l'ID de Mario, et il pourra plus être enlevé de l'équipe.
EDIT : Et sur ton profil c'est marqué Niveau making : Très bon, faut que tu m'explique =) |
|
Va-nu-pieds Lv.4
Age : 30 Inscrit le : 23/08/2008 Messages : 69
| Sujet: Re: J'ai un gros problème aidez-moi s'il vous plait !!!!!! Dim 6 Sep 2009 - 21:16 | |
| Franchement merci beaucoup mille Merci |
|
| Sujet: Re: J'ai un gros problème aidez-moi s'il vous plait !!!!!! | |
| |
|