Narutofan95 Posted December 31, 2008 Share Posted December 31, 2008 (edited) Cross Command in battaglia(stile Breath of Fire 3)Descrizione: Sostituisce i comandi da battaglia "Attacca, Magie, Oggetti, Difendi" con delle immagini disposte a croce. Enjoy ^^Autore: BlazingamerIstruzioni: Copiare e incollare lo script sopra main. Andare in Scene_Battle e cercare@actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])al che sostituire con@actor_command_window = CrossCommand.newScreen:http://img528.imageshack.us/img528/9983/screenjv5.pngScript: #============================================================================== # CrossCommand # # Blazingamer # ----------------------------------------- # Makes a pretty command window in a shape of a cross like in Wild Arms #============================================================================== class CrossCommand < Window_Selectable def initialize super(320 - 128, 160 - 128, 256, 256) self.contents = Bitmap.new(width - 32, height - 32) self.opacity = 0 @commands = ["attack", "magic","defend","items","run away"] @item_max = 5 draw_item(0, 32,32,"Attack") draw_item(1, 32,0, "Magic") draw_item(2, 64,32,"Defend") draw_item(3, 0,32, "Items") draw_item(4, 32,64, "Run") self.active = false self.visible = false self.index = 0 end def draw_item(index, x, y, icon) bitmap = RPG::Cache.icon(icon) self.contents.blt(x, y, bitmap, Rect.new(0, 0, 32, 32)) end def update_cursor_rect if index == 3 self.cursor_rect.set(0, 32, 32, 32) elsif index == 2 self.cursor_rect.set(64, 32, 32, 32) elsif index == 1 self.cursor_rect.set(32,0,32,32) elsif index == 4 self.cursor_rect.set(32,64,32,32) else self.cursor_rect.set(32,32,32,32) end if Input.press?(Input::LEFT) @index = 3 elsif Input.press?(Input::RIGHT) @index = 2 elsif Input.press?(Input::UP) @index = 1 elsif Input.press?(Input::DOWN) @index = 4 else @index = 0 end end end class Scene_Battle def update_phase3_basic_command if Input.trigger?(Input::B) $game_system.se_play($data_system.cancel_se) phase3_prior_actor return end if Input.trigger?(Input::C) case @actor_command_window.index when 0 $game_system.se_play($data_system.decision_se) @active_battler.current_action.kind = 0 @active_battler.current_action.basic = 0 start_enemy_select when 1 $game_system.se_play($data_system.decision_se) @active_battler.current_action.kind = 1 start_skill_select when 2 $game_system.se_play($data_system.decision_se) @active_battler.current_action.kind = 0 @active_battler.current_action.basic = 1 phase3_next_actor when 3 $game_system.se_play($data_system.decision_se) @active_battler.current_action.kind = 2 start_item_select when 4 enemies_agi = 0 enemies_number = 0 for enemy in $game_troop.enemies if enemy.exist? enemies_agi += enemy.agi enemies_number += 1 end end if enemies_number > 0 enemies_agi /= enemies_number end actors_agi = 0 actors_number = 0 for actor in $game_party.actors if actor.exist? actors_agi += actor.agi actors_number += 1 end end if actors_number > 0 actors_agi /= actors_number end success = rand(100) < 50 * actors_agi / enemies_agi if success $game_system.se_play($data_system.escape_se) $game_system.bgm_play($game_temp.map_bgm) battle_end(1) else $game_party.clear_actions start_phase4 end end return end end end Immagini da INSERIRE IN PICTURES: http://www.creationasylum.net/uploads/monthly_08_2007/post-4874-1186159701.pnghttp://www.creationasylum.net/uploads/monthly_08_2007/post-4874-1186159758.pnghttp://www.creationasylum.net/uploads/monthly_08_2007/post-4874-1186159745.pnghttp://www.creationasylum.net/uploads/monthly_08_2007/post-4874-1186159727.pnghttp://www.creationasylum.net/uploads/monthly_08_2007/post-4874-1186159715.pngN.B. I file sono da rinominare rispettivamente in "Attack", "Magic", "Run", "Items" e "Defend" Edited April 26, 2013 by Dilos Applicato tag code. http://i46.tinypic.com/295vf6e.png merutochan Bandcamp | Twitter | Tumblr Link to comment Share on other sites More sharing options...
Squall_Leonheart Posted December 31, 2008 Share Posted December 31, 2008 Dunque ho provato e inanzitutto non mi mostra le icone e qualsiasi comando azioni mi da un errore di metodo...Ora non so perkè ho RTAB come script di battaglia...Come posso fare?(Anke minkoff credo) P.S.nn hai specificato nemmeno la scene battle io lo fatto nella prima però potrei aver sbagliato Iscriviti sul mio canale youtube -https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriberSeguimi su Instagram -https://www.instagram.com/ancestralguitarist/---------------------------------------------------------------------------------------------------------------------------------------Contest vinti---------------------------------------------------------------------------------------------------------------------------------------FACE CONTEST # 3BANNER CONTEST #69 Link to comment Share on other sites More sharing options...
Narutofan95 Posted January 1, 2009 Author Share Posted January 1, 2009 Qui non saprei veramente. L'RTAB va in conflitto con quasi tutti gli script che implicano la Scene_Battle. Non so davvero come fare. http://i46.tinypic.com/295vf6e.png merutochan Bandcamp | Twitter | Tumblr Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now