• Benvenuto in Making Videogames!
  • Dai sfogo alla tua fantasia!
  • Crea il tuo Videogioco!
Benvenuto ospite! Login Registrati




Valutazione discussione:
  • 2 voto(i) - 5 media
  • 1
  • 2
  • 3
  • 4
  • 5
Modifiche al Backpack System
#1
Ciao ragazzi (e soprattutto tax essendo creatore dello script) volevo fare un po di modifiche al backpack system, in pratica volevo aggiungere lo script per la bibita che ti da +5 di vita, poi quello del cibo che te ne da +10, e poi le bende che ti danno +25 di vita.. Poi volevo aggiungere le armi, cioè in pratica il giocatore per cambiare arma usa lo zaino, come armi volevo mette l'accetta, il piede di porco... queste armi corpo a corpo che si trovano nei fari model pack.

Spero che qualcuno mi aiuti a capire come si modifica, così posso fare da me Big Grin
 
Rispondi
#2
Ciao, felice di vedere che a qualcuno serve Tongue

Citazione:così posso fare da me
Bravo! cosi si impara a scriptare

Allora:

1) devi creare le varie variabili globali presenti nello script " setuplevel.fpi"
Citazione:;Setup global var

Confusedtate=0:dimvar=Zsmallhealth,dimvar=Zlargehealth
Confusedtate=0:dimvar=Zkey,dimvar=ZkeyA
Confusedtate=0:dimvar=Zmap
Confusedtate=0:dimvar=Znv
Confusedtete=0:dimvar=Z tua variabile
Metti le tue variabili in coda alle mie, in modo ordinato altrimenti viene fuori un pasticcio Tongue
Lo Z non è indispensabile, ma indica una variabile di Zaino, nel caso ci fossero incroci di variabili nei vari script, almeno si capisce che sono dello zaino.

Come puoi vedere sono in ordine di tipologia oggetto:
1° riga pacchi medici oppure le tue bibite e cibo, tutta roba che fornisce energia.
2° riga usata per le chiavi
3° usata per la mappa del livello, per ogni livello e quindi ogni mappa devi creave una dimvar=xxxx es.(map1, map2, ecc..)
4° riga componenti elettronici come la nostra visione notturna
5° riga potresti inserire le variabili armi es. dimvar=Zweapon

2)
Citazione::always:globalvar=Zsmallhealth,globalvar=Zlargehealth
:always:globalvar=Zkey,globalvar=ZkeyA
:always:globalvar=Zmap
:always:globalvar=Znv

Questa sezione serve per far leggere le variabili globali dallo script in uso, nel nostro caso setuplevel.fpi
Anche qui ripetere le stesse variabili create in precedenza



opss!! devo uscire Tongue , continuo poi, tu comincia a fare le variabili che ti servono

In aggiornamento....
 
Rispondi
#3
grazie mille tax, aspetto il resto e come hai detto te inizio a creare quelle che mi servono.. ma se tipo voglio levare la mappa e il visore notturno basta cancellare la variabile da tutte le parti? e poi naturalmente il restante delle foto eccetera che centrano con quello script.

intanto non tocco nulla e aggiungo solo le variabili Wink

ecco quello che ho fatto
Citazione:Confusedtate=0:dimvar=Zbibita,dimvar=Zcibo,dimvar=Zbende
Confusedtate=0:dimvar=Zkey,dimvar=ZkeyA
Confusedtate=0:dimvar=Zmap
Confusedtate=0:dimvar=Znv
Confusedtate=0:dimvar=Zarmi

:always:globalvar=Zbibita,globalvar=Zcibo,globalvar=Zbende
:always:globalvar=Zkey,globalvar=ZkeyA
:always:globalvar=Zmap
:always:globalvar=Znv
:always:globalvar=Zarmi

scusa per la semplicità delle scritte, ma tanto è per capire io Big Grin

volevo eliminare Zmap e Znv poi volevo anche sapere, per ogni chiave devo aggiungere una variabile?
un altra cosa, essendo che per ogni kit medico c'è una variabile anche per le armi deve essere così? le armi non sono ne poche, ne molte.. la maggior parte sono per il corpo a corpo poi qualche pistola e poi non so devo decidere.
 
Rispondi
#4
Si ok, tutto giusto.

Per ogni singolo oggetto devi creare una variabile globale,( nome variabile a,b,c oppure 1,2,3 ecc...) purtroppo e così ehehehe

Per la mappa e la visione notturna, lascia pure così, basta non mettere l'oggettonel livello che incrementa la variabile per far apparire l'hud da cliccare nello zaino, oppure meti un ; davanti a quella riga.

3)
Citazione:Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2.dds,hudtype=9,hudname=small_health_2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x2.dds,hudtype=9,hudname=small_health_2 x2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x3.dds,hudtype=9,hudname=small_health_2 x3,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x4.dds,hudtype=9,hudname=small_health_2 x4,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x5.dds,hudtype=9,hudname=small_health_2 x5,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1.dds,hudtype=12,hudname=large_health_1,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x2.dds,hudtype=12,hudname=large_health_1 x2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x3.dds,hudtype=12,hudname=large_health_1 x3,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x4.dds,hudtype=12,hudname=large_health_1 x4,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x5.dds,hudtype=12,hudname=large_health_1 x5,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=60,hudimage=gamecore\huds\Tax78\zaino\scifi\key_1.dds,hudtype=10,hudname=key_1,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=60,hudimage=gamecore\huds\Tax78\zaino\scifi\key_2.dds,hudtype=13,hudname=key_2,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=30,hudimage=gamecore\huds\Tax78\zaino\ww2\maps.dds,hudtype=11,hudname=maps,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=40,hudimage=gamecore\huds\Tax78\zaino\Tax78\nightvision.dds,hudtype=14,hudname=nightvision,hudhide=1,hudmake=button
Passiamo al prossimo punto, la creazione di hud pulsanti e la loro sistemazione nello zaino.
Puoi vedere il formato e la dimensione dei pulsanti qui: \\gamecore\huds\Tax78\zaino\ crea i tuoi hud , armi, cibi, bevande, ecc...
Per il loro posizionemento devi seguire l'immagine tutorial che trovi nella cartella \\FPS Creator\Docs\Backpack system ----- setup\setup screen coordinates.jpg
Purtroppo non c'è una griglia ben precisa devi provare le coordinate ad ogni test per vedere se ti gusta la posizione, setta i codici hudx=30,hudy=20

Nb: anche qui sii sempre ordinato e diviso per gruppi

in aggiornamento.....
 
Rispondi
#5
ok, ancora grazie.

comunque ora creo le foto però volevo sapere come faccio a far capire allo script che quella foto corrisponde a quella variabile? Credo dipenda da hudtype=X.

Per ora non tocco niente nello script, faccio solo le foto Big Grin

EDIT: infine un altra cosa che ora mi è venuta in mente, si potrebbe fare che il giocatore può avere un massimo di 4 armi e se ne vuole altre ne deve posare una? Credo che questo sia un pochino più complesso.
 
Rispondi
#6
Citazione:comunque ora creo le foto però volevo sapere come faccio a far capire allo script che quella foto corrisponde a quella variabile? Credo dipenda da hudtype=X.
SI!

Citazione:EDIT: infine un altra cosa che ora mi è venuta in mente, si potrebbe fare che il giocatore può avere un massimo di 4 armi e se ne vuole altre ne deve posare una? Credo che questo sia un pochino più complesso.
No non è un problema, l'unica cosa è lo spazio nel tuo zaino, che dipende dalla grandezza dei tuoi hud (button) e quindi dallo spazio nello schermo. Per quanto riguarda il posare l'arma in eccesso penso non sia un problema, vediamo poi.

