Creare Videogiochi - Game Developer
entita sub versione 118 - Versione stampabile

+- Creare Videogiochi - Game Developer (https://www.making-videogames.net/giochi)
+-- Forum: Fps Creator e GameGuru Italia (https://www.making-videogames.net/giochi/Forum-Fps-Creator-e-GameGuru-Italia)
+--- Forum: Downloads Creazioni degli Utenti (https://www.making-videogames.net/giochi/Forum-Downloads-Creazioni-degli-Utenti)
+--- Discussione: entita sub versione 118 (/thread-entita-sub-versione-118)



entita sub versione 118 - jirby - 17-02-2012

salve oggi posto entita bombola, completa di script ,e livello prova , compatibile con fpsc versione 118

ora vi spiego il funzionamento

script acqua va messo in un trigger zone serve per gestire l'acqua
Codice PHP:
;BY Jirby

:state=0:water=1,waterfogdist=500,waterred=210,watergreen=230,waterheightofzone=0,etimerstart,state=1

:state=1,plrunderwater=1,etimergreater=100:plraddhealth=-1,state=0

script  trigger zone  come  da titolo va messo in un trigger zone  serve per gestire  la bombola 


:varequal=678:state=18

:state=18:state=

Codice PHP:
;by Jirby



:varequal=678:state=1




:state=0:dimlocalvar=suba,dimlocalvar=subamax,setvar=subamax 1500,dimlocalvar=tempo,dimlocalvar=underwater,setvar=suba %subamax

:state=1:hudreset,hudshow=bombolahud,hudx=30,hudy=6.8,hudimage=entitybank\jirby\entita sub\hud.dds,hudname=bombolahud,hudtype=1,hudmake=display
:state=1:hudreset,hudx=29,hudy=4,hudfont=Xirod,hudgreen=0,hudred=250,hudblue=0,hudsize=18,hudtext=Aria,hudname=text3,hudtype=1,hudmake=display
:state=1:hudreset,hudx=27,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudname=ariacot,hudtype=6,huduservar=suba,hudmake=numeric






;Triggers
:state=1,varequal=underwater 1:hudreset,hudshow=maschera,hudx=50,hudy=50,hudsizex=1025,hudsizey=769,hudname=maschera,hudimage=entitybank\jirby\entita sub\maschera.dds,hudtype=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=bombola,hudx=30,hudy=6.8,hudimage=entitybank\jirby\entita sub\hud.dds,hudname=bombola,hudtype=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=text,hudx=29,hudy=4,hudfont=Xirod,hudgreen=0,hudred=250,hudblue=0,hudsize=18,hudtext=Aria,hudname=text,hudhide=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=text1,hudx=5,hudy=4,hudfont=Xirod,hudgreen=0,hudred=250,hudblue=0,hudsize=18,hudtext=Vita,hudname=text1,hudhide=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=text2,hudx=16,hudy=4,hudfont=Xirod,hudgreen=0,hudred=250,hudblue=0,hudsize=18,hudtext=Energia,hudname=text2,hudhide=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=vita,hudx=4,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudname=vita,hudtype=1,hudmake=numeric
:state=1,varequal=underwater 1:hudreset,hudshow=energia,hudx=15,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudname=energia,hudtype=2,hudmake=numeric
:state=1,varequal=underwater 1:hudreset,hudshow=arma1,hudx=80,hudy=8,hudimage=languagebank\english\gamecore\backdrops\extrem\ammo.tga,hudname=arma1,hudtype=3,hudmake=status
:state=1,varequal=underwater 1:hudreset,hudshow=arma2,hudx=80,hudy=10,hudsizex=16,hudsizey=16,hudimage=languagebank\english\gamecore\backdrops\extrem\numeric_small.dds,hudname=arma2,hudtype=3,hudmake=numeric
:state=1,varequal=underwater 1:hudreset,hudshow=subaing,hudx=27,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudname=subaing,hudtype=6,huduservar=suba,hudmake=numeric



;conteggio fine aria
:state=1,varequal=underwater 1,vargreater=suba 1:etimerstart,setvar=underwater 2,setvar=tempo 0
:state=1,varequal=underwater 2,vargreater=suba 1,etimergreater=1000:subvar=suba 100,etimerstart,setvar=underwater 1,setvar=tempo 0

;fine aria toglie energia 
:state=1,varequal=underwater 1,varless=suba -1:setvar=suba 0,setvar=tempo 0
:state=1,varequal=underwater 1,varequal=suba 0,etimergreater=1000:etimerstart,plraddhealth=-25,setvar=tempo 0


;Se il giocatore muore azzerare le nostre variabili
:plralive=0:setvar=underwater 0,setvar=suba %subamax,setvar=tempo 0,state=1
:varequal=200:setvar=underwater 0,setvar=suba %subamax,setvar=tempo 0,setvar=suba,state=1

;Alterna la nostra variabile subacquea
:plrunderwater=1,varless=underwater 0:setvar=underwater 1,stopsound
:plrunderwater=0,vargreater=underwater 1,vargreater=suba 101:setvar=underwater 0
:plrunderwater=0,vargreater=underwater 1,varless=suba 100:setvar=underwater 0
:plrunderwater=0:hudunshow=maschera
:plrunderwater=0:hudunshow=text
:plrunderwater=0:hudunshow=text1
:plrunderwater=0:hudunshow=text2
:plrunderwater=0:hudunshow=subaing
:plrunderwater=0:hudunshow=vita
:plrunderwater=0:hudunshow=energia
:plrunderwater=0:hudunshow=arma1
:plrunderwater=0:hudunshow=arma2
:plrunderwater=0:hudunshow=bombola
:plrunderwater=1:hudunshow=bombolahud
;End of Script 

se volete un trigger zone di ricarica invece della bombola basta mettere questo script in un tigger zone

Codice PHP:
:state=0,plrdistwithin=40:setvar=200,state=11 

foto

[Immagine: entita%20bombola%204.jpg]
[Immagine: entita%20bombola%201.jpg]
[Immagine: entita%20bombola%202.jpg]
[Immagine: entita%20bombola%203.jpg]

video


file beta 1







RE: entita sub versione 118 - jirby - 28-02-2012

Aggiunto trigger zone e coretto alcuni bug
scoperti da Tax