Tio Posted October 19, 2006 Share Posted October 19, 2006 Text Outline ColorDescrizioneUno script per dare dare un tocco di professionalità al vostro gioco.Con questo script i messaggi dei vostri dialoghi avranno un bordo attorno, dando veramente un bell'effetto.Non ha un vero e proprio autore perchè è una cosa molto semplice a cui si può arrivare pure con un po' di logica.. Autore??? AllegatiScreen: ... Istruzioni per l'usoPer usarlo andiamo nella classe Window_Base e aggiungiamo: #--------------------------------------------------------- # Text Outline Color #------------------------------------------------------------------- def outline_color return Color.new(0, 0, 0) #Per modificare il colore del bordo cambiate i numeri end Poi andiamo in Window_Message e cerchiamo tutte le linee che iniziano con: self.contents.draw_text e le sostituiamo con self.contents.font.color = outline_color self.contents.draw_text(4 + x-1, 32 * y-1, 40, 32, c) self.contents.draw_text(4 + x-1, 32 * y+1, 40, 32, c) self.contents.draw_text(4 + x+1, 32 * y+1, 40, 32, c) self.contents.draw_text(4 + x+1, 32 * y-1, 40, 32, c) self.contents.font.color = normal_color self.contents.draw_text(4 + x, 32 * y, 40, 32, c) Breve spiegazione del codice: in pratica con la prima parte di codice abbiamo registrato un nuovo colore (outline_color) e poi in Window_Message abbiamo sostituito ogni riga che permette di mostare i messaggi con un'altra serie di righe che, oltre a disegnare la scritta del messaggio nel suo colore normale, ridisegna la stessa scritta più volte spostandosi di un pixel in tutte le direzioni possibili rispetto a dove appare la scritta normale. Spero vi sia utile! :) "Dopo gli ultimi Final Fantasy, ho capito solamente una cosa: che il gioco è bello quando Nomura poco."Making is not dead. You are dead.RELEASE: La Bussola d'Oro | Download | Video di anteprima - La Partenza di Hanna http://i.imgur.com/cFgc2lW.png Prova Standrama! Link to comment Share on other sites More sharing options...
Timisci Posted October 19, 2006 Share Posted October 19, 2006 Tio, non riesco a vedere l'immagine...(non penso sia un problema solo mio) Progetto in corso: "Hero Walking: Toward Another Life" Video Old Intro su Youtube Visite: 11.896! http://img212.imageshack.us/img212/1060/logheryb0.jpg *Posizioni raggiunte nei contest* http://www.rpg2s.net/awards/bestuser1.jpghttp://www.rpg2s.net/awards/beststaff1.jpg http://www.rpg2s.net/awards/bestmaker3.jpghttp://www.rpg2s.net/awards/bestcritical1.jpghttp://www.rpg2s.net/awards/mostcharismatic2.jpg http://www.rpg2s.net/awards/mosthelpful1.jpghttp://www.rpg2s.net/awards/mostpolite1.jpghttp://www.rpg2s.net/awards/mostpresent1.jpg http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img118.imageshack.us/img118/181/sccontest1octdt9.gif http://img230.imageshack.us/img230/1273/sccontest1batio5.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img143.imageshack.us/img143/3755/destroyae4.png http://img141.imageshack.us/img141/3081/comics3od3.gif http://img118.imageshack.us/img118/181/sccontest1octdt9.gif SE VUOI AVERE RENS PER RISORSE, TUTORIAL, DEMO, ECC... LEGGI QUI Link to comment Share on other sites More sharing options...
Alato Posted December 4, 2006 Share Posted December 4, 2006 Aggiunto all'Elenco Script e applicato il Template. o•°' - '°•oHei, mitä kuuluu? http://imagegen.last.fm/winterheadphones/recenttracks/5/Alato.gif Link to comment Share on other sites More sharing options...
amivaleo Posted January 31, 2008 Share Posted January 31, 2008 Ho fatto una cosa simile con l'advanced message script, ma non funziona.Ho modificato proprio lo script dell'ams, e il bordo si vede. Ma see cambio il colore del font, solo la prima lettera del messaggio ha un colore diverso, tutte le altre sono comunque bianche... Link to comment Share on other sites More sharing options...
nihil-omen Posted February 2, 2009 Share Posted February 2, 2009 (edited) Ma se io volessi i bordi in tutte le scritte del gioco? quindi anche nel menù / nelle battaglie etc etc?Basta sostituire la seconda parte ogni volta che apapre quella stringa?Inoltre a me quella stringa appare solo una volta nel Windows_Message O___O (sto sul GuBi tactical eh >_< )Help! T.T Edited February 2, 2009 by nihil-omen http://i30.tinypic.com/xehois.gif} 2rA - web site {E' disponibile il primo capitolo completo di 2rA!} 2rA: Capitolo I { Link to comment Share on other sites More sharing options...
Banana Posted September 5, 2009 Share Posted September 5, 2009 Scusate se uppo questo vecchio topic... ho fatto tutto ma il bordo non si vede? ç__çChe numeri devo impostare? THIS IS THE POWER OF BANANA!Sono così pigro che mi faccio controllare la mente da te così non devo nemmeno pensare PROGETTI IN CORSO:1) => S-E-G-R-E-T-O ---- Difficoltà: Alta2) => S-E-G-R-E-T-O ---- Difficoltà: Medio-Alta Link to comment Share on other sites More sharing options...
MasterSion Posted September 5, 2009 Share Posted September 5, 2009 Logicamente funziona sono durante i messaggi il colore è out_line color quindi 0,0,0 sono R,G,B se aggiungi un numero all'interno delle parentis puoi mettere l'opacità. http://img256.imageshack.us/img256/7639/ihateyou.gifUn uomo senza religione è come un pesce senza bicicletta.http://img18.imageshack.us/img18/3668/decasoft1.pnghttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gif Link to comment Share on other sites More sharing options...
EvilSeep Posted September 5, 2009 Share Posted September 5, 2009 qualcuno puo'scrivere per intero il window_message :P SEEP Universe su Steam:http://cdn.akamai.steamstatic.com/steam/apps/383630/capsule_184x69.jpg?t=1436537417 SEEP Universe: http://www.seepuniverse.com/ (Sito ufficiale) Blogging, dev log e vecchi progetti:SEEP Blog: http://www.seeproduction.blogspot.ie/ (DOWNLOAD dei nostri progetti)SEEP Bar: http://seepbar.blogspot.it/ (il bar viruale dove parlare di retrogaming e giochi indie) Link to comment Share on other sites More sharing options...
MasterSion Posted September 5, 2009 Share Posted September 5, 2009 #==============================================================================# ** Window_Message#------------------------------------------------------------------------------# This message window is used to display text.#============================================================================== class Window_Message < Window_Selectable #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(80, 304, 480, 160) self.contents = Bitmap.new(width - 32, height - 32) self.visible = false self.z = 9998 @fade_in = false @fade_out = false @contents_showing = false @cursor_width = 0 self.active = false self.index = -1 end #-------------------------------------------------------------------------- # * Dispose #-------------------------------------------------------------------------- def dispose terminate_message $game_temp.message_window_showing = false if @input_number_window != nil @input_number_window.dispose end super end #-------------------------------------------------------------------------- # * Terminate Message #-------------------------------------------------------------------------- def terminate_message self.active = false self.pause = false self.index = -1 self.contents.clear # Clear showing flag @contents_showing = false # Call message callback if $game_temp.message_proc != nil $game_temp.message_proc.call end # Clear variables related to text, choices, and number input $game_temp.message_text = nil $game_temp.message_proc = nil $game_temp.choice_start = 99 $game_temp.choice_max = 0 $game_temp.choice_cancel_type = 0 $game_temp.choice_proc = nil $game_temp.num_input_start = 99 $game_temp.num_input_variable_id = 0 $game_temp.num_input_digits_max = 0 # Open gold window if @gold_window != nil @gold_window.dispose @gold_window = nil end end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh self.contents.clear self.contents.font.color = normal_color x = y = 0 @cursor_width = 0 # Indent if choice if $game_temp.choice_start == 0 x = 8 end # If waiting for a message to be displayed if $game_temp.message_text != nil text = $game_temp.message_text # Control text processing begin last_text = text.clone text.gsub!(/\\[Vv]\[([0-9]+)\]/) { $game_variables[$1.to_i] } end until text == last_text text.gsub!(/\\[Nn]\[([0-9]+)\]/) do $game_actors[$1.to_i] != nil ? $game_actors[$1.to_i].name : "" end # Change "\\\\" to "\000" for convenience text.gsub!(/\\\\/) { "\000" } # Change "\\C" to "\001" and "\\G" to "\002" text.gsub!(/\\[Cc]\[([0-9]+)\]/) { "\001[#{$1}]" } text.gsub!(/\\[Gg]/) { "\002" } # Get 1 text character in c (loop until unable to get text) while ((c = text.slice!(/./m)) != nil) # If \\ if c == "\000" # Return to original text c = "\\" end # If \C[n] if c == "\001" # Change text color text.sub!(/\[([0-9]+)\]/, "") color = $1.to_i if color >= 0 and color <= 7 self.contents.font.color = text_color(color) end # go to next text next end # If \G if c == "\002" # Make gold window if @gold_window == nil @gold_window = Window_Gold.new @gold_window.x = 560 - @gold_window.width if $game_temp.in_battle @gold_window.y = 192 else @gold_window.y = self.y >= 128 ? 32 : 384 end @gold_window.opacity = self.opacity @gold_window.back_opacity = self.back_opacity end # go to next text next end # If new line text if c == "\n" # Update cursor width if choice if y >= $game_temp.choice_start @cursor_width = [@cursor_width, x].max end # Add 1 to y y += 1 x = 0 # Indent if choice if y >= $game_temp.choice_start x = 8 end # go to next text next end # Draw text self.contents.font.color = outline_colorself.contents.draw_text(4 + x-1, 32 * y-1, 40, 32, c)self.contents.draw_text(4 + x-1, 32 * y+1, 40, 32, c)self.contents.draw_text(4 + x+1, 32 * y+1, 40, 32, c)self.contents.draw_text(4 + x+1, 32 * y-1, 40, 32, c)self.contents.font.color = normal_colorself.contents.draw_text(4 + x, 32 * y, 40, 32, c) # Add x to drawn text width x += self.contents.text_size(c).width end end # If choice if $game_temp.choice_max > 0 @item_max = $game_temp.choice_max self.active = true self.index = 0 end # If number input if $game_temp.num_input_variable_id > 0 digits_max = $game_temp.num_input_digits_max number = $game_variables[$game_temp.num_input_variable_id] @input_number_window = Window_InputNumber.new(digits_max) @input_number_window.number = number @input_number_window.x = self.x + 8 @input_number_window.y = self.y + $game_temp.num_input_start * 32 end end #-------------------------------------------------------------------------- # * Set Window Position and Opacity Level #-------------------------------------------------------------------------- def reset_window if $game_temp.in_battle self.y = 16 else case $game_system.message_position when 0 # up self.y = 16 when 1 # middle self.y = 160 when 2 # down self.y = 304 end end if $game_system.message_frame == 0 self.opacity = 255 else self.opacity = 0 end self.back_opacity = 160 end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super # If fade in if @fade_in self.contents_opacity += 24 if @input_number_window != nil @input_number_window.contents_opacity += 24 end if self.contents_opacity == 255 @fade_in = false end return end # If inputting number if @input_number_window != nil @input_number_window.update # Confirm if Input.trigger?(Input::C) $game_system.se_play($data_system.decision_se) $game_variables[$game_temp.num_input_variable_id] = @input_number_window.number $game_map.need_refresh = true # Dispose of number input window @input_number_window.dispose @input_number_window = nil terminate_message end return end # If message is being displayed if @contents_showing # If choice isn't being displayed, show pause sign if $game_temp.choice_max == 0 self.pause = true end # Cancel if Input.trigger?(Input::B) if $game_temp.choice_max > 0 and $game_temp.choice_cancel_type > 0 $game_system.se_play($data_system.cancel_se) $game_temp.choice_proc.call($game_temp.choice_cancel_type - 1) terminate_message end end # Confirm if Input.trigger?(Input::C) if $game_temp.choice_max > 0 $game_system.se_play($data_system.decision_se) $game_temp.choice_proc.call(self.index) end terminate_message end return end # If display wait message or choice exists when not fading out if @fade_out == false and $game_temp.message_text != nil @contents_showing = true $game_temp.message_window_showing = true reset_window refresh Graphics.frame_reset self.visible = true self.contents_opacity = 0 if @input_number_window != nil @input_number_window.contents_opacity = 0 end @fade_in = true return end # If message which should be displayed is not shown, but window is visible if self.visible @fade_out = true self.opacity -= 48 if self.opacity == 0 self.visible = false @fade_out = false $game_temp.message_window_showing = false end return end end #-------------------------------------------------------------------------- # * Cursor Rectangle Update #-------------------------------------------------------------------------- def update_cursor_rect if @index >= 0 n = $game_temp.choice_start + @index self.cursor_rect.set(8, n * 32, @cursor_width, 32) else self.cursor_rect.empty end endend Ecco la pappa pronta apri la bocca che arriva l'aereoplano. http://img256.imageshack.us/img256/7639/ihateyou.gifUn uomo senza religione è come un pesce senza bicicletta.http://img18.imageshack.us/img18/3668/decasoft1.pnghttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gif Link to comment Share on other sites More sharing options...
EvilSeep Posted September 5, 2009 Share Posted September 5, 2009 Ok e'sbagliato perfetto. XD Pappa scaduta?! XD faso mi,tranquillo. ;) SEEP Universe su Steam:http://cdn.akamai.steamstatic.com/steam/apps/383630/capsule_184x69.jpg?t=1436537417 SEEP Universe: http://www.seepuniverse.com/ (Sito ufficiale) Blogging, dev log e vecchi progetti:SEEP Blog: http://www.seeproduction.blogspot.ie/ (DOWNLOAD dei nostri progetti)SEEP Bar: http://seepbar.blogspot.it/ (il bar viruale dove parlare di retrogaming e giochi indie) Link to comment Share on other sites More sharing options...
MasterSion Posted September 5, 2009 Share Posted September 5, 2009 Secondo me sei tu che stai sbagliando qualcosa (tipo non hai inserito la parte nel window_base ) perchè prima di postare ho provato e funzionava perfettamente http://img256.imageshack.us/img256/7639/ihateyou.gifUn uomo senza religione è come un pesce senza bicicletta.http://img18.imageshack.us/img18/3668/decasoft1.pnghttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gif Link to comment Share on other sites More sharing options...
EvilSeep Posted September 5, 2009 Share Posted September 5, 2009 Secondo me sei tu che stai sbagliando qualcosa (tipo non hai inserito la parte nel window_base ) perchè prima di postare ho provato e funzionava perfettamente no lo messa la parte del window_base...Beh,tranquillo,domani vedo di metterlo da solo,grazie cmq. XD SEEP Universe su Steam:http://cdn.akamai.steamstatic.com/steam/apps/383630/capsule_184x69.jpg?t=1436537417 SEEP Universe: http://www.seepuniverse.com/ (Sito ufficiale) Blogging, dev log e vecchi progetti:SEEP Blog: http://www.seeproduction.blogspot.ie/ (DOWNLOAD dei nostri progetti)SEEP Bar: http://seepbar.blogspot.it/ (il bar viruale dove parlare di retrogaming e giochi indie) Link to comment Share on other sites More sharing options...
Banana Posted September 5, 2009 Share Posted September 5, 2009 Ho provato con il tuo Window_Message già fatto, ma da errore alla riga 90:text.gsub!(/\\[Cc]\[([0-9]+)\]/) { "\001[#{$1}]" } THIS IS THE POWER OF BANANA!Sono così pigro che mi faccio controllare la mente da te così non devo nemmeno pensare PROGETTI IN CORSO:1) => S-E-G-R-E-T-O ---- Difficoltà: Alta2) => S-E-G-R-E-T-O ---- Difficoltà: Medio-Alta Link to comment Share on other sites More sharing options...
Shyn Posted November 17, 2009 Share Posted November 17, 2009 io l'ho inserito e tutto a posto, ma poi vado per impostare il colore in queste stringhe finali propio come ho messo nel codice ma non vedo nessun bordo colorato alla scritta ò.o#--------------------------------------------------------- # Text Outline Color #------------------------------------------------------------------- def outline_color return Color.new(0, 2, 0) #Per modificare il colore del bordo cambiate i numeri end #--------------------------------------------------------- # Text Outline Color #------------------------------------------------------------------- def outline_color return Color.new(0, 2, 0) #Per modificare il colore del bordo cambiate i numeri end Link to comment Share on other sites More sharing options...
Marcoz Posted January 1, 2010 Share Posted January 1, 2010 cusate, ho copito tutto il window_message e melo copia tutto in una riga, cm faccio? :rovatfl: Link to comment Share on other sites More sharing options...
Guardian of Irael Posted January 2, 2010 Share Posted January 2, 2010 Prova ad incollarlo prima su un file .txt (mi pare fosse questa una delle soluzioni, vero? XD) ^ ^ (\_/)(^ ^) <----coniglietto rosso, me! (> <) Il mio Tumblr dove seguire i miei progetti, i progetti della Reverie : : Project ^ ^ http://i.imgur.com/KdUDtQt.png disponibile su Google Play, qui i dettagli! ^ ^ http://i.imgur.com/FwnGMI3.png completo! Giocabile online, qui i dettagli! ^ ^ REVERIE : : RENDEZVOUS (In allenamento per apprendere le buone arti prima di cominciarlo per bene ^ ^) Trovate i dettagli qui insieme alla mia intervista (non utilizzerò più rpgmaker) ^ ^ 🖤http://www.rpg2s.net/dax_games/r2s_regali2s.png E:3 http://www.rpg2s.net/dax_games/xmas/gifnatale123.gifhttp://i.imgur.com/FfvHCGG.png by Testament (notare dettaglio in basso a destra)! E:3http://i.imgur.com/MpaUphY.jpg by Idriu E:3Membro Onorario, Ambasciatore dei Coniglietti (Membro n.44) http://i.imgur.com/PgUqHPm.pngUfficiale"Ad opera della sua onestà e del suo completo appoggio alla causa dei Panda, Guardian Of Irael viene ufficialmente considerato un Membro portante del Partito, e Ambasciatore del suo Popolo presso di noi"http://i.imgur.com/TbRr4iS.png<- Grazie Testament E:3Ricorda...se rivolgi il tuo sguardo ^ ^ a Guardian anche Guardian volge il suo sguardo ^ ^ a te ^ ^http://i.imgur.com/u8UJ4Vm.gifby Flame ^ ^http://i.imgur.com/VbggEKS.gifhttp://i.imgur.com/2tJmjFJ.gifhttp://projectste.altervista.org/Our_Hero_adotta/ado2.pngGrazie Testament XD Fan n°1 ufficiale di PQ! :DVivail Rhaxen! <- Folletto te lo avevo detto (fa pure rima) che nonavevo programmi di grafica per fare un banner su questo pc XD (ora ho dinuovo il mio PC veramente :D) Rosso Guardiano dellahttp://i.imgur.com/Os5rvhx.pngRpg2s RPG BY FORUM:Nome: Darth Reveal PV totali 2PA totali 16Descrizione: ragazzo dai lunghi capelli rossi ed occhi dello stesso colore. Indossa una elegante giacca rossa sopra ad una maglietta nera. Porta pantaloni rossi larghi, una cintura nera e degli stivali dello stesso colore. E' solito trasportare lo spadone dietro la schiena in un fodero apposito. Ha un pendente al collo e tiene ben legato un pezzo di stoffa (che gli sta particolarmente a cuore) intorno al braccio sinistro sotto la giacca, copre una cicatrice.Bozze vesti non definitive qui.Equipaggiamento:Indossa:60$ e 59$ divisi in due tasche interneLevaitanSpada a due mani elsa lungaGuanti del Defender (2PA)Anello del linguaggio animale (diventato del Richiamo)Scrinieri da lanciere (2 PA)Elmo del Leone (5 PA)Corazza del Leone in Ferro Corrazzato (7 PA) ZAINO (20) contenente:Portamonete in pelle di cinghiale contenente: 100$Scatola Sanitaria Sigillata (può contenere e tenere al sicuro fino a 4 oggetti curativi) (contiene Benda di pronto soccorso x3, Pozione di cura)CordaBottiglia di idromeleForma di formaggioTorcia (serve ad illuminare, dura tre settori)Fiasca di ceramica con Giglio Amaro (Dona +1PN e Velocità all'utilizzatore)Ampolla BiancaSemi di Balissa CAVALLO NORMALE + SELLA (30 +2 armi) contentente:66$Benda di pronto soccorso x3Spada a due maniFagotto per Adara (fazzoletto ricamato) 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