Torniamo a noi, dopo che hai creato gli hud:
4)
Citazione:; Backpack Menu
Confusedtate=101:hudshow=backpack,hudshow=return game,hudshow=pointer,state=102
;Var=x = hudshow
Confusedtate=102,varequal=Zsmallhealth 1:hudshow=small_health_2
Confusedtate=102,varequal=Zsmallhealth 2:hudshow=small_health_2 x2
Confusedtate=102,varequal=Zsmallhealth 3:hudshow=small_health_2 x3
Confusedtate=102,varequal=Zsmallhealth 4:hudshow=small_health_2 x4
Confusedtate=102,varequal=Zsmallhealth 5:hudshow=small_health_2 x5
;-------------------------------------------------------------
Confusedtate=102,varequal=Zlargehealth 1:hudshow=large_health_1
Confusedtate=102,varequal=Zlargehealth 2:hudshow=large_health_1 x2
Confusedtate=102,varequal=Zlargehealth 3:hudshow=large_health_1 x3
Confusedtate=102,varequal=Zlargehealth 4:hudshow=large_health_1 x4
Confusedtate=102,varequal=Zlargehealth 5:hudshow=large_health_1 x5
;-------------------------------------------------------------
Confusedtate=102,varequal=Zkey 1:hudshow=key_1
Confusedtate=102,varequal=ZkeyA 1:hudshow=key_2
;-------------------------------------------------------------
Confusedtate=102,varequal=Zmap 1:hudshow=maps
;-------------------------------------------------------------
Confusedtate=102,varequal=Znv 1:hudshow=nightvision
;-------------------------------------------------------------
Questa è la sezione dove diciamo allo script quale hud far apparire quando si preme il tasto [Z] zaino.
A seconda dello script* inserito nell'oggetto preso, la variabile corrispondente aumenta di un punto, e di conseguenza fa apparire il tasto hud cliccabile con il mouse.
Qui tu devi inserire le tue variabili con il rispettivo nome hud.
Il nome hud deve essere uguale al hudname=XXXXX che trovi al punto 3) dove setti gli hud.

ok, attendo tue notizie per progresso compiuto. Andiamo con calma Wink
* = vediamo piu avanti
in aggiornamento.....

Tax
 
Rispondi
#7
e il numero di hudtype=X lo butto a caso? xD nel senso a scelta, o deve avere un numero preciso? Perché comunque ne devo aggiungere anche altri essendo che ci sono anche le armi e nello script le variabili sono poche e i numeri di conseguenza pochi, quindi non posso sostituire quelli ma ne devo usare altri.

In sostanza mi spieghi cosa devo scrivere a hudtype=X ?

Citazione:No non è un problema, l'unica cosa è lo spazio nel tuo zaino, che dipende dalla grandezza dei tuoi hud (button) e quindi dallo spazio nello schermo. Per quanto riguarda il posare l'arma in eccesso penso non sia un problema, vediamo poi.
Lo spazio l'ho già calcolato ad occhio, cioè facendo 3 oggetti a riga, per 5 righe... mi avanza pure. Naturalmente andiamo per gradi e facciamo una cosa alla volta, chiedevo solo se era possibile Wink

Per il resto ora faccio, comunque questo è facile non credo ci siano problemi Big Grin

Grazie ancora.
 
