16-04-2010, 01:28 AM
(Questo messaggio è stato modificato l'ultima volta il: 04-05-2010, 06:01 PM da friskon.)
Allora, ecco un esempio dello script
la prima parte di codice serve a richiamare le varie hud con l'energia, in questo caso l'hud è divisa da 12 immagini.
Partendo dalla prima immagine "healthbar1.dds" che sarebbe la barra di energia carica al massimo, arrivando all' ultima "healthbar12.dds" con energia finita.
le hud le puoi creare con photoshop, aggiungendo un plugin per i files DDS.
hudx=15,hudy=18 sono le coordinate della Hud (in questo caso in alto a sinistra)
Controllo Energia :
da questa parte
tate=1,plrhealthgreater=99
tate=1,plrhealthgreater=98
tate=1,plrhealthgreater=89
vuol dire che è impostato su 99 di energia, se passi a 98 scala una tacca di energia, se passi a 89 ne scala ancora n'altra.
puoi modificare così
tate=1,plrhealthgreater=500
tate=1,plrhealthgreater=480
ecc ecc....
questo script va messo in
\The Game Creators\FPS Creator Free\Files\languagebank\english\gamebank\mygame\setuplevel.fpi
facendo una copia di backup del file setuplevel.fpi
in modo che se fai danno lo ripristini
Autore Miniguida : Friskon
Non postare questa guida su altri forum senza autorizzazione del creatore.
Codice:
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar1.dds,hudname=health1,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar2.dds,hudname=health2,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar3.dds,hudname=health3,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar4.dds,hudname=health4,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar5.dds,hudname=health5,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar6.dds,hudname=health6,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar7.dds,hudname=health7,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar8.dds,hudname=health8,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar9.dds,hudname=health9,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar10.dds,hudname=health10,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar11.dds,hudname=health11,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=18,hudimage=languagebank\english\gamecore\huds\healthbar12.dds,hudname=health12,hudmake=display,hudhide=1
;Controllo Energia
:state=1,plrhealthgreater=99:hudreset,hudshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=98,plrhealthgreater=90:hudreset,hudshow=health2,hudunshow=health1,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=89,plrhealthgreater=80:hudreset,hudshow=health3,hudunshow=health1,hudunshow=health2,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=79,plrhealthgreater=70:hudreset,hudshow=health4,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=69,plrhealthgreater=60:hudreset,hudshow=health5,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=59,plrhealthgreater=50:hudreset,hudshow=health6,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=49,plrhealthgreater=40:hudreset,hudshow=health7,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=39,plrhealthgreater=30:hudreset,hudshow=health8,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health9,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=29,plrhealthgreater=20:hudreset,hudshow=health9,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health10,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=19,plrhealthgreater=10:hudreset,hudshow=health10,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health11,hudunshow=health12
:state=1,plrhealthless=9,plrhealthgreater=1:hudreset,hudshow=health11,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health12
:state=1,plrhealthless=1:hudreset,hudshow=health12,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7,hudunshow=health8,hudunshow=health9,hudunshow=health10,hudunshow=health11
la prima parte di codice serve a richiamare le varie hud con l'energia, in questo caso l'hud è divisa da 12 immagini.
Partendo dalla prima immagine "healthbar1.dds" che sarebbe la barra di energia carica al massimo, arrivando all' ultima "healthbar12.dds" con energia finita.
le hud le puoi creare con photoshop, aggiungendo un plugin per i files DDS.
hudx=15,hudy=18 sono le coordinate della Hud (in questo caso in alto a sinistra)
Controllo Energia :
da questa parte
tate=1,plrhealthgreater=99
tate=1,plrhealthgreater=98
tate=1,plrhealthgreater=89
vuol dire che è impostato su 99 di energia, se passi a 98 scala una tacca di energia, se passi a 89 ne scala ancora n'altra.
puoi modificare così
tate=1,plrhealthgreater=500
tate=1,plrhealthgreater=480
ecc ecc....
questo script va messo in
\The Game Creators\FPS Creator Free\Files\languagebank\english\gamebank\mygame\setuplevel.fpi
facendo una copia di backup del file setuplevel.fpi
in modo che se fai danno lo ripristini
Autore Miniguida : Friskon
Non postare questa guida su altri forum senza autorizzazione del creatore.