dark lord Posted November 24, 2009 Share Posted November 24, 2009 (edited) Non sò se nel titolo mi sono spiegato bene, ma il mio obiettivo e di mettere su true uno script che è su false fintanto l'arma desiderata non è equipaggiata: ES. if Arma (...) è equipaggiata>setta su true questo scriptelsesettalo su false Come posso fare? EDIT: Chiedo scusa ai mod per avere sbagliato sezione! Edited November 24, 2009 by dark lord Link to comment Share on other sites More sharing options...
Kingartur2 Posted November 24, 2009 Share Posted November 24, 2009 Condizione se con call script:$game_actors[iDEROE].weapon_id == IDARMAesegui call script e ci scrivi quello che vuoi Per qualsiasi motivo non aprite questo spoiler. Ho detto di non aprirlo ! Se lo apri ancora esplode il mondo. Aaaaaa è un vizio. Contento? Il mondo è esploso, sono tutti morti per colpa della tua curiosità . Vuoi che ti venga anche il morbillo, la varicella e l'AIDS??? O bravo ora sei un malato terminale e nessuno ti puo curare, sono tutti morti ! Se clicchi ancora una volta il PC esplode. E dai smettila !! Uff!! Hai cliccato tante volte che ho dovuto sostituirlo con un codebox. http://s8.postimg.org/yntv9nxld/Banner.png http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif Link to comment Share on other sites More sharing options...
dark lord Posted November 24, 2009 Author Share Posted November 24, 2009 Cioè una cosa del genere: if $game_actors[iDEROE].weapon_id == IDARMAe poi? no, perchè ciò che voglio settare su true è questo script... #===============================================================================# MOG_XAS Animated Combo Hit V1.4#===============================================================================# By Moghunter# [url="http://www.atelier-rgss.com"]http://www.atelier-rgss.com[/url]#===============================================================================# Apresenta o numero de acertos e a quantidade total de dano. #===============================================================================module MOG #Definição do tempo para fazer um combo(HIT). XASCOMBO_TIME = 1 #Posição do medidor de combo. CSTRIKE_POSITION = [590, 90]#_______________________________________________________________________________# Imagens necessarias.## XCombo.png#_______________________________________________________________________________end $mog_rgss_xas_animated_combo_hit = false################ Game_Temp ################class Game_Temp attr_accessor :xascombo attr_accessor :xascombotime attr_accessor :xascombotime2 attr_accessor :xascombowin_x attr_accessor :xascombowin_y attr_accessor :xascomboopa attr_accessor :xas_hit attr_accessor :xas_max_damage attr_accessor :xashitwin_x attr_accessor :xashitwin_y attr_accessor :xashitwin_opa attr_accessor :xashitwin_zoom_x attr_accessor :xashitwin_zoom_y attr_accessor :xasdamwin_x attr_accessor :xasdamwin_y attr_accessor :xasdamwin_opa attr_accessor :xasdamwin_zoom_x attr_accessor :xasdamwin_zoom_y attr_accessor :xashudwin_x attr_accessor :xashudwin_y attr_accessor :xashudwin_opa alias mog_xascombo_initialize initialize def initialize mog_xascombo_initialize @xascombo = 0 @xascombotime = 0 @xascombotime2 = 0 @xascombowin_x = -200 @xascombowin_y = 0 @xascomboopa = 0 @xas_hit = 0 @xas_max_damage = 0 @xashitwin_x = 0 @xashitwin_y = 0 @xashitwin_opa = 0 @xashitwin_zoom_x = 1 @xashitwin_zoom_y = 1 @xashudwin_x = 0 @xashudwin_y = 0 @xashudwin_opa = 0 @xasdamwin_x = 0 @xasdamwin_y = 0 @xasdamwin_opa = 0 @xasdamwin_zoom_x = 1 @xasdamwin_zoom_y = 1 end end################# Game_Battler #################class Game_Battler alias mog_xascombo_skill_effect skill_effect def skill_effect(user, skill) mog_xascombo_skill_effect(user, skill) if skill.element_set.include?($data_system.elements.index("HIT")) and user.is_a?(Game_Actor) and self.is_a?(Game_Enemy) if self.damage.is_a?(Numeric) and self.damage > 0 unless XAS_BA_ENEMY::ITEM_ENEMY.include?(self.id) $game_temp.xascombo += 1 $game_temp.xascombotime = 3 $game_temp.xascombotime2 = 40 * MOG::XASCOMBO_TIME end end end end end#===============================================================================# XRXS_BattlerAttachment#===============================================================================module XRXS_BattlerAttachmentalias mog_xas_max_damage_action_effect action_effect def action_effect(bullet, action_id) mog_xas_max_damage_action_effect(bullet, action_id) user = bullet.action.user if self.battler.is_a?(Game_Enemy) and self.battler.damage.is_a?(Numeric) and user.battler.is_a?(Game_Actor) and self.battler.damage > 0 and not XAS_BA_ENEMY::ITEM_ENEMY.include?(self.battler.id) $game_temp.xas_max_damage += self.battler.damage end endend#===============================================================================# Scene_Map#===============================================================================class Scene_Map alias xascombo_main main def main @combosprite_hud = Combo_Sprite_Hud.new xascombo_main @combosprite_hud.dispose @combosprite_hud = nil end alias xascombo_update update def update xascombo_update $game_temp.xascombotime -= 0.15 $game_temp.xascombotime2 -= 1 if @combosprite_hud != nil @combosprite_hud.update end end end#===============================================================================# Combo_Sprite_Hud#===============================================================================class Combo_Sprite_Hud < Sprite include MOG def initialize @viewport = Viewport.new(0, 0, 640, 480) @viewport.z = 99999 super(@viewport) @combo_hit = $game_temp.xascombo @combo = Sprite.new @combo.bitmap = Bitmap.new(100,60) @combo.z = 9999 @combo.bitmap.font.size = 50 @combo.bitmap.font.bold = true @combo.bitmap.draw_hemming_text(0, 0, 120, 60, @combo_hit.to_s,1) @combo.ox = $game_temp.xashitwin_x @combo.oy = $game_temp.xashitwin_y @combo.zoom_x = $game_temp.xashitwin_zoom_x @combo.zoom_y = $game_temp.xashitwin_zoom_y @combo.opacity = $game_temp.xashitwin_opa @total = Sprite.new @total.bitmap = Bitmap.new(100,60) @total.z = 9999 @total.bitmap.font.size = 20 @total.bitmap.font.bold = true @total.bitmap.font.color.set(250, 150, 50) @total.bitmap.draw_hemming_text(0, 0, 120, 60, $game_temp.xas_max_damage.to_s,1) @total.ox = $game_temp.xasdamwin_x @total.oy = $game_temp.xasdamwin_y @total.zoom_x = $game_temp.xasdamwin_zoom_x @total.zoom_y = $game_temp.xasdamwin_zoom_y @total.opacity = $game_temp.xasdamwin_opa @hud = Sprite.new @hud.bitmap = RPG::Cache.picture("XCombo") @hud.z = 9998 @hud.ox = $game_temp.xashudwin_x @hud.oy = $game_temp.xashudwin_y @hud.opacity = $game_temp.xashudwin_opa if @combo_hit <= 0 @combo.opacity = 0 @combo.visible = false @hud.visible = false @total.visible = false else @combo.visible = true @hud.visible = true @total.visible = true end end def dispose if @combo != nil @combo.bitmap.dispose @combo.dispose @combo = nil end if @hud != nil @hud.bitmap.dispose @hud.dispose @hud = nil end if @total != nil @total.bitmap.dispose @total.dispose @total = nil end if @viewport != nil @viewport.dispose @viewport = nil end end def refresh @combo_hit = $game_temp.xascombo combo_strike_valor = 0.1 *@combo_hit / 10 $game_temp.xashitwin_zoom_x = 2 $game_temp.xashitwin_zoom_y = 2 $game_temp.xashitwin_opa = 70 $game_temp.xashitwin_x = 15 $game_temp.xashitwin_y = -10 $game_temp.xashudwin_x = 0 $game_temp.xashudwin_y = -100 $game_temp.xashudwin_opa = 255 $game_temp.xasdamwin_zoom_x = 1 $game_temp.xasdamwin_zoom_y = 1 $game_temp.xasdamwin_opa = 100 $game_temp.xasdamwin_x = -85 $game_temp.xasdamwin_y = -80 @combo.bitmap.clear @combo.bitmap.draw_hemming_text(0, 0, 120, 60, @combo_hit.to_s,1) @total.bitmap.clear @total.bitmap.draw_hemming_text(0, 0, 120, 60, $game_temp.xas_max_damage.to_s,1) @combo.ox = $game_temp.xashitwin_x @combo.oy = $game_temp.xashitwin_y @combo.zoom_x = $game_temp.xashitwin_zoom_x @combo.zoom_y = $game_temp.xashitwin_zoom_y @combo.opacity = $game_temp.xashitwin_opa @total.ox = $game_temp.xasdamwin_x @total.oy = $game_temp.xasdamwin_y @total.zoom_x = $game_temp.xasdamwin_zoom_x @total.zoom_y = $game_temp.xasdamwin_zoom_y @total.opacity = $game_temp.xasdamwin_opa @hud.ox = $game_temp.xashudwin_x @hud.oy = $game_temp.xashudwin_y @hud.opacity = $game_temp.xashudwin_opa @combo.visible = true @hud.visible = true @total.visible = true end def update if @combo.opacity <= 0 @combo.visible = false @hud.visible = false @total.visible = false end @combo.ox = $game_temp.xashitwin_x @combo.oy = $game_temp.xashitwin_y @combo.zoom_x = $game_temp.xashitwin_zoom_x @combo.zoom_y = $game_temp.xashitwin_zoom_y @combo.opacity = $game_temp.xashitwin_opa @hud.ox = $game_temp.xashudwin_x @hud.oy = $game_temp.xashudwin_y @hud.opacity = $game_temp.xashudwin_opa @total.ox = $game_temp.xasdamwin_x @total.oy = $game_temp.xasdamwin_y @total.zoom_x = $game_temp.xasdamwin_zoom_x @total.zoom_y = $game_temp.xasdamwin_zoom_y @total.opacity = $game_temp.xasdamwin_opa if $game_temp.xascombo == 0 @combo_hit = $game_temp.xascombo end if $game_temp.xascombotime > 0 and $game_temp.xascombo > 0 if $game_temp.xasdamwin_x < -65 $game_temp.xasdamwin_x += 1 $game_temp.xasdamwin_opa += 8 elsif $game_temp.xasdamwin_x <= -65 $game_temp.xasdamwin_x = -65 $game_temp.xasdamwin_opa = 255 end if $game_temp.xascombotime > 0.1 $game_temp.xashitwin_zoom_x -= 0.05 $game_temp.xashitwin_zoom_y -= 0.05 $game_temp.xashitwin_opa += 8 elsif $game_temp.xascombotime <= 0.1 and $game_temp.xascombo > 0 $game_temp.xashitwin_zoom_x = 1 $game_temp.xashitwin_zoom_y = 1 $game_temp.xashitwin_opa= 255 $game_temp.xashitwin_x = 10 $game_temp.xashitwin_y= -115 end if $game_temp.xashitwin_x > 25 $game_temp.xashitwin_x -= 5 end if $game_temp.xashitwin_y > -105 $game_temp.xashitwin_y -= 5 end elsif @combo.visible == true and $game_temp.xascombotime2 < 80 $game_temp.xashitwin_x -= 5 $game_temp.xashitwin_opa -= 10 $game_temp.xasdamwin_x -= 3 $game_temp.xasdamwin_opa -= 10 $game_temp.xashudwin_x += 5 $game_temp.xashudwin_opa -= 10 $game_temp.xascombo = 0 $game_temp.xas_max_damage = 0 @combo_hit = $game_temp.xascombo end if @combo_hit != $game_temp.xascombo and $game_temp.xascombo != 0 refresh end end end Cosa devo fare? Link to comment Share on other sites More sharing options...
Kingartur2 Posted November 24, 2009 Share Posted November 24, 2009 Ma li poi devi fare qualche modifica allo script mettendo la variabile nello scene title e quindi poi devi salvarla Per qualsiasi motivo non aprite questo spoiler. Ho detto di non aprirlo ! Se lo apri ancora esplode il mondo. Aaaaaa è un vizio. Contento? Il mondo è esploso, sono tutti morti per colpa della tua curiosità . Vuoi che ti venga anche il morbillo, la varicella e l'AIDS??? O bravo ora sei un malato terminale e nessuno ti puo curare, sono tutti morti ! Se clicchi ancora una volta il PC esplode. E dai smettila !! Uff!! Hai cliccato tante volte che ho dovuto sostituirlo con un codebox. http://s8.postimg.org/yntv9nxld/Banner.png http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif Link to comment Share on other sites More sharing options...
dark lord Posted November 25, 2009 Author Share Posted November 25, 2009 Cioè di preciso cosa devo fare? 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