Rispondi
#8
Ciao Tax ho scaricato lo zaino dal tuo sito
funge tutto (unica pecca nel mio caso non avendo fpsclear.exe credo e' che si sentono rumori di passi come se caminasse anche stando fermo)
detto questo che poi magari ti chiedero' meglio dopo
vorrei sapere come modificare i tasti ad esempio anziche' usare la Z per aprire lo zaino vorrei usare [Pg giu] a e se l'appertura del menu' puo' essere velocizzata ci mette un attimo di troppo e mi piacerebbe fosse piu' rapido

questa qui sopra e' la parte che mi interessa di piu'

ci sarebbe anche Zkey1 lo script non l'ho provato non ho capito bene a cosa bisogna legarlo nello screen sembra ci sia un voglio un documento quindi vorrei sapere a cosa serve
mentre ZkeyA 1 quello da mettere alla chiave per aprire la porta va senza problemi

ci sono numerose domande che vorrei farti ad esempio sulla personalizzazione dello zaino ma andiamo a gradi

per modificare l'immagine dello zaino penso di aver capito che bisogna modificare i file dds che si trovano qui gamecore\huds\Tax78\zaino\menu

non ho chiaro ancora come modificare il tasto per i vari oggetti pero'
 
Rispondi
#9
Questa e la stringa che devi modificare per passare da Z a pag-giu:
Citazione:;press "pag-giu"(Zaino)(Backpack)
Confusedtate=1,keypressed=209 1:etimerstart,state=100,hideplrweapon
Confusedtate=100,etimergreater=1000,keypressed=209 0:pausegame,state=101

Per quanto riguarda l'apertura del menu non si può anticipare, ti spiego il motivo.
Durante i miei test ho notato che se il giocatore era in ricarica dell'arma mentre richiamava lo zaino l'animazione rimaneva a metà aprendo lo zaino (quindi game in pausa), quando poi il giocatore tornava in game era un pasticcio con animazioni. Il tempo è calcolato per attesa messa via arma, naturalmente armi di base in FPSC.

Citazione:ci sarebbe anche Zkey1 lo script non l'ho provato non ho capito bene a cosa bisogna legarlo nello screen sembra ci sia un voglio un documento quindi vorrei sapere a cosa serve
No Smile se guardi bene nello screen non è un documento ,è la key scifi (tessera), praticamente tra Zkey1 e ZkeyA1 cambia solo che per aprire ciascuna porta serve una determinata chiave, se ne vuoi una terza sarà ZkeyB1, e così via.....

Citazione:non ho chiaro ancora come modificare il tasto per i vari oggetti pero'
Per la posizione c'è un screen che fa vedere il campo X ed Y del monitor
 
Rispondi
#10
grazie Tax nell'ultima parte intendevo ancora pag giu il resto lo vedro' piu' avanti ho in mente troppe cose e sto cercando di farle una per volta se no non concludo niente cmq ho gia chiaro parecchio ora dovro' modificare e testare grazie dell'aiuto

scusa nuovamente ma questa stringa

;press "pag-giu"(Zaino)(Backpack)
Confusedtate=1,keypressed=209 1:etimerstart,state=100,hideplrweapon
Confusedtate=100,etimergreater=1000,keypressed=209 0:pausegame,state=101

in quale file la trovo?
 
Rispondi
#11
trovato nel setuplevel alla grande Big Grin
 
Rispondi
#12
ah si non detto Tongue
 
Rispondi
#13
Tax ti devo disturbare ancora una volta ma sono proprio scarso

dunque volevo aggiungere un nuovo oggetto ,una chiave diversa da quella che hai messo tu

questo e' lo script del setup level

;AIScript from Wizard
;Header
desc = Setup Wizard V117
; Setup Level Stats
Confusedtate=0Confusedky=skybank\natural\Ngt
Confusedtate=0:music=audiobank\sound res3\sottofondo.wav,musicvolume=50,soundscale=25
Confusedtate=0:fog=0,fogred=0,foggreen=0,fogblue=0
Confusedtate=0:ambience=25,ambiencered=255,ambiencegreen=255,ambienceblue=255
Confusedtate=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\fader.tga,hudhide=1,hudtype=3,hudmake=internal
Confusedtate=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\eyehud.tga,hudhide=1,hudtype=2,hudmake=internal
Confusedtate=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=128,hudblue=128,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\zoom.tga,hudhide=1,hudtype=4,hudmake=internal
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar1.dds,hudname=health1,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar2.dds,hudname=health2,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar3.dds,hudname=health3,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar4.dds,hudname=health4,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar5.dds,hudname=health5,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar6.dds,hudname=health6,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar7.dds,hudname=health7,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar8.dds,hudname=health8,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar9.dds,hudname=health9,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar10.dds,hudname=health10,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar11.dds,hudname=health11,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar12.dds,hudname=health12,hudmake=display,hudhide=1
;Controllo Energia
Confusedtate=1,plrhealthgreater=999: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
Confusedtate=1,plrhealthless=980,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
Confusedtate=1,plrhealthless=890,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
Confusedtate=1,plrhealthless=790,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
Confusedtate=1,plrhealthless=690,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
Confusedtate=1,plrhealthless=590,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
Confusedtate=1,plrhealthless=490,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
Confusedtate=1,plrhealthless=390,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
Confusedtate=1,plrhealthless=290,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
Confusedtate=1,plrhealthless=190,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
Confusedtate=1,plrhealthless=90,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
Confusedtate=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
Confusedtate=0:hudreset,hudx=85,hudy=8,hudimage=gamecore\huds\ammo.tga,hudtype=3,hudmake=status
Confusedtate=0:hudreset,hudx=88,hudy=12,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=3,hudmake=numeric
;Controllo Suono
Confusedtate=1,plrhealthless=1000,plrhealthgreater=199Confusedtopsound=audiobank\music\Heartbeat.ogg
Confusedtate=1,plrhealthless=200,plrhealthgreater=1:loopsound=audiobank\music\Heartbeat.ogg
; Setup Game Menu
Confusedtate=0:hudreset,hudx=50,hudy=10,hudimage=gamecore\huds\Tax78\zaino\Tax78\menu.tga,hudname=gamemenutitle,hudhide=1,hudmake=display
Confusedtate=0:hudreset,hudx=50,hudy=40,hudimage=gamecore\huds\Tax78\zaino\Tax78\load game.tga,hudtype=2,hudname=loadgame,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\Tax78\zaino\Tax78\save game.tga,hudtype=3,hudname=savegame,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=60,hudimage=gamecore\huds\Tax78\zaino\Tax78\exit.tga,hudtype=5,hudname=quitgame,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=50,hudimage=languagebank\english\gamecore\backdrops\basic\saving.tga,hudname=savingprompt,hudhide=1,hudmake=display
Confusedtate=0:hudreset,hudx=50,hudy=70,hudimage=gamecore\huds\Tax78\zaino\Tax78\return to game.tga,hudtype=4,hudname=returngame,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\pointer.tga,hudname=pointer,hudhide=1,hudmake=pointer
; Main Game
Confusedtate=1,escapekeypressed=1:pausegame,state=2
Confusedtate=1,scancodekeypressed=197:pausegame,state=11
Confusedtate=1,scancodekeypressed=64:hudshow=savingprompt,quicksavegame,pausegame,state=21
Confusedtate=1,scancodekeypressed=67:quickloadgame,state=31
Confusedtate=11,scancodekeypressed=0Confusedtate=12
Confusedtate=12,scancodekeypressed=197:resumegame,state=13
Confusedtate=13,scancodekeypressed=0Confusedtate=1
Confusedtate=21,scancodekeypressed=0:hudunshow=savingprompt,resumegame,state=1
Confusedtate=31,scancodekeypressed=0Confusedtate=1

; Game Menu
Confusedtate=2,escapekeypressed=0Confusedtate=3
Confusedtate=3:hudshow=gamemenutitle,hudshow=loadgame,hudshow=savegame,hudshow=quitgame,hudshow=returngame,hudshow=pointer,state=4
Confusedtate=4,hudselectionmade=2:loadgame
Confusedtate=4,hudselectionmade=3Confusedavegame,state=6
Confusedtate=4,hudselectionmade=5Confusedtate=600
Confusedtate=4,hudselectionmade=4Confusedtate=6
Confusedtate=4,escapekeypressed=1Confusedtate=5
Confusedtate=5,escapekeypressed=0Confusedtate=6
Confusedtate=6:hudunshow=gamemenutitle,hudunshow=loadgame,hudunshow=savegame,hudunshow=quitgame,hudunshow=returngame,hudunshow=pointer,resumegame,state=1

;------------------------------------------------------------BackPack By Tax78------------------------------------------------------------------------

;Setup global var

Confusedtate=0:dimvar=Zsmallhealth,dimvar=Zlargehealth
Confusedtate=0:dimvar=Zkey,dimvar=ZkeyA
Confusedtate=0:dimvar=ZkeyB,dimvar=ZkeyB
Confusedtate=0:dimvar=Zmap
Confusedtate=0:dimvar=Znv

:always:globalvar=Zsmallhealth,globalvar=Zlargehealth
:always:globalvar=Zkey,globalvar=ZkeyA
Confusedtate=0:dimvar=ZkeyB,dimvar=ZkeyB
:always:globalvar=Zmap
:always:globalvar=Znv

; Setup Backpack
Confusedtate=0:hudreset,hudx=50,hudy=10,hudimage=gamecore\huds\Tax78\zaino\menu\backpack.tga,hudname=backpack,hudhide=1,hudmake=display
Confusedtate=0:hudreset,hudx=25,hudy=90,hudimage=gamecore\huds\Tax78\zaino\menu\use.tga,hudtype=6,hudname=use,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=75,hudy=90,hudimage=gamecore\huds\Tax78\zaino\menu\drop.tga,hudtype=7,hudname=drop,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=80,hudimage=gamecore\huds\Tax78\zaino\menu\back.tga,hudtype=8,hudname=back,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=70,hudimage=gamecore\huds\Tax78\zaino\menu\returntogame.tga,hudtype=4,hudname=return game,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2.dds,hudtype=9,hudname=small_health_2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x2.dds,hudtype=9,hudname=small_health_2 x2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x3.dds,hudtype=9,hudname=small_health_2 x3,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x4.dds,hudtype=9,hudname=small_health_2 x4,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x5.dds,hudtype=9,hudname=small_health_2 x5,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1.dds,hudtype=12,hudname=large_health_1,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x2.dds,hudtype=12,hudname=large_health_1 x2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x3.dds,hudtype=12,hudname=large_health_1 x3,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x4.dds,hudtype=12,hudname=large_health_1 x4,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x5.dds,hudtype=12,hudname=large_health_1 x5,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=60,hudimage=gamecore\huds\Tax78\zaino\scifi\key_1.dds,hudtype=10,hudname=key_1,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=60,hudimage=gamecore\huds\Tax78\zaino\scifi\key_2.dds,hudtype=13,hudname=key_2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=60,hudimage=gamecore\huds\Tax78\zaino\oggettimiei\key_6.dds,hudtype=13,hudname=key_3,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=30,hudimage=gamecore\huds\Tax78\zaino\ww2\maps.dds,hudtype=11,hudname=maps,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=40,hudimage=gamecore\huds\Tax78\zaino\Tax78\nightvision.dds,hudtype=14,hudname=nightvision,hudhide=1,hudmake=button

Confusedtate=0Confusedtate=1
;press "PgDn"(Zaino)(Backpack)
Confusedtate=1,keypressed=209 1:etimerstart,state=100,hideplrweapon
Confusedtate=100,etimergreater=1000,keypressed=209 0:pausegame,state=101

; Backpack Menu
Confusedtate=101:hudshow=backpack,hudshow=return game,hudshow=pointer,state=102
;Var=x = hudshow
Confusedtate=102,varequal=Zsmallhealth 1:hudshow=small_health_2
Confusedtate=102,varequal=Zsmallhealth 2:hudshow=small_health_2 x2
Confusedtate=102,varequal=Zsmallhealth 3:hudshow=small_health_2 x3
Confusedtate=102,varequal=Zsmallhealth 4:hudshow=small_health_2 x4
Confusedtate=102,varequal=Zsmallhealth 5:hudshow=small_health_2 x5
;-------------------------------------------------------------
Confusedtate=102,varequal=Zlargehealth 1:hudshow=large_health_1
Confusedtate=102,varequal=Zlargehealth 2:hudshow=large_health_1 x2
Confusedtate=102,varequal=Zlargehealth 3:hudshow=large_health_1 x3
Confusedtate=102,varequal=Zlargehealth 4:hudshow=large_health_1 x4
Confusedtate=102,varequal=Zlargehealth 5:hudshow=large_health_1 x5
;-------------------------------------------------------------
Confusedtate=102,varequal=Zkey 1:hudshow=key_1
Confusedtate=102,varequal=ZkeyA 1:hudshow=key_2
Confusedtate=102,varequal=ZkeyB 1:hudshow=key_3
;-------------------------------------------------------------
Confusedtate=102,varequal=Zmap 1:hudshow=maps
;-------------------------------------------------------------
Confusedtate=102,varequal=Znv 1:hudshow=nightvision
;-------------------------------------------------------------
; Attesa clik
Confusedtate=102,hudselectionmade=4Confusedtate=300
;health 50
Confusedtate=102,vargreater=Zsmallhealth 1,hudselectionmade=9:hudshow=use,hudshow=back,hudunshow=return game,state=110
Confusedtate=110,hudselectionmade=6Confusedubvar=Zsmallhealth 1,state=300
Confusedtate=110,hudselectionmade=8:hudunshow=back,hudunshow=use,state=101
;key
Confusedtate=102,vargreater=Zkey 1,hudselectionmade=10:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=120
Confusedtate=120,hudselectionmade=6:addvar=Zkey 1,state=300
Confusedtate=120,hudselectionmade=7Confusedubvar=Zkey 1,state=500
Confusedtate=120,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;map
Confusedtate=102,vargreater=Zmap 1,hudselectionmade=11:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=130
Confusedtate=130,hudselectionmade=6:addvar=Zmap 1,state=300
Confusedtate=130,hudselectionmade=7Confusedubvar=Zmap 1,state=500
Confusedtate=130,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
;health 100
Confusedtate=102,vargreater=Zlargehealth 1,hudselectionmade=12:hudshow=use,hudshow=back,hudunshow=return game,state=140
Confusedtate=140,hudselectionmade=6Confusedubvar=Zlargehealth 1,state=300
Confusedtate=140,hudselectionmade=8:hudunshow=back,hudunshow=use,state=101
;keyA
Confusedtate=102,vargreater=ZkeyA 1,hudselectionmade=13:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=150
Confusedtate=150,hudselectionmade=6:addvar=ZkeyA 1,state=300
Confusedtate=150,hudselectionmade=7Confusedubvar=ZkeyA 1,state=500
Confusedtate=150,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;keyB
Confusedtate=102,vargreater=ZkeyB 1,hudselectionmade=13:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=150
Confusedtate=150,hudselectionmade=6:addvar=ZkeyA 1,state=300
Confusedtate=150,hudselectionmade=7Confusedubvar=ZkeyA 1,state=500
Confusedtate=150,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
;nightvision
Confusedtate=102,vargreater=Znv 1,hudselectionmade=14:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=160
Confusedtate=160,hudselectionmade=6:addvar=Znv 1,state=300
Confusedtate=160,hudselectionmade=7Confusedubvar=Znv 1,state=500
Confusedtate=160,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
; return to game or select use
Confusedtate=300:hudunshow=backpack,hudunshow=return game,hudunshow=pointer,hudunshow=use,hudunshow=drop,hudunshow=back
Confusedtate=300:hudunshow=small_health_2,hudunshow=small_health_2 x2,hudunshow=small_health_2 x3,hudunshow=small_health_2 x4,hudunshow=small_health_2 x5
Confusedtate=300:hudunshow=large_health_1,hudunshow=large_health_1 x2,hudunshow=large_health_1 x3,hudunshow=large_health_1 x4,hudunshow=large_health_1 x5
Confusedtate=300:hudunshow=key_1,hudunshow=key_2,hudunshow=key_3
Confusedtate=300:hudunshow=maps
Confusedtate=300:hudunshow=nightvision
Confusedtate=300:resumegame,etimerstart,state=301
Confusedtate=301,etimergreater=500Confusedhowplrweapon,state=1

; select drop
Confusedtate=500:hudunshow=use,hudunshow=drop,hudunshow=back
Confusedtate=500:hudunshow=small_health_2,hudunshow=small_health_2 x2,hudunshow=small_health_2 x3,hudunshow=small_health_2 x4,hudunshow=small_health_2 x5
Confusedtate=500:hudunshow=large_health_1,hudunshow=large_health_1 x2,hudunshow=large_health_1 x3,hudunshow=large_health_1 x4,hudunshow=large_health_1 x5
Confusedtate=500:hudunshow=key_1,hudunshow=key_2
Confusedtate=500:hudunshow=maps
Confusedtate=500:hudunshow=nightvision
Confusedtate=500,mousestate=0Confusedtate=101

Confusedtate=600Confusedetvar=Zsmallhealth 0,setvar=Zlargehealth 0
Confusedtate=600Confusedetvar=Zkey 0,setvar=ZkeyA 0
Confusedtate=600Confusedetvar=Zmap 0
Confusedtate=600Confusedetvar=Znv 0
Confusedtate=600Confusedetposteffect=none
Confusedtate=600:continuegame,destroy

QUI INVECE LO SCRIPT DELLA CHIAVE

;Artificial Intelligence Script

;Header

desc = Pickup Key - var

;Triggers
Confusedtate=0:globalvar=ZkeyB

Confusedtate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10
Confusedtate=10,plrdistwithin=40Confusedtate=11,addvar=ZkeyB 1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=keyprompt,hudfadeout=keyprompt
Confusedtate=10,varequal=ZkeyB 1Confusedtate=11,playertake,coloff

Confusedtate=11,varequal=ZkeyB 0:etimerstart,state=20

Confusedtate=20,etimergreater=500:plrsound=$1,playerdrop
Confusedtate=21,plrdistfurther=45Confusedtate=10


;End of Script

QUI LO SCRIPT DELLA PORTA

;Artificial Intelligence Script

;Header

desc = Key Door (Open 'With Key' and Close) - var

;Triggers
Confusedtate=0:globalvar=ZkeyB

Confusedtate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\lockeddoor.tga,hudname=keydoorprompt,hudhide=1,hudmake=display,state=10
Confusedtate=10,plrdistwithin=60:hudshow=keydoorprompt,hudfadeout=keydoorprompt

Confusedtate=10,plrdistfurther=61,varequal=ZkeyB 2Confusedtate=10,subvar=ZkeyA 1
Confusedtate=10,plrdistwithin=60,varequal=ZkeyB 2Confusedtate=11,etimerstart
Confusedtate=11,etimergreater=500Confusedtate=1,setframe=0,sound=$0
Confusedtate=1:incframe=0
Confusedtate=1,frameatend=0Confusedtate=2,coloff,subvar=ZkeyA 1
Confusedtate=2,plrdistfurther=60Confusedtate=3,sound=$1,colon
Confusedtate=3:decframe=0
Confusedtate=3,frameatstart=0Confusedtate=10,setframe=0

;End of Script


la chiave si vede ma non sono riuscito a farla funzionare con la porta come se non fosse la chiave giusta
e per ultimo se vado sul menu' e clicco su esci non esce gli altri tasti carica salva e torna alla partita vanno
non so cosa ho toccato quello non e' un grande problema a limite carico il setuplevel di backup
piu' che altro vorrei sapere cosa ho sbagliato in modo da riuscire a fare i prossimi da solo
 
Rispondi
#14
Mio ... ma che è Confused non si capisce una mazza, modifica il post mettendo gli script in citazione.

Comunque eccoti lo script modificato setuplevel

SPIEGAZIONE MODIFICHE

Modifiche per script setuplevel:
Da modificare
Citazione:Confusedtate=0:dimvar=Zsmallhealth,dimvar=Zlargehealth
Confusedtate=0:dimvar=Zkey,dimvar=ZkeyA
Confusedtate=0:dimvar=ZkeyB,dimvar=ZkeyB
Confusedtate=0:dimvar=Zmap
Confusedtate=0:dimvar=Znv
Modificato
Citazione:Confusedtate=0:dimvar=Zsmallhealth,dimvar=Zlargehealth
Confusedtate=0:dimvar=Zkey,dimvar=ZkeyA,dimvar=ZkeyB
Confusedtate=0:dimvar=Zmap
Confusedtate=0:dimvar=Znv

Mantieni sempre l'ordine nelle righe, cioè, come puoi vedere la prima righa è per l'energia, la seconda e per le key, la terza la mappa, ed ultima la visione notturna. E poi basta creare la variabile una volta sola.
==========================================

Altra parte che non và:
Da modificare
Citazione::always:globalvar=Zsmallhealth,globalvar=Zlargehealth
:always:globalvar=Zkey,globalvar=ZkeyA
Confusedtate=0:dimvar=ZkeyB,dimvar=ZkeyB
:always:globalvar=Zmap
:always:globalvar=Znv

Modificata
Citazione::always:globalvar=Zsmallhealth,globalvar=Zlargehealth
:always:globalvar=Zkey,globalvar=ZkeyA,globalvar=ZkeyB
:always:globalvar=Zmap
:always:globalvar=Znv
Quì hai fatto un pasticcio Tongue hai incollato la creazione della variabile nelle righe dove si dice allo script che deve leggere sempre le variabili globali create in precedenza.
==========================================
Altra parte:
Da modificare
Citazione:Confusedtate=0:hudreset,hudx=50,hudy=60,hudimage=gamecore\huds\Tax78\zaino\oggettimiei​\key_6.dds,hudtype=13,hudname=key_3,hudhide=1,hudmake=button

modificata
Citazione:Confusedtate=0:hudreset,hudx=50,hudy=60,hudimage=gamecore\huds\Tax78\zaino\oggettimiei​\key_6.dds,hudtype=15,hudname=key_3,hudhide=1,hudmake=button
Quì viene impostato un hudtype=15, perchè se noti ho già usato il 13 per un'altra chiave. Questo è il motivo che sembra che la chiave non sia giusta
==========================================
Altro:
da modificare
Citazione:;keyB
Confusedtate=102,vargreater=ZkeyB 1,hudselectionmade=13:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=150
Confusedtate=150,hudselectionmade=6:addvar=ZkeyA 1,state=300
Confusedtate=150,hudselectionmade=7Confusedubvar=ZkeyA 1,state=500
Confusedtate=150,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=​101

Modificato
Citazione:;keyB
Confusedtate=102,vargreater=ZkeyB 1,hudselectionmade=15:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=170
Confusedtate=170,hudselectionmade=6:addvar=ZkeyB 1,state=300
Confusedtate=170,hudselectionmade=7Confusedubvar=ZkeyB 1,state=500
Confusedtate=170,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
Quì alla selezione dell'hud 15 si attiva tutto il meccanismo di USE e quindi apertura porta.
===========================================
Altro
Da modificare
Citazione:Confusedtate=500:hudunshow=key_1,hudunshow=key_2
Modificato
Citazione:Confusedtate=500:hudunshow=key_1,hudunshow=key_2,hudunshow=key_3
Far scomparire la hud in caso di drop
===========================================
Altro
Da modificare
Citazione:Confusedtate=600Confusedetvar=Zkey 0,setvar=ZkeyA 0
Modificato
Citazione:Confusedtate=600Confusedetvar=Zkey 0,setvar=ZkeyA 0,setvar=ZkeyB 0
Settaggio della variabile a zero


Modifiche per script porta: quì fai tu Big Grin
Ci sono ancora delle "A" nello script, cambiale


Io non testato il tutto , ma son quasi sicuro che funzioni
 
Rispondi
#15
Grazie Tax per l'aiuto e il tempo
dunque ho qualche domanda.
Qui e' giusto cosi'?

Citazione:Confusedtate=102,varequal=Zkey 1:hudshow=key_1
Confusedtate=102,varequal=ZkeyA 1:hudshow=key_2
Confusedtate=102,varequal=ZkeyB 1:hudshow=key_3

poi qui volevo sapere state+170 si mette sempre un valore che non e' gia stato messo? il 170 per cosa sta?
poi hudtype=15 e hudselectionmade=15 sono legati tra loro ? il quindici se si mette in hudtype deve essere messo anche in hudselectionmade?
tornando a hudtype il numero da inserire puo' essere casuale l'importante e' che non sia stato usato da altri?


Citazione:;keyB
Confusedtate=102,vargreater=ZkeyB 1,hudselectionmade=15:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=170
Confusedtate=170,hudselectionmade=6:addvar=ZkeyB 1,state=300
Confusedtate=170,hudselectionmade=7Confusedubvar=ZkeyB 1,state=500
Confusedtate=170,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=​101

Ok il codice andava alla grande in piu' la porta rimaneva aperta definitivamente avevo avuto con i codici d base dovevo riutilizzare la chiave ogni volta
sicuramente avevo toccato qualcosa infatti una volta premuto esc e poi cliccando su esci non usciva quindi ho messo il setuplevel e gli altri file di backup e ora sto rifacendo tutto

ultima cosa hudshow=key_3 e' legato al nome del file.dds ?
perche la chiave in quel file si chiama key_6 comunque ora provo

non so ora cosa ho combinato ma mentre buildo mi appare una scritta alla fine che fa bloccare il build e chiudere il programma

path:oggettimiei??
runtime error 8003 -could not find path at line 38857

ok c'erano dei punti di domanda che davano problemi va benissimo la chiave dopo che viene utilizzata scompare e la porta resta aperta perfetto
ultima cosa quando premo su esci esce ma ho nottato che funziona solo se clicco sulla E come posso regolare meglio e far si che prenda l'intera zona della scritta?
 
Rispondi
#16
1° si se non l'ho cambiato è giusto
2° Allora il 170 sta per (lo stato in cui si trova lo script) cioè, dove il game legge in quel momento lo script. Nel nostro caso siamo al 102, e il game legge titte le condizioni che si troveno nelle righe 102, se poi ne trova una che sia vera allora passa allo stato descritto nell azioni, (170) e così via.....

Si sono legati, se in hudtype= metti 20 allora in hudselectionmade= metti 20
Usare numeri che non ci sono ancora.

3° esatto il hudshow=xxxxx e legato al hudname=xxxxx se tu dai un nome alla tua immagine poi devi richiamarla con quel nome.

Citazione:la chiave dopo che viene utilizzata scompare e la porta resta aperta perfetto
In teoria l'immagine hud della key non deve sparire, e la porta dopo che tu sei passato si deve chiudere per poi ritornarci vicino ed usare nuovamente la key per aprire.
Spiega bene cosa deve accadere

Citazione:ultima cosa quando premo su esci esce ma ho nottato che funziona solo se clicco sulla E come posso regolare meglio e far si che prenda l'intera zona della scritta?
Quella è una cosa che è già capitata anche a me, non sò dovrei fare dei test, ma non ho tempo adesso.
 
Rispondi
#17
a ok ero preoccupato piu' che altro per quello ma se comunque non e' solo un mio problema va gia meglio almeno ho fatto danni io Smile

Per quanto riguardo l'utilizzo della chiave con lo script standard che ho scaricato dal tuo sito
accade questo : prendo la chiave vado verso la porta uso lo zaino uso la chiave la porta si apre io passo come mi allontano un po' si chiude se poi torno verso
quella porta devo riusare la chiave
non so come ma con quello che ho fatto io dopo che usa la chiave la chiave scompare poi attraversi vai avanti la porta si chiude come [tutto normale] se torno indietro clicco invio la porta si riapre senza quindi dover usare la chiave
sinceramente preferisco questo rispetto al dover riaprire il menu e mettere usa la chiave volendo potrebbe anche rimanere nel menu' e il giocattore dovra' scegliere se tenere o buttare via la chiave ma non e' un proble ma
trovo migliore e piu' fluido il fatto che dopo che venga aperta la porta resti aperta

detto questo

hudshow e hudname non ricordo come gli ho settati ma come gia detto va tutto bene
ora sto provando a fare un altra chiave e sto riavendo difficolta' ora vedo se riesco a risolvere sia se ci riesco o meno posto l'intero script cosi' magari dai un occhiata e vede come mai la porta resta aperta e la chiave scompare perche' le prossime le vorrei fare cosi'

a un'altra cosa

sto creando un'altra chiave
questa parte di codice e' corretto? [e' key c quella nuova]

Citazione:;keyA
Confusedtate=102,vargreater=ZkeyA 1,hudselectionmade=13:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=150
Confusedtate=150,hudselectionmade=6:addvar=ZkeyA 1,state=300
Confusedtate=150,hudselectionmade=7Confusedubvar=ZkeyA 1,state=500
Confusedtate=150,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;keyB
Confusedtate=102,vargreater=ZkeyB 1,hudselectionmade=15:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=170
Confusedtate=170,hudselectionmade=6:addvar=ZkeyB 1,state=300
Confusedtate=170,hudselectionmade=7Confusedubvar=ZkeyB 1,state=500
Confusedtate=170,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;keyC
Confusedtate=102,vargreater=ZkeyC 1,hudselectionmade=16:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=180
Confusedtate=180,hudselectionmade=6:addvar=ZkeyC 1,state=300
Confusedtate=180,hudselectionmade=7Confusedubvar=ZkeyC 1,state=500
Confusedtate=180,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
 
Rispondi
#18
Si, il settaggio delle porte va a disrcezione del creatore del game, ok ok

Si è giusto, se il tipo di hud è 16
 
Rispondi
#19
ALLA GRANDE

Allora la chiave numero 3 quella che ho creato in precedenza
funziona come scritto sopra
usi la chiave la chiave sparisce e poi basta cliccare invio e la porta si apre sempre e direi che mi piace
ho creato la chiave numero 4 questa funziona come la chiave 1 e 2
ogni volta che la porta si chiude bisogna rientrare nello zaino e usarla
a differenza della chiave 3 l'immagine della chiave 1 2 e 4 rimane anche perche' se cosi' non fosse non si potrebbe riutilizzare

sono un po' ripetitivo lo so ma e' per essere preciso e capirci meglio

ecco l'intero script di setup level

Citazione:;AIScript from Wizard
;Header
desc = Setup Wizard V117
; Setup Level Stats
Confusedtate=0Confusedky=skybank\natural\Ngt
Confusedtate=0:music=audiobank\sound res3\sottofondo.wav,musicvolume=50,soundscale=25
Confusedtate=0:fog=0,fogred=0,foggreen=0,fogblue=0
Confusedtate=0:ambience=25,ambiencered=255,ambiencegreen=255,ambienceblue=255
Confusedtate=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\fader.tga,hudhide=1,hudtype=3,hudmake=internal
Confusedtate=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\eyehud.tga,hudhide=1,hudtype=2,hudmake=internal
Confusedtate=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=128,hudblue=128,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\zoom.tga,hudhide=1,hudtype=4,hudmake=internal
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar1.dds,hudname=health1,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar2.dds,hudname=health2,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar3.dds,hudname=health3,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar4.dds,hudname=health4,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar5.dds,hudname=health5,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar6.dds,hudname=health6,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar7.dds,hudname=health7,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar8.dds,hudname=health8,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar9.dds,hudname=health9,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar10.dds,hudname=health10,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar11.dds,hudname=health11,hudmake=display,hudhide=1
Confusedtate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar12.dds,hudname=health12,hudmake=display,hudhide=1
;Controllo Energia
Confusedtate=1,plrhealthgreater=999: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
Confusedtate=1,plrhealthless=980,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
Confusedtate=1,plrhealthless=890,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
Confusedtate=1,plrhealthless=790,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
Confusedtate=1,plrhealthless=690,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
Confusedtate=1,plrhealthless=590,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
Confusedtate=1,plrhealthless=490,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
Confusedtate=1,plrhealthless=390,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
Confusedtate=1,plrhealthless=290,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
Confusedtate=1,plrhealthless=190,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
Confusedtate=1,plrhealthless=90,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
Confusedtate=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
Confusedtate=0:hudreset,hudx=85,hudy=8,hudimage=gamecore\huds\ammo.tga,hudtype=3,hudmake=status
Confusedtate=0:hudreset,hudx=88,hudy=12,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=3,hudmake=numeric
;Controllo Suono
Confusedtate=1,plrhealthless=1000,plrhealthgreater=199Confusedtopsound=audiobank\music\Heartbeat.ogg
Confusedtate=1,plrhealthless=200,plrhealthgreater=1:loopsound=audiobank\music\Heartbeat.ogg
; Setup Game Menu
Confusedtate=0:hudreset,hudx=50,hudy=10,hudimage=gamecore\huds\Tax78\zaino\Tax78\menu.tga,hudname=gamemenutitle,hudhide=1,hudmake=display
Confusedtate=0:hudreset,hudx=50,hudy=40,hudimage=gamecore\huds\Tax78\zaino\Tax78\load game.tga,hudtype=2,hudname=loadgame,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\Tax78\zaino\Tax78\save game.tga,hudtype=3,hudname=savegame,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=60,hudimage=gamecore\huds\Tax78\zaino\Tax78\exit.tga,hudtype=5,hudname=quitgame,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=50,hudimage=languagebank\english\gamecore\backdrops\basic\saving.tga,hudname=savingprompt,hudhide=1,hudmake=display
Confusedtate=0:hudreset,hudx=50,hudy=70,hudimage=gamecore\huds\Tax78\zaino\Tax78\return to game.tga,hudtype=4,hudname=returngame,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\pointer.tga,hudname=pointer,hudhide=1,hudmake=pointer
; Main Game
Confusedtate=1,escapekeypressed=1:pausegame,state=2
Confusedtate=1,scancodekeypressed=197:pausegame,state=11
Confusedtate=1,scancodekeypressed=64:hudshow=savingprompt,quicksavegame,pausegame,state=21
Confusedtate=1,scancodekeypressed=67:quickloadgame,state=31
Confusedtate=11,scancodekeypressed=0Confusedtate=12
Confusedtate=12,scancodekeypressed=197:resumegame,state=13
Confusedtate=13,scancodekeypressed=0Confusedtate=1
Confusedtate=21,scancodekeypressed=0:hudunshow=savingprompt,resumegame,state=1
Confusedtate=31,scancodekeypressed=0Confusedtate=1

; Game Menu
Confusedtate=2,escapekeypressed=0Confusedtate=3
Confusedtate=3:hudshow=gamemenutitle,hudshow=loadgame,hudshow=savegame,hudshow=quitgame,hudshow=returngame,hudshow=pointer,state=4
Confusedtate=4,hudselectionmade=2:loadgame
Confusedtate=4,hudselectionmade=3Confusedavegame,state=6
Confusedtate=4,hudselectionmade=5Confusedtate=600
Confusedtate=4,hudselectionmade=4Confusedtate=6
Confusedtate=4,escapekeypressed=1Confusedtate=5
Confusedtate=5,escapekeypressed=0Confusedtate=6
Confusedtate=6:hudunshow=gamemenutitle,hudunshow=loadgame,hudunshow=savegame,hudunshow=quitgame,hudunshow=returngame,hudunshow=pointer,resumegame,state=1

;------------------------------------------------------------BackPack By Tax78------------------------------------------------------------------------

;Setup global var

Confusedtate=0:dimvar=Zsmallhealth,dimvar=Zlargehealth
Confusedtate=0:dimvar=Zkey,dimvar=ZkeyA,dimvar=ZkeyB,dimvar=ZkeyC
Confusedtate=0:dimvar=Zmap
Confusedtate=0:dimvar=Znv

:always:globalvar=Zsmallhealth,globalvar=Zlargehealth
:always:globalvar=Zkey,globalvar=ZkeyA,globalvar=ZkeyB,globalvar=ZkeyC
:always:globalvar=Zmap
:always:globalvar=Znv

; Setup Backpack
Confusedtate=0:hudreset,hudx=50,hudy=10,hudimage=gamecore\huds\Tax78\zaino\menu\backpack.tga,hudname=backpack,hudhide=1,hudmake=display
Confusedtate=0:hudreset,hudx=25,hudy=90,hudimage=gamecore\huds\Tax78\zaino\menu\use.tga,hudtype=6,hudname=use,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=75,hudy=90,hudimage=gamecore\huds\Tax78\zaino\menu\drop.tga,hudtype=7,hudname=drop,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=80,hudimage=gamecore\huds\Tax78\zaino\menu\back.tga,hudtype=8,hudname=back,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=70,hudimage=gamecore\huds\Tax78\zaino\menu\returntogame.tga,hudtype=4,hudname=return game,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2.dds,hudtype=9,hudname=small_health_2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x2.dds,hudtype=9,hudname=small_health_2 x2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x3.dds,hudtype=9,hudname=small_health_2 x3,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x4.dds,hudtype=9,hudname=small_health_2 x4,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=20,hudimage=gamecore\huds\Tax78\zaino\scifi\small_health_2 x5.dds,hudtype=9,hudname=small_health_2 x5,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1.dds,hudtype=12,hudname=large_health_1,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x2.dds,hudtype=12,hudname=large_health_1 x2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x3.dds,hudtype=12,hudname=large_health_1 x3,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x4.dds,hudtype=12,hudname=large_health_1 x4,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=21,hudimage=gamecore\huds\Tax78\zaino\scifi\large_health_1 x5.dds,hudtype=12,hudname=large_health_1 x5,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=60,hudimage=gamecore\huds\Tax78\zaino\scifi\key_1.dds,hudtype=10,hudname=key_1,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=40,hudy=60,hudimage=gamecore\huds\Tax78\zaino\scifi\key_2.dds,hudtype=13,hudname=key_2,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=50,hudy=60,hudimage=gamecore\huds\Tax78\zaino\oggettimiei\key_6.dds,hudtype=15,hudname=key_3,hudhide=1,hudmake=button
Confusedtate=0:hudreset,hudx=30,hudy=50,hudimage=gamecore\huds\Tax78\zaino\oggettimiei\key_7.dds,hudtype=20,hudname=key_7,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=30,hudimage=gamecore\huds\Tax78\zaino\ww2\maps.dds,hudtype=11,hudname=maps,hudhide=1,hudmake=button

Confusedtate=0:hudreset,hudx=30,hudy=40,hudimage=gamecore\huds\Tax78\zaino\Tax78\nightvision.dds,hudtype=14,hudname=nightvision,hudhide=1,hudmake=button

Confusedtate=0Confusedtate=1
;press "PgDn"(Zaino)(Backpack)
Confusedtate=1,keypressed=209 1:etimerstart,state=100,hideplrweapon
Confusedtate=100,etimergreater=1000,keypressed=209 0:pausegame,state=101

; Backpack Menu
Confusedtate=101:hudshow=backpack,hudshow=return game,hudshow=pointer,state=102
;Var=x = hudshow
Confusedtate=102,varequal=Zsmallhealth 1:hudshow=small_health_2
Confusedtate=102,varequal=Zsmallhealth 2:hudshow=small_health_2 x2
Confusedtate=102,varequal=Zsmallhealth 3:hudshow=small_health_2 x3
Confusedtate=102,varequal=Zsmallhealth 4:hudshow=small_health_2 x4
Confusedtate=102,varequal=Zsmallhealth 5:hudshow=small_health_2 x5
;-------------------------------------------------------------
Confusedtate=102,varequal=Zlargehealth 1:hudshow=large_health_1
Confusedtate=102,varequal=Zlargehealth 2:hudshow=large_health_1 x2
Confusedtate=102,varequal=Zlargehealth 3:hudshow=large_health_1 x3
Confusedtate=102,varequal=Zlargehealth 4:hudshow=large_health_1 x4
Confusedtate=102,varequal=Zlargehealth 5:hudshow=large_health_1 x5
;-------------------------------------------------------------
Confusedtate=102,varequal=Zkey 1:hudshow=key_1
Confusedtate=102,varequal=ZkeyA 1:hudshow=key_2
Confusedtate=102,varequal=ZkeyB 1:hudshow=key_3
Confusedtate=102,varequal=ZkeyC 1:hudshow=key_7
;-------------------------------------------------------------
Confusedtate=102,varequal=Zmap 1:hudshow=maps
;-------------------------------------------------------------
Confusedtate=102,varequal=Znv 1:hudshow=nightvision
;-------------------------------------------------------------
; Attesa clik
Confusedtate=102,hudselectionmade=4Confusedtate=300
;health 50
Confusedtate=102,vargreater=Zsmallhealth 1,hudselectionmade=9:hudshow=use,hudshow=back,hudunshow=return game,state=110
Confusedtate=110,hudselectionmade=6Confusedubvar=Zsmallhealth 1,state=300
Confusedtate=110,hudselectionmade=8:hudunshow=back,hudunshow=use,state=101
;key
Confusedtate=102,vargreater=Zkey 1,hudselectionmade=10:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=120
Confusedtate=120,hudselectionmade=6:addvar=Zkey 1,state=300
Confusedtate=120,hudselectionmade=7Confusedubvar=Zkey 1,state=500
Confusedtate=120,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;map
Confusedtate=102,vargreater=Zmap 1,hudselectionmade=11:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=130
Confusedtate=130,hudselectionmade=6:addvar=Zmap 1,state=300
Confusedtate=130,hudselectionmade=7Confusedubvar=Zmap 1,state=500
Confusedtate=130,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
;health 100
Confusedtate=102,vargreater=Zlargehealth 1,hudselectionmade=12:hudshow=use,hudshow=back,hudunshow=return game,state=140
Confusedtate=140,hudselectionmade=6Confusedubvar=Zlargehealth 1,state=300
Confusedtate=140,hudselectionmade=8:hudunshow=back,hudunshow=use,state=101
;keyA
Confusedtate=102,vargreater=ZkeyA 1,hudselectionmade=13:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=150
Confusedtate=150,hudselectionmade=6:addvar=ZkeyA 1,state=300
Confusedtate=150,hudselectionmade=7Confusedubvar=ZkeyA 1,state=500
Confusedtate=150,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;keyB
Confusedtate=102,vargreater=ZkeyB 1,hudselectionmade=15:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=170
Confusedtate=170,hudselectionmade=6:addvar=ZkeyB 1,state=300
Confusedtate=170,hudselectionmade=7Confusedubvar=ZkeyB 1,state=500
Confusedtate=170,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;keyC
Confusedtate=102,vargreater=ZkeyC 1,hudselectionmade=20:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=180
Confusedtate=180,hudselectionmade=6:addvar=ZkeyC 1,state=300
Confusedtate=180,hudselectionmade=7Confusedubvar=ZkeyC 1,state=500
Confusedtate=180,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
;nightvision
Confusedtate=102,vargreater=Znv 1,hudselectionmade=14:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=160
Confusedtate=160,hudselectionmade=6:addvar=Znv 1,state=300
Confusedtate=160,hudselectionmade=7Confusedubvar=Znv 1,state=500
Confusedtate=160,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
; return to game or select use
Confusedtate=300:hudunshow=backpack,hudunshow=return game,hudunshow=pointer,hudunshow=use,hudunshow=drop,hudunshow=back
Confusedtate=300:hudunshow=small_health_2,hudunshow=small_health_2 x2,hudunshow=small_health_2 x3,hudunshow=small_health_2 x4,hudunshow=small_health_2 x5
Confusedtate=300:hudunshow=large_health_1,hudunshow=large_health_1 x2,hudunshow=large_health_1 x3,hudunshow=large_health_1 x4,hudunshow=large_health_1 x5
Confusedtate=300:hudunshow=key_1,hudunshow=key_2,hudunshow=key_3,hudunshow=key_7
Confusedtate=300:hudunshow=maps
Confusedtate=300:hudunshow=nightvision
Confusedtate=300:resumegame,etimerstart,state=301
Confusedtate=301,etimergreater=500Confusedhowplrweapon,state=1

; select drop
Confusedtate=500:hudunshow=use,hudunshow=drop,hudunshow=back
Confusedtate=500:hudunshow=small_health_2,hudunshow=small_health_2 x2,hudunshow=small_health_2 x3,hudunshow=small_health_2 x4,hudunshow=small_health_2 x5
Confusedtate=500:hudunshow=large_health_1,hudunshow=large_health_1 x2,hudunshow=large_health_1 x3,hudunshow=large_health_1 x4,hudunshow=large_health_1 x5
Confusedtate=500:hudunshow=key_1,hudunshow=key_2,hudunshow=key_3,hudunshow=key_7
Confusedtate=500:hudunshow=maps
Confusedtate=500:hudunshow=nightvision
Confusedtate=500,mousestate=0Confusedtate=101

Confusedtate=600Confusedetvar=Zsmallhealth 0,setvar=Zlargehealth 0
Confusedtate=600Confusedetvar=Zkey 0,setvar=ZkeyA 0,setvar=ZkeyB 0,setvar=ZkeyC 0
Confusedtate=600Confusedetvar=Zmap 0
Confusedtate=600Confusedetvar=Znv 0
Confusedtate=600Confusedetposteffect=none
Confusedtate=600:continuegame,destroy
 
Rispondi
#20
a Tax come posso far si che i medikit e le altre cose ma per ora i medikit possano essere presi solo premendo invio?

perche' ho dei mobiletti uno chiuso e uno aperto e volevo far si che premendo invio l'entita' mobiletto si aprisse e solo dopo aver aperto il mobiletto sia possibile prendere il medikit ripremendo invio
 
Rispondi
#21
io non uso questo script ,perche non mi funziona, ma a parte questo devi usare lo script fatto cosi (non testato quindi fai una copia del script originale)
Codice:
;Artificial Intelligence Script

;Header By Tax78

desc          = Health - take

;Triggers
:always:globalvar=Zlargehealth

:state=0,varequal=Zlargehealth 1,plrusingaction=1:state=1,playertake

:state=1,varequal=Zlargehealth 0:etimerstart,state=20

:state=20,etimergreater=500:plraddhealth=100,plrsound=audiobank\items\healthup.wav,state=21

;End of Script
suppongo funzioni e se non funziona...aspetta tax
 
Rispondi
#22
Citazione:;Artificial Intelligence Script

;Header By Tax78

desc = Health - var (for 5 health) and max 5 plrtake

;Triggers
:always:globalvar=Zlargehealth

Confusedtate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=10

Confusedtate=10,varless=Zlargehealth 4,plrdistwithin=40:addvar=Zlargehealth 1,state=1,playertake,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt

Confusedtate=1,varequal=Zlargehealth 1Confusedtate=2
Confusedtate=1,varequal=Zlargehealth 2Confusedtate=3
Confusedtate=1,varequal=Zlargehealth 3Confusedtate=4
Confusedtate=1,varequal=Zlargehealth 4Confusedtate=5
Confusedtate=1,varequal=Zlargehealth 5Confusedtate=6

Confusedtate=2,varequal=Zlargehealth 0:etimerstart,state=20
Confusedtate=3,varequal=Zlargehealth 1:etimerstart,state=20
Confusedtate=4,varequal=Zlargehealth 2:etimerstart,state=20
Confusedtate=5,varequal=Zlargehealth 3:etimerstart,state=20
Confusedtate=6,varequal=Zlargehealth 4:etimerstart,state=20

Confusedtate=20,etimergreater=500:plraddhealth=100,plrsound=audiobank\items\healthup.wav,state=21

;End of Script


lo script originale e' questo perche' vorrei poterlo prendere solo premendo invio ma deve anche andare nello zaino
con questo sai come si fa?

Tax attendo con ansia tue notizie per sapere qualcosa sulle chiavi Sad Shy
 
Rispondi
#23
penso che devi cambiare
Codice:
:state=10,varless=Zlargehealth 4,plrdistwithin=40:addvar=Zlargehealth 1,state=1,playertake,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfade​out=itemprompt
in
Codice:
:state=10,varless=Zlargehealth 4,plrdistwithin=40,plrusingaction=1:addvar=Zlargehealth 1,state=1,playertake,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfade​out=itemprompt
comunque devi aggiungere nelle condizione(ovvero la parte prima dei ' :' che in fpieditpad è rosso )il comando 'plrusingaction=1' in tutte le righe di script che hanno nelle azioni(i comandi dopo i : di colore blu ) il comando 'playertake'
 
Rispondi
#24
giusto per essere certo di aver capito bene tutte queste modifiche le devo fare nello script dell'entity il setuplevel lo lascio cosi' com'e'?

ora scarico fpieditpad credo mi tornera' utile
 
Rispondi
#25
il setuplevel non toccarlo modifica solo il main

scarica anche la traduzione dei comandi che ha fatto tax qui che è molto utile
 
Rispondi
#26
alla grande va! si puo' inserire un messaggio stessa cosa dell'altra pagina per le armi

ah! ho trovato un problema
come uso il medikit non parte il suono poi controllero' se cura comunque per ora non parte il suono come lo si utilizza
 
Rispondi
#27
devi usare la stessa struttura che ho aggiunto di la e cambiare la scritta in fpgcrawtext

il suono bho non so
 
Rispondi
#28
piccolo progresso

ho provato a modificare il tuo codice in questo

Citazione:;Ar;Artificial Intelligence Script

;Header By Tax78

desc = Health - var (for 5 health) and max 5 plrtake

;Triggers
:always:globalvar=Zlargehealth

Confusedtate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=10

Confusedtate=10,varless=Zlargehealth 4,plrdistwithin=40,plrusingaction=1:addvar=Zlargehealth 1,state=1,playertake,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt,fpgcrawtext=premi invio per raccogliere,state=2

Confusedtate=1,varequal=Zlargehealth 1Confusedtate=2
Confusedtate=1,varequal=Zlargehealth 2Confusedtate=3
Confusedtate=1,varequal=Zlargehealth 3Confusedtate=4
Confusedtate=1,varequal=Zlargehealth 4Confusedtate=5
Confusedtate=1,varequal=Zlargehealth 5Confusedtate=6

Confusedtate=2,varequal=Zlargehealth 0:etimerstart,state=20
Confusedtate=3,varequal=Zlargehealth 1:etimerstart,state=20
Confusedtate=4,varequal=Zlargehealth 2:etimerstart,state=20
Confusedtate=5,varequal=Zlargehealth 3:etimerstart,state=20
Confusedtate=6,varequal=Zlargehealth 4:etimerstart,state=20

Confusedtate=20,etimergreater=500:plraddhealth=100,plrsound=audiobank\items\healthup.wav,state=21

;End of Script


il messaggio appare dopo che premo invio per una frazione di secondo
quindi ora devo farlo apparire in prossimita' del medikit e farlo durare finche' il player e' li vicino o finche non preme invio

ho provato una cosa diversa e direi che potrebbe andare anche questa in alternativa

Citazione:Confusedtate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,​hudname=itemprompt,hudhide=1,hudmake=display,state=10

ho modificato questa stringa aggiungendo un immagine

gamecore\text\premiinvioperraccogliere.dds

e ho creato la scritta che volevo con paint.net si vede e scompare in maniera soddisfacente pero' solo dopo che prendo l'oggetto premendo invio xD

come devo fare per farla apparire prima

entrambe le soluzioni mi vanno bene script o hud l'importante e' ottenere la scritta
 
Rispondi
#29
aggiungi una riga cosi
Codice:
:state=10,varless=Zlargehealth 4,plrdistwithin=40:[tutti i fpgcrawtext]
dovrebbe andare
 
Rispondi
#30
mi sono dimenticato di inserire

Citazione:plrusingaction=1
nella prima parte delle condizioni [ non ricordo bene quali siano le condizioni e non ho capito di preciso dove incollarlo]
lo stesso vale per quest'altra parte sono un po' confuso sul da farsi non sono molto pratico di script e onestamente mi sento perso xD
Citazione:Confusedtate=10,varless=Zlargehealth 4,plrdistwithin=40:


ok incollo lo script che sto usando ora se hai tempo e posso chiedertelo me lo sistemeresti tu cosi' metto a confronto e vede un po' dove hai incollato


Citazione:;Ar;Artificial Intelligence Script

;Header By Tax78

desc = Health - var (for 5 health) and max 5 plrtake

;Triggers
:always:globalvar=Zlargehealth

Confusedtate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=10

Confusedtate=10,varless=Zlargehealth 4,plrdistwithin=40,plrusingaction=1:addvar=Zlargehealth 1,state=1,playertake,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt

plrusingaction=1


Confusedtate=1,varequal=Zlargehealth 1Confusedtate=2
Confusedtate=1,varequal=Zlargehealth 2Confusedtate=3
Confusedtate=1,varequal=Zlargehealth 3Confusedtate=4
Confusedtate=1,varequal=Zlargehealth 4Confusedtate=5
Confusedtate=1,varequal=Zlargehealth 5Confusedtate=6

Confusedtate=2,varequal=Zlargehealth 0:etimerstart,state=20
Confusedtate=3,varequal=Zlargehealth 1:etimerstart,state=20
Confusedtate=4,varequal=Zlargehealth 2:etimerstart,state=20
Confusedtate=5,varequal=Zlargehealth 3:etimerstart,state=20
Confusedtate=6,varequal=Zlargehealth 4:etimerstart,state=20

Confusedtate=20,etimergreater=500:plraddhealth=100,plrsound=audiobank\items\healthup.wav,state=21

;End of Script
 
Rispondi
  


Discussioni simili
Discussione Autore Risposte Letto Ultimo messaggio
Information Run system Tax78 7 1,658 26-03-2014, 10:52 AM
Ultimo messaggio: Tax78
Information Backpack system Tax78 20 3,141 12-02-2014, 05:19 PM
Ultimo messaggio: mew47
  Richiesta di modifica al backpack Alexb1096 7 1,257 08-07-2013, 07:56 PM
Ultimo messaggio: Alexb1096
  Money system? xlsheriklx 0 678 18-12-2012, 03:32 PM
Ultimo messaggio: xlsheriklx
Information Air system V.3 Tax78 33 2,961 21-09-2012, 02:41 PM
Ultimo messaggio: Tax78
  Nazi Zombie System Script per Fpsc X9 friskon 15 3,733 10-09-2012, 10:28 AM
Ultimo messaggio: ODTS
Information Jump level system V.2 Tax78 26 6,100 02-09-2012, 12:10 PM
Ultimo messaggio: Tax78
  water multiplayer system jirby 4 956 23-07-2012, 12:14 PM
Ultimo messaggio: jirby
Information New Cash system v.1.18 Tax78 4 1,421 29-06-2011, 11:55 PM
Ultimo messaggio: xlsheriklx
  [Richiesta] Script da applicare al trigger zone xlsheriklx 4 1,225 23-04-2011, 03:56 PM
Ultimo messaggio: Tax78

Vai al forum:


Browsing: 1 Ospite(i)