Jump to content
Rpg²S Forum

makeluke

Utenti
  • Posts

    54
  • Joined

  • Last visited

Everything posted by makeluke

  1. Come faccio a far apparire lo sfondo nelle battaglie evento? Cioè quelle casuali ( ogni 10 passi escono dei nemici) esce lo sfondo... ma i nemici che faccio uscire tramite evento lo sfondo è nero!
  2. Ok... cmq io intedevo quale fosse il mio title se vi interssava... non c'entrava niente con il topic!
  3. Volevo inserire un title animato... le casette all'inizio hanno rotto... sò che si può cambiare mettendo un'immagine e chiamarla title ma io volevo un animazione. Se volete sapere quale chiedetemolo ;)
  4. sisi ho ricercato e trovato grazie :3
  5. Mi servirebbero dei tileset di computer e cose che si trovano nei laboratori..
  6. E per che cosa stanno tutti quei % ?
  7. Altra domanda... come cambio le farsi del gioco? ad esempio quando lo testo e metto fuga esce: playere has escaped come posso mettere player è scappato?
  8. un'attimo che vi faccio lo screen... http://i.imgur.com/UnszX.png sul testo del gioco l'ultimo mi esce sempre 1 se aggiundo 1 ad un immagine nel test esce intro211 ho risolto! Bastava usare la stessa base! ad esempio le imm che volevo le chiamavo intro 1 intro2 ecc ecc e lì si doveva inserire solo la base in questo caso intro :D
  9. nono! allora testo il gioco e mi dà questo errore: graphics /pictures/ (nomedellafoto)1 mentre sotto la musica continua! Edit: se scrivo "intro1" e number max 1 va ma se ci provo con 2 non va.. la mia domanda è li devo mettere entrambi nelle "" o :"intro1" "intro2"?
  10. certo che corrispondono http://www.rpg2s.net/forum/index.php?showtopic=3977&hl=%2Bscene+%2Bintro+%2Breloaded&fromsearch=1 ecco il link!
  11. Allora usando lo script scene intro reloaded mi fa partire la musica ma non le immagini... come le devo inserire cosi? : "www" "www" "www" cosi? "wwwwwwww" come? io fi file li ho in dove dovrebbero stare ma mi dice unable to find... come faccio?
  12. Ahhhh! ci sto capendo sempre di più devo solo allenarmi (._.)
  13. Allora prima di tutto volevo ringraziarvi per avermi aiutato. Poi 1° potete fare una guida detttttttttagliiiiiata al massimo per capire? 2° come fanno le switch a ''capire'' che voglio cambiare tempo T_T
  14. Risolto grazie Ok caso mai i prossimi facci così :D
  15. quando vado nel database e carico un personaggio : http://i.imgur.com/SZiqQ.png
  16. ho lasciato la riga così com'è! @Lusianl ma volendo si putrebbe applicare anche ad una locanda? ad esempio mostri scelta rimani per la notte o dormi fino a giorno... PS: non mi parte D:
  17. sisi l'ho riletto e l'ho provato su 4 progetti diversi ma non ho provato a lasciare la riga vuota! Ti fò sapere... Mi dice line 42 syntax error e sulla linea 42 c'è scritto: module time_System
  18. Stessa cosa come sopra soltanto che ora dice script ''Time Hud'' etc.. etc.. ma ci fai caso che inviamo tt i messaggi nello stesso tempo? :Pcomunque sarebbe bello si ma non posso provarci perchè questa scritta d'errore mi compare appena testo il gioco! Riririrriirir...... EDIT: Ho smanettato un pochino e sono uscito dalla situazione e mi sono bloccato in un altra: Time System Riga417 cosa devo inserire? Dice: $game_Time = (quidevoinserirequalcosa) .new
  19. mmmh ora ci provo poi edito e ti faccio sapere! @luisianl guarda sarebbe magnifico ma non riesco ad usare gli switch T_T non bene cioè ho capito come fare ma quando lo provo non mi va mai.
  20. Grazie mille parte bene ora! (Dio quanto amo questo forum *W* )
  21. ok ora ci provo e fi faccio sapere ;P
  22. A parte il fatto che sto riempendo questa sezione con miei topic (scusate) Ho messo alcuni (tutti tranne quello della tastiera avanazata e quello con il quale si può muovere in diagonale) gli script di:Vanfly Engine Medly o cose così comunque, quando vado a testare il gioco appeno arrivo a metà mappa, essa mi si sposta di 3-4 quadratini più avanti: (il video nn sò come metterlo ma vi dò 3 screen:) http://i.imgur.com/ajwur.png e fin qui tutto normale (si ho messo l'impostazione a schermo allungato sempre uno di quelli script) http://i.imgur.com/BbEi0.png ancora normale... http://i.imgur.com/ZSP55.png T_T perchèèèèèèèèèèèèèèèèèèèèè?
  23. Benvenuto (non sono più l'ultimo )
  24. Ok ho editato per evitare il doppio post cmq a qualsiasi script che metto mi dà l'errore ho messo quello che cambia ora manualmente con il passare del tempo: #============================================================================== # ** Weather System #------------------------------------------------------------------------------ # Autore: The Sleeping Leonhart # Versione: 1.1 # Data di rilascio: 12/02/2009 #------------------------------------------------------------------------------ # Descrzione: # Questo script permette di avere condizioni meteo dinamiche. # Richiede il mio Time System. #------------------------------------------------------------------------------ # Versione: # 1.0 (10/02/2009): Versione Base. # 1.1 (12/02/2009): Aggiunte fog meteo. #------------------------------------------------------------------------------ # Istruzioni: # Per far apparire un evento in una determinata condizione meteo create un # commento nell'evento e scriveteci: # TS $game_time.weather == CONDIZIONE # Per far apparire un evento in una determinata stagione create un # commento nell'evento e scriveteci: # TS $game_time.season == CONDIZIONE # Per forzare la generazione di una condizione meteo usare lo script: # $game_time.generate_weather("METEO") # METEO è òa condizione meteo che si vuole, non inserire nulla per generare # una condizione random. # Inserire lo script sotto il Time System. # Per personalizzare lo script andate nella sezione Configurazione. #============================================================================== #============================================================================== # Configurazione #============================================================================= module Weather_System #========================================================================= # Season: Imposta le stagioni #------------------------------------------------------------------------- # Sintassi: # Season = {season => [month, ...], ...} # Parametri: # season: nome della stagione # month: mese presente nella stagione #========================================================================= Season = { "Inverno" => ["Dicembre", "Gennaio", "Febbraio"], "Primavera" => ["Marzo", "Aprile", "Maggio"], "Estate" => ["Giugno", "Luglio", "Agosto"], "Autunno" => ["Settembre", "Ottobre", "Novembre"] } #========================================================================= # Weather: Imposta le condizioni atmosferiche #------------------------------------------------------------------------- # Sintassi: # Weather = {weather => [type, strenght, mindur, maxdur, require, bgs, fog], ...} # Parametri: # weather: nome della condizione atmosferica # type: tipo di condizione, 1) pioggia, 2) tempesta, 3) neve # strenght: forza della condizione (da 1 a 10) # mindur: durata minima della condizione in minuti (quelli del Time System, non di gioco) # maxdur: durata massima della condizione in minuti (quelli del Time System, non di gioco) # require: specifica se serve una condizione meteo prima di poter essere eseguita # bgs: bgs che viene suonato durante la condizione # fog: fog che viene visualizzata durante la condizione, va impostata da WeatherFog #========================================================================= Weather = { "Pioggia" => [1, 5, 60, 120, nil, "Rain", "Nuvole"], "Temporale" => [1 ,9, 120, 140, "Pioggia", "Rain", nil], "Tempesta" => [2 ,8, 40, 60, "Temporale", "Storm", nil], "Neve" => [3, 4, 60, 130, nil, nil, nil] } #========================================================================= # WeatherFog: Imposta le fog per le condizioni meteo #------------------------------------------------------------------------- # Sintassi: # WeatherFog = {fog => [picture, x, y, zoom, opacità, blend] # Parametri: # fog: nome della fog # picture: imaggine della fog, va inserita nella cartella fog # x: spostamento coordinata x della fog # y: spostamento coordinata y della fog # zoom: zoom della fog # opacità: opacità della fog # blend: blend della fog 0)modo normale, 1)modo aggiungi, 2)modo sottrai #========================================================================= WeatherFog = { "Nuvole" => ["Clouds", 2, 3, 100, 160, 0] } #========================================================================= # SeasonWeather: Imposta le condizioni atmosferiche per ciascuna stagione #------------------------------------------------------------------------- # Sintassi: # SeasonWeather = {season => {weather => perc, ...}, ...} # Parametri: # season: nome della stagione # weather: nome della condizione atmosferica # perc: percentuale di possibilità della condizione #========================================================================= SeasonWeather = { "Inverno" => {"Pioggia" => 25, "Neve" => 25, "Temporale" => 40}, "Primavera" => {"Pioggia" => 35, "Temporale" => 25}, "Estate" => {"Pioggia" => 10}, "Autunno" => {"Pioggia" => 15, "Temporale" => 30, "Tempesta" => 50} } #========================================================================= # WeatherHour: Imposta ogni quante ore viene generata una condizione meteo #------------------------------------------------------------------------- # Sintassi: # WeatherHour = hour # Parametri: # hour: numero di ore #========================================================================= WeatherHour = 6 end class Game_Time attr_accessor :weather_active attr_reader :weather attr_reader :season alias tslwthrsstm_gmtm_ntzlz initialize def initialize tslwthrsstm_gmtm_ntzlz @weather = nil @weather_active = true @weather_Time = 0 @weather_duration = 0 @weather_list = [] @season = "" @map_bgs = nil retrieve_season end alias tslwthrsstm_gmtm_ncrs_mnt increase_minute def increase_minute tslwthrsstm_gmtm_ncrs_mnt test_weather end alias tslwthrsstm_gmtm_ncrshr increase_hour def increase_hour tslwthrsstm_gmtm_ncrshr if @hour % Weather_System::WeatherHour == 0 && $game_map.screen.weather_type == 0 generate_weather end end alias tslwthrsstm_gmtm_ncrsmnth increase_month def increase_month tslwthrsstm_gmtm_ncrsmnth retrieve_season end def retrieve_season for i in Weather_System::Season.keys if Weather_System::Season.include?(time_System::Month[@month - 1]) @season = i return end end end def test_weather if (@weather_Time + @weather_duration) <= ((@hour * time_System::MinutePerHour) + @minute) @weather_Time = 0 @weather_duration = 0 if @map_bgs != nil @map_bgs.play @map_bgs = nil end @weather = nil $game_map.screen.weather(0, 0, 0) $game_map.set_wfog("", 0, 0) a = @weather_list.pop if a != nil generate_weather(a) end elsif @weather != nil && $game_map.screen.weather_type == 0 && @weather_active ar = Weather_System::Weather[@weather] $game_map.screen.weather(ar[0], ar[1], 600) if ar[6] != nil fog = Weather_System::WeatherFog[ar[6]] $game_map.set_wfog(fog[0], fog[1], fog[2], fog[3], fog[4], fog[5]) end if ar[5] != nil Audio.bgs_play("Audio/BGS/" + ar[5], 70, 100) end end end def generate_weather(forced = nil) if @weather_active && @weather_Time == 0 if forced == nil quote = [0] ind = 1 for i in Weather_System::SeasonWeather[@season].keys quote[ind] = quote[ind - 1] + Weather_System::SeasonWeather[@season] ind += 1 end rndm = rand(101) for i in 1...quote.size if rndm > quote[i - 1] && rndm < quote @weather = Weather_System::SeasonWeather[@season].keys[i - 1] break end end return if @weather == nil loop do Graphics.update if Weather_System::Weather[@weather][4] != nil @weather_list.push(@weather) @weather_list.insert(0 ,Weather_System::Weather[@weather][4]) @weather = Weather_System::Weather[@weather][4] else break end end else @weather = forced end ar = Weather_System::Weather[@weather] dur = (ar[2] + rand(ar[3] - ar[2])) @weather_Time = ((@hour * time_System::MinutePerHour) + @minute) @weather_duration = dur $game_map.screen.weather(ar[0], ar[1], 600) if ar[6] != nil fog = Weather_System::WeatherFog[ar[6]] $game_map.set_wfog(fog[0], fog[1], fog[2], fog[3], fog[4], fog[5]) end if ar[5] != nil @map_bgs = RPG::BGS.last if @map_bgs == nil Audio.bgs_play("Audio/BGS/" + ar[5], 70, 100) end end end end module Cache def self.fog(filename) load_bitmap("Graphics/Fogs/", filename) end end class Game_Map attr_reader :weather_fog_name attr_reader :weather_fog_x attr_reader :weather_fog_y attr_reader :weather_fog_zoom attr_reader :weather_fog_opacity attr_reader :weather_fog_blend alias tslwthrsstm_gmmp_ntzlz initialize def initialize tslwthrsstm_gmmp_ntzlz @weather_fog_name = "" @weather_fog_x = 0 @weather_fog_y = 0 @weather_fog_sx = 0 @weather_fog_sy = 0 @weather_fog_zoom = 100 @weather_fog_opacity = 255 @weather_fog_blend = 0 end def set_wfog(name, x = 0, y = 0, zoom = 100, opacity = 255, blend = 0) @weather_fog_name = name @weather_fog_sx = x @weather_fog_sy = y @weather_fog_zoom = zoom @weather_fog_opacity = opacity @weather_fog_blend = blend end alias tslwthrsstm_gmmp_pdt update def update tslwthrsstm_gmmp_pdt update_weather_fog end def update_weather_fog @weather_fog_x += (@weather_fog_sx / 8.0) @weather_fog_y += (@weather_fog_sy / 8.0) end end class Game_Player alias tslwthrsstm_gmplr_prfrmtrsfr perform_transfer def perform_transfer tslwthrsstm_gmplr_prfrmtrsfr $game_map.screen.weather(0, 0, 0) $game_map.set_wfog("", 0, 0) $game_time.test_weather end end class Spriteset_Map alias tslwthrsstm_sprtstmp_ntzlz initialize def initialize @weather_fog = Plane.new(@viewport1) @weather_fog.z = 3000 @weather_fog_name = "" tslwthrsstm_sprtstmp_ntzlz end alias tslwthrsstm_sprtstmp_pdt update def update tslwthrsstm_sprtstmp_pdt update_weather_fog end alias tslwthrsstm_sprtstmp_dsps dispose def dispose tslwthrsstm_sprtstmp_dsps if @weather_fog.bitmap != nil @weather_fog.bitmap.dispose end @weather_fog.dispose end def update_weather_fog if @weather_fog_name != $game_map.weather_fog_name @weather_fog_name = $game_map.weather_fog_name if @weather_fog.bitmap != nil @weather_fog.bitmap.dispose @weather_fog.bitmap = nil end if @weather_fog_name != "" @weather_fog.bitmap = Cache.fog(@weather_fog_name) end Graphics.frame_reset end @weather_fog.ox = $game_map.display_x / 4 + $game_map.weather_fog_x @weather_fog.oy = $game_map.display_y / 4 + $game_map.weather_fog_y if @weather_fog.zoom_x != $game_map.weather_fog_zoom / 100.0 @weather_fog.zoom_x = $game_map.weather_fog_zoom / 100.0 @weather_fog.zoom_y = $game_map.weather_fog_zoom / 100.0 end if @weather_fog.opacity != $game_map.weather_fog_opacity @weather_fog.opacity = $game_map.weather_fog_opacity end if @weather_fog.blend_type != $game_map.weather_fog_blend @weather_fog.blend_type = $game_map.weather_fog_blend end end end Time Hud Spoiler #============================================================================== # ** Time HUD #------------------------------------------------------------------------------ # Autore: The Sleeping Leonhart # Versione: 1.0 # Data di rilascio: 12/02/2009 #------------------------------------------------------------------------------ # Descrzione: # Questo script permette di avere un Hud per visualizzare il tempo del Time System #------------------------------------------------------------------------------ # Versione: # 1.0 (12/02/2009): Versione Base. #------------------------------------------------------------------------------ # Istruzioni: # Inserire sotto il Time System e sotto il Weather System. # Per forzare lo stato dell'hud usare lo script: # $scene.show_time_hud(true/false) # Per personalizzare lo script andate nella sezione Configurazione. #============================================================================== #============================================================================== # Configurazione #============================================================================= module time_Hud #========================================================================= # DateSeparetor: Imposta il carattere che separa la data #------------------------------------------------------------------------- # Sintassi: # DateSeparetor = char # Parametri: # char: carattere di separazione #========================================================================= DateSeparetor = "/" #========================================================================= # TimeSeparetor: Imposta il carattere che separa il tempo #------------------------------------------------------------------------- # Sintassi: # TimeSeparetor = char # Parametri: # char: carattere di separazione #========================================================================= TimeSeparetor = ":" #========================================================================= # DateType: Imposta il tipo di data visualizzata #------------------------------------------------------------------------- # Sintassi: # DateType = type # Parametri: # type: 0) Giorno/Mese/Anno 1) NomeGiorno Giorno NomeMese Anno #========================================================================= DateType = 1 #========================================================================= # TimeType: Imposta il tipo di tempo visualizzato #------------------------------------------------------------------------- # Sintassi: # TimeType = type # Parametri: # type: 0) Ora:Minuti:Secondi 1) Ora:Minuti:Second AM/PM #========================================================================= TimeType = 1 #========================================================================= # Position: Imposta la posizione della finestra #------------------------------------------------------------------------- # Sintassi: # Position = [x, y] # Parametri: # x: coordinata x # y: coordinata y #========================================================================= Position = [0, 0] #========================================================================= # Show...: Imposta la visibilità di data, tempo, secondi, stagion, meteo #------------------------------------------------------------------------- # Sintassi: # Show... = bool # Parametri: # bool: true visible, false non visibile #========================================================================= ShowDate = true ShowTime = true ShowSecond = false ShowSeason = false ShowWeather = false #========================================================================= # Opacity: Imposta l'opacità dello sfondo della finestra #------------------------------------------------------------------------- # Sintassi: # Opacity = n # Parametri: # n: numero da 0(invisibile) a 255(completamente visibile) #========================================================================= Opacity = 0 #========================================================================= # Button: Imposta il bottone da premere per visualizzare l'HUD #------------------------------------------------------------------------- # Sintassi: # Button = Input::costante # Parametri: # costante: DOWN LEFT RIGHT UP A B C X Y Z L R SHIFT CTRL ALT F5 F6 F7 F8 F9 #========================================================================= Button = Input::SHIFT #========================================================================= # Button: Imposta l'immagine di sfondo dell'HUD #------------------------------------------------------------------------- # Sintassi: # BGImage = image # Parametri: # image: nome dell'immagine contenuta nella cartella pictures, per non usarla scrivere "" #========================================================================= BGImage = "TimeHud" end class Game_Time def time(type = 0, second = false) ss = sprintf("%02d", @second) mm = sprintf("%02d", @minute) t = "" if type == 0 hh = sprintf("%02d", @hour) else if @hour > 12 hh = sprintf("%02d", (@hour - 12)) t = " PM" else hh = sprintf("%02d", @hour) t = " AM" end end sep = time_Hud::TimeSeparetor if second return hh+sep+mm+sep+ss+t else return hh+sep+mm+t end end def date(type = 0) dd = @day.to_s yy = @year.to_s if type == 0 mm = @month.to_s sep = time_Hud::DateSeparetor return dd+sep+mm+sep+yy else dn = time_System::Day[@day_name_index] mm = time_System::Month[@month - 1] sep = " " return dn+sep+dd+sep+mm+sep+yy end end end class Window_TimeHud < Window_Base def initialize height = 32 height += 24 if time_Hud::ShowDate height += 24 if time_Hud::ShowTime height += 24 if time_Hud::ShowSeason || time_Hud::ShowWeather super(time_Hud::Position[0], time_Hud::Position[0], 224, height) self.opacity = time_Hud::Opacity @sprite = Sprite.new @sprite.bitmap = time_Hud::BGImage != "" ? Cache.picture(time_Hud::BGImage) : Bitmap.new(32, 32) @sprite.visible = self.visible @sprite.x = self.x @sprite.y = self.y @sprite.z = self.z - 1 @Time = 0 refresh end def refresh self.contents.clear y = -4 if time_Hud::ShowDate self.contents.draw_text(4, y, 184, 32, $game_time.date(time_Hud::DateType)) y += 24 end if time_Hud::ShowTime self.contents.draw_text(4, y, 184, 32, $game_time.time(time_Hud::TimeType, time_Hud::ShowSecond)) y += 24 end x = 4 if time_Hud::ShowSeason self.contents.draw_text(x, y, 184, 32, $game_time.season) x += self.contents.text_size($game_time.season).width + 4 end if time_Hud::ShowWeather self.contents.draw_text(x, y, 184, 32, $game_time.weather) end end def dispose super @sprite.bitmap.dispose @sprite.dispose end def update super @Time += 1 @sprite.visible = self.visible if @Time >= (Graphics.frame_rate / $game_time.speed) refresh @Time = 0 end end end class Scene_Map alias tsltmhud_scnmp_strt start def start tsltmhud_scnmp_strt @time_hud_window = Window_TimeHud.new end alias tsltmhud_scnmp_pdt update def update tsltmhud_scnmp_pdt if @time_hud_window.visible @time_hud_window.update end if Input.trigger?(time_Hud::Button) show_time_hud(!@time_hud_window.visible) end end alias tsltmhud_scnmp_trmnt terminate def terminate tsltmhud_scnmp_trmnt @time_hud_window.dispose end def show_time_hud(show) @time_hud_window.visible = show @time_hud_window.update end end ma mi dà l'errore Script 'Weather System' line 369 syntax error occuted.
×
×
  • Create New...