maximilian Posted December 30, 2008 Share Posted December 30, 2008 nn riesco a far funzionare bene lo script che se nn mi sbaglio e´ di Joker.Appena parte il gioco clikko sull'evento e mi dice solo : Light effects e Fire.Spero che qualcuno possa aiutarmi,grazie in anticipo :rovatfl: Link to comment Share on other sites More sharing options...
0 Darkshiva Posted December 30, 2008 Share Posted December 30, 2008 nn riesco a far funzionare bene lo script che se nn mi sbaglio e´ di Joker.Appena parte il gioco clikko sull'evento e mi dice solo : Light effects e Fire.Spero che qualcuno possa aiutarmi,grazie in anticipo :smile: si però per far capire meglio l'errore dei postare o il nome dello script oppure lo script stesso http://team.ffonline.it/imgpersonaggio/seifer_it.jpg http://team.ffonline.it/imgpersonaggio/kimahri_it.jpg E tu in che personaggio ti identifichi?http://img145.imageshack.us/img145/4716/squallni0.gifhttp://img262.imageshack.us/img262/6382/gohanssj2ky4.gif Link to comment Share on other sites More sharing options...
0 maximilian Posted December 30, 2008 Author Share Posted December 30, 2008 eccolo qui : #================================# ■ Light Effects#================================# By: Near Fantastica# Date: 28.06.05# Version: 3#================================ class Spriteset_Map#--------------------------------------------------------------alias les_spriteset_map_initalize initializealias les_spriteset_map_dispose disposealias les_spriteset_map_update update#--------------------------------------------------------------def initialize@light_effects = []setup_lightsles_spriteset_map_initalizeupdateend#--------------------------------------------------------------def disposeles_spriteset_map_disposefor effect in @light_effectseffect.light.disposeend@light_effects = []end#--------------------------------------------------------------def updateles_spriteset_map_updateupdate_light_effectsend#--------------------------------------------------------------def setup_lightsfor event in $game_map.events.valuesnext if event.list == nilfor i in 0...event.list.sizeif event.list.code == 108 and event.list.parameters == ["Light Effects"]type = event.list[i+1].parameters.to_scase type.upcase!when "GROUND"light_effects = Light_Effect.new(event,type)light_effects.light.zoom_x = 200 / 100.0light_effects.light.zoom_y = 200 / 100.0light_effects.light.opacity = 50@light_effects.push(light_effects)when "FIRE"light_effects = Light_Effect.new(event,type)light_effects.light.zoom_x = 300 / 100.0light_effects.light.zoom_y = 300 / 100.0light_effects.light.opacity = 100@light_effects.push(light_effects)when "LAMPPOST"light_effects = Light_Effect.new(event,"LEFT LAMP POST")light_effects.light.opacity = 100@light_effects.push(light_effects)light_effects = Light_Effect.new(event,"RIGHT LAMP POST")light_effects.light.opacity = 100@light_effects.push(light_effects)when "LEFTLANTERN"light_effects = Light_Effect.new(event,type)light_effects.light.opacity = 150@light_effects.push(light_effects)when "RIGHTLANTERN"light_effects = Light_Effect.new(event,type)light_effects.light.opacity = 150@light_effects.push(light_effects)endendendendfor effect in @light_effectscase effect.typewhen "GROUND"effect.light.x = (effect.event.real_x - 200 - $game_map.display_x) / 4effect.light.y = (effect.event.real_y - 200 - $game_map.display_y) / 4when "FIRE"effect.light.x = (effect.event.real_x - 300 - $game_map.display_x) / 4effect.light.y = (effect.event.real_y - 300 - $game_map.display_y) / 4when "LEFT LAMP POST"effect.light.x = (-0.25 * $game_map.display_x) + (effect.event.x * 32) - 5effect.light.y = (-0.25 * $game_map.display_y) + (effect.event.y * 32) - 15when "RIGHT LAMP POST"effect.light.x = (-0.25 * $game_map.display_x) + (effect.event.x * 32) - 25effect.light.y = (-0.25 * $game_map.display_y) + (effect.event.y * 32) - 15when "LEFTLANTERN"effect.light.x = (-0.25 * $game_map.display_x) + (effect.event.x * 32) - 20effect.light.y = (-0.25 * $game_map.display_y) + (effect.event.y * 32) - 5when "RIGHTLANTERN"effect.light.x = (-0.25 * $game_map.display_x) + (effect.event.x * 32) - 10effect.light.y = (-0.25 * $game_map.display_y) + (effect.event.y * 32) - 5endendend#--------------------------------------------------------------def update_light_effectsfor effect in @light_effectsnext if not in_range?(effect.event)case effect.typewhen "GROUND"effect.light.x = (effect.event.real_x - 200 - $game_map.display_x) / 4effect.light.y = (effect.event.real_y - 200 - $game_map.display_y) / 4when "FIRE"effect.light.x = (effect.event.real_x - 300 - $game_map.display_x) / 4effect.light.y = (effect.event.real_y - 300 - $game_map.display_y) / 4when "LEFT LAMP POST"effect.light.x = (-0.25 * $game_map.display_x) + (effect.event.x * 32) - 5effect.light.y = (-0.25 * $game_map.display_y) + (effect.event.y * 32) - 15when "RIGHT LAMP POST"effect.light.x = (-0.25 * $game_map.display_x) + (effect.event.x * 32) - 25effect.light.y = (-0.25 * $game_map.display_y) + (effect.event.y * 32) - 15when "LEFTLANTERN"effect.light.x = (-0.25 * $game_map.display_x) + (effect.event.x * 32) - 20effect.light.y = (-0.25 * $game_map.display_y) + (effect.event.y * 32) - 5when "RIGHTLANTERN"effect.light.x = (-0.25 * $game_map.display_x) + (effect.event.x * 32) - 10effect.light.y = (-0.25 * $game_map.display_y) + (effect.event.y * 32) - 5endendend#--------------------------------------------------------------def in_range?(object)screne_x = $game_map.display_xscrene_x -= 256screne_y = $game_map.display_yscrene_y -= 256screne_width = $game_map.display_xscrene_width += 2816screne_height = $game_map.display_yscrene_height += 2176return false if object.real_x <= screne_xreturn false if object.real_x >= screne_widthreturn false if object.real_y <= screne_yreturn false if object.real_y >= screne_heightreturn trueendend #================================# ■ Light Effects Class#================================ class Light_Effect#--------------------------------------------------------------attr_accessor :lightattr_accessor :eventattr_accessor :type#--------------------------------------------------------------def initialize(event, type)@light = Sprite.new@light.bitmap = RPG::Cache.picture("LE.PNG")@light.visible = true@light.z = 1000@event = event@type = typeendend Link to comment Share on other sites More sharing options...
0 giver Posted January 2, 2009 Share Posted January 2, 2009 nn riesco a far funzionare bene lo script che se nn mi sbaglio e´ di Joker.Appena parte il gioco clikko sull'evento e mi dice solo : Light effects e Fire.Spero che qualcuno possa aiutarmi,grazie in anticipo :smile:Non c'è bisogno di avviare l'evento-mappa affinchè si illumini. Lo fa automaticamente quando entri nella mappa dove si trova . . . Dal tuo post mi pare che tu abbia messo le parole per il funzionamento dello script in un messaggio (Show Text/Mostra Messaggio), ossia il primo comando del primo pannello degli eventi, mentre vanno inserite in un commento (Comment/Commento), ossia sei pulsanti più sotto . . . E stai attento a come lo scrivi, perchè in alcuni casi, per ragioni sconosciute, non funziona anche se le parole sono giuste . . .A me funziona con:Light Effects fire SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]http://www.rpg2s.net/forum/index.php/topic/21892-vintagevisualsrewrite-enhanced-revised-victory-screen-v-35-da-autori-vari-a-giver/ http://www.rpg2s.net/forum/index.php/topic/21868-eventing-utility-simple-last-battle-events-fix-v-30-by-giver/ http://www.rpg2s.net/forum/index.php/topic/21853-vintagerewrite-constance-menu-per-4-personaggi-da-team-constance-a-giver/ http://www.rpg2s.net/forum/index.php/topic/22126-vintagedoveroso-necroedit-dummy-title-22u-update-per-crearlo-ad-eventi-su-mappa-by-giver/ http://www.rpg2s.net/forum/index.php/topic/22127-vintagevisuals-tale-chapters-save-system-20-by-giver/ Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !! http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gifNon riesco a smettere di essere affascinato da immagini come questa . . .http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpgAlcuni wallpapers che faccio ruotare sul mio vecchio PC . . .http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpghttp://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpghttp://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpghttp://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . . BBCode TestingTypeface & Size Link to comment Share on other sites More sharing options...
0 Losco individuo Posted January 2, 2009 Share Posted January 2, 2009 dove si trova sto' script al completo? (demo, pictures, etc etc) http://i428.photobucket.com/albums/qq5/losco_individuo/2cmly83.png http://i428.photobucket.com/albums/qq5/losco_individuo/BannerNGMI-1.pngMembro Alfa della: "Nuova Generazione del Making Italiano""Richiedi anche tu il bannerino della NGdMI e contribuisci alla sopravvivenza della specie...avrai un numero tuo di identificazione e un posto nella storia del making!"Il making con il cuorehttp://i62.servimg.com/u/f62/13/12/87/37/nuovob11.pngNuovo LegendRpgMania Link to comment Share on other sites More sharing options...
0 maximilian Posted January 4, 2009 Author Share Posted January 4, 2009 Grazie mille Giver! adesso lo script funziona benissimo!Gia´che ci sono,scusa se rompo ma pure lo script di FenriX del nome della mappa non mi va bene.Lo inserisco nello spoiler se qualcuno volesse dargli un'occhiata. P.S. : Losco individuo lo script della luce lo puoi trovare nella lista degli script del sito #==============================================================================# - Window_MapName2#------------------------------------------------------------------------------# E' la finestra che mostra il nome della mappa in cui ci si trova#==============================================================================class Game_Map def name $map_infos[$game_temp.player_new_map_id] endend class Window_MapName2 < Window_Base #-------------------------------------------------------------------------- # - Inizializzazione dell'oggetto #-------------------------------------------------------------------------- def initialize super(0, 0, 640, 200) self.contents = Bitmap.new(width - 32, height - 32) refresh end #-------------------------------------------------------------------------- # - Aggiornamento #-------------------------------------------------------------------------- def refresh self.contents.clear self.contents.font.name = "Kingdom Hearts" self.contents.font.size = 60 self.contents.font.color = normal_color self.contents.draw_text(64, 6, 480, 136, $game_map.name, 1) endend posto anke il codice per richiamarlo @>Script:@mapname = Window_MapName2.new@>: :@mapname.x = 0@>: :@mapname.y = 40@>: :@mapname.opacity = 0@>: :@mapname.contents_opacity = 200@>Wait:20 frame(s)@>Script:@mapname.contents_opacity = 180@>Wait:1 frame(s)@>Script:@mapname.contents_opacity = 160@>Wait:1 frame(s)@>Script:@mapname.contents_opacity = 140@>Wait:1 frame(s)@>Script:@mapname.contents_opacity = 120@>Wait:1 frame(s)@>Script:@mapname.contents_opacity = 100@>Wait:1 frame(s)@>Script:@mapname.contents_opacity = 80@>Wait:1 frame(s)@>Script:@mapname.contents_opacity = 60@>Wait:1 frame(s)@>Script:@mapname.contents_opacity = 40@>Wait:1 frame(s)@>Script:@mapname.contents_opacity = 20@>Wait:1 frame(s)@>Script:@mapname.dispose@>Erase Event@> Link to comment Share on other sites More sharing options...
Question
maximilian
nn riesco a far funzionare bene lo script che se nn mi sbaglio e´ di Joker.
Appena parte il gioco clikko sull'evento e mi dice solo : Light effects e Fire.
Spero che qualcuno possa aiutarmi,grazie in anticipo :rovatfl:
Link to comment
Share on other sites
5 answers to this question
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