Jump to content
Rpg²S Forum
  • 0

Colore scritte in battaglia


dArkAngel
 Share

Question

ho questo problema: sto creando un gioco con le battaglie a turni, le standard. un battler però è molto chiaro, e dato che le scritte sono bianche non si capisce niente!!! io non mela cavo con gli script, e dato che non voglio combinare macelli mi potete dire esattamente cosa devo fare per mettere la scritta di un colore diverso? (nero no perchè sennò mi da lo stesso problema con un altro battler...)

Grazie in anticipo.

Non penso che tu debba leggere qui. Però lo stai facendo. Cattivo, non si fa!
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

UP. Vorrei aiutarti ma non saprei dove mettere le mani XD

Spero che qualcuno possa darti una mano ^^

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

  • 0

Dunque, vai nella classe Window_BattleStatus alla riga 43, dovresti trovare

self.contents.font.color = normal_color

Puoi cambiare normal_color con:

knockout_color:Rosso mi sembra

crisis_color:Giallo

system_color:Azzurro

disabled_color:Grigio

 

Oddio, non sono sicuro al 100% dei colori, ma per cambiarli puoi fare così. Oppure se vuoi cambiarli radicalmente, puoi adnare su Window_Base dalla riga 64 in poi, e modificare i colori da lì, ma ti cambieranno per qualsiasi cosa usi quel colore. Non sono sicuro, ma volendo puoi anche creare un metodo tuo e richiamarlo :/ che so

def my_color
return Color.new( 0, 0, 0, 255)
 end

(Che dovrebbe essere il nero)

Edited by -Akm-
Link to comment
Share on other sites

  • 0

Oppure, molto + semplicemente, vai alla suddetta riga 43 di Window_BattleStatus e al posto di

self.contents.font.color = normal_color

metti

self.contents.font.color = Color.new(rr, gg, bb, aa)

 

dove rr è il valore in esadecimale del rosso, gg è il valore in esadecimale del verde, bb è il valore in esadecimale del blu e aa è il valore in esadecimale del canale alpha (ovvero la trasparenza: 255 per ottenere un colore completamente opaco, 0 per ottenere un colore trasparente).

Il mondo è il cancro... Io la cura...

 

Il mio sport preferito:

Gli altri --> (T_T#)O==(^_^Q) <-- IO

 

I miei alias:

http://www.naruto-kun.com/images/narutotest/shikamaru.jpg

-----------------------------------------------------

http://www.naruto-kun.com/images/narutotest/rocklee.jpg

-----------------------------------------------------

http://www.ff-fan.com/chartest/banners/auron.jpg

 

Broly88's

http://pokejungle.net/other/pokepet/trainers/e4k2.png http://pokejungle.net/other/pokepet/Charizard.gif

Flame Dancer the level 99 Charizard!

 

http://img259.imageshack.us/img259/7446/rockleeoj1.gif http://img233.imageshack.us/img233/7449/sorajm1.gif

Link to comment
Share on other sites

  • 0

Ovvio che non funziona... la riga da cambiare non è mica quella. Quando Akm ha postato io mi sono fidato e non ho controllato -_-. Quello che hai modificato è il colore della scritta che salta fuori quando fai un Level Up. Per fare la modifica giusta, devi andare in Window_Base e alla riga 193 dovresti vedere la riga seguente:

self.contents.font.color = actor.hp == 0 ? knockout_color : normal_color

Basta che la sostituisci con questa:

self.contents.font.color = actor.hp == 0 ? knockout_color : Color.new(rr, gg, bb, aa)

sempre con i soliti significati. Occhio però: questa modifica verrà apportata a tutte le classi che utilizzano il metodo (draw_actor_state) che stiamo taroccando. In pratica, se metti come colore il nero, anche nella finestra dello status vedrai le scritte in nero. Se vuoi evitare 'sta feccenda, al posto della famosa riga 193, invece di una riga sola devi sostituire tutto questo blocco:

self.contents.font.color = actor.hp == 0 ? knockout_color : normal_color if $scene != Scene_battle
self.contents.font.color = actor.hp == 0 ? knockout_color : Color.new(rr, gg, bb, aa) if $scene == Scene_battle

Edited by Broly88

Il mondo è il cancro... Io la cura...

 

Il mio sport preferito:

Gli altri --> (T_T#)O==(^_^Q) <-- IO

 

I miei alias:

http://www.naruto-kun.com/images/narutotest/shikamaru.jpg

-----------------------------------------------------

http://www.naruto-kun.com/images/narutotest/rocklee.jpg

-----------------------------------------------------

http://www.ff-fan.com/chartest/banners/auron.jpg

 

Broly88's

http://pokejungle.net/other/pokepet/trainers/e4k2.png http://pokejungle.net/other/pokepet/Charizard.gif

Flame Dancer the level 99 Charizard!

 

http://img259.imageshack.us/img259/7446/rockleeoj1.gif http://img233.imageshack.us/img233/7449/sorajm1.gif

Link to comment
Share on other sites

  • 0
No Problem. Il bello di 'sto mondo è che tutti si sbaglia...

Il mondo è il cancro... Io la cura...

 

Il mio sport preferito:

Gli altri --> (T_T#)O==(^_^Q) <-- IO

 

I miei alias:

http://www.naruto-kun.com/images/narutotest/shikamaru.jpg

-----------------------------------------------------

http://www.naruto-kun.com/images/narutotest/rocklee.jpg

-----------------------------------------------------

http://www.ff-fan.com/chartest/banners/auron.jpg

 

Broly88's

http://pokejungle.net/other/pokepet/trainers/e4k2.png http://pokejungle.net/other/pokepet/Charizard.gif

Flame Dancer the level 99 Charizard!

 

http://img259.imageshack.us/img259/7446/rockleeoj1.gif http://img233.imageshack.us/img233/7449/sorajm1.gif

Link to comment
Share on other sites

  • 0
Di nulla

Il mondo è il cancro... Io la cura...

 

Il mio sport preferito:

Gli altri --> (T_T#)O==(^_^Q) <-- IO

 

I miei alias:

http://www.naruto-kun.com/images/narutotest/shikamaru.jpg

-----------------------------------------------------

http://www.naruto-kun.com/images/narutotest/rocklee.jpg

-----------------------------------------------------

http://www.ff-fan.com/chartest/banners/auron.jpg

 

Broly88's

http://pokejungle.net/other/pokepet/trainers/e4k2.png http://pokejungle.net/other/pokepet/Charizard.gif

Flame Dancer the level 99 Charizard!

 

http://img259.imageshack.us/img259/7446/rockleeoj1.gif http://img233.imageshack.us/img233/7449/sorajm1.gif

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...