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
tate=0
ky=skybank\natural\Ngt
tate=0:music=audiobank\sound res3\sottofondo.wav,musicvolume=50,soundscale=25
tate=0:fog=0,fogred=0,foggreen=0,fogblue=0
tate=0:ambience=25,ambiencered=255,ambiencegreen=255,ambienceblue=255
tate=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\fader.tga,hudhide=1,hudtype=3,hudmake=internal
tate=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
tate=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
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar1.dds,hudname=health1,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar2.dds,hudname=health2,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar3.dds,hudname=health3,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar4.dds,hudname=health4,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar5.dds,hudname=health5,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar6.dds,hudname=health6,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar7.dds,hudname=health7,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar8.dds,hudname=health8,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar9.dds,hudname=health9,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar10.dds,hudname=health10,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar11.dds,hudname=health11,hudmake=display,hudhide=1
tate=0:hudreset,hudx=6,hudy=9,hudimage=languagebank\english\gamecore\huds\healthbar12.dds,hudname=health12,hudmake=display,hudhide=1
;Controllo Energia
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=0:hudreset,hudx=85,hudy=8,hudimage=gamecore\huds\ammo.tga,hudtype=3,hudmake=status
tate=0:hudreset,hudx=88,hudy=12,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=3,hudmake=numeric
;Controllo Suono
tate=1,plrhealthless=1000,plrhealthgreater=199
topsound=audiobank\music\Heartbeat.ogg
tate=1,plrhealthless=200,plrhealthgreater=1:loopsound=audiobank\music\Heartbeat.ogg
; Setup Game Menu
tate=0:hudreset,hudx=50,hudy=10,hudimage=gamecore\huds\Tax78\zaino\Tax78\menu.tga,hudname=gamemenutitle,hudhide=1,hudmake=display
tate=0:hudreset,hudx=50,hudy=40,hudimage=gamecore\huds\Tax78\zaino\Tax78\load game.tga,hudtype=2,hudname=loadgame,hudhide=1,hudmake=button
tate=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\Tax78\zaino\Tax78\save game.tga,hudtype=3,hudname=savegame,hudhide=1,hudmake=button
tate=0:hudreset,hudx=50,hudy=60,hudimage=gamecore\huds\Tax78\zaino\Tax78\exit.tga,hudtype=5,hudname=quitgame,hudhide=1,hudmake=button
tate=0:hudreset,hudx=50,hudy=50,hudimage=languagebank\english\gamecore\backdrops\basic\saving.tga,hudname=savingprompt,hudhide=1,hudmake=display
tate=0:hudreset,hudx=50,hudy=70,hudimage=gamecore\huds\Tax78\zaino\Tax78\return to game.tga,hudtype=4,hudname=returngame,hudhide=1,hudmake=button
tate=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\pointer.tga,hudname=pointer,hudhide=1,hudmake=pointer
; Main Game
tate=1,escapekeypressed=1:pausegame,state=2
tate=1,scancodekeypressed=197:pausegame,state=11
tate=1,scancodekeypressed=64:hudshow=savingprompt,quicksavegame,pausegame,state=21
tate=1,scancodekeypressed=67:quickloadgame,state=31
tate=11,scancodekeypressed=0
tate=12
tate=12,scancodekeypressed=197:resumegame,state=13
tate=13,scancodekeypressed=0
tate=1
tate=21,scancodekeypressed=0:hudunshow=savingprompt,resumegame,state=1
tate=31,scancodekeypressed=0
tate=1
; Game Menu
tate=2,escapekeypressed=0
tate=3
tate=3:hudshow=gamemenutitle,hudshow=loadgame,hudshow=savegame,hudshow=quitgame,hudshow=returngame,hudshow=pointer,state=4
tate=4,hudselectionmade=2:loadgame
tate=4,hudselectionmade=3
avegame,state=6
tate=4,hudselectionmade=5
tate=600
tate=4,hudselectionmade=4
tate=6
tate=4,escapekeypressed=1
tate=5
tate=5,escapekeypressed=0
tate=6
tate=6:hudunshow=gamemenutitle,hudunshow=loadgame,hudunshow=savegame,hudunshow=quitgame,hudunshow=returngame,hudunshow=pointer,resumegame,state=1
;------------------------------------------------------------BackPack By Tax78------------------------------------------------------------------------
;Setup global var
tate=0:dimvar=Zsmallhealth,dimvar=Zlargehealth
tate=0:dimvar=Zkey,dimvar=ZkeyA
tate=0:dimvar=ZkeyB,dimvar=ZkeyB
tate=0:dimvar=Zmap
tate=0:dimvar=Znv
:always:globalvar=Zsmallhealth,globalvar=Zlargehealth
:always:globalvar=Zkey,globalvar=ZkeyA
tate=0:dimvar=ZkeyB,dimvar=ZkeyB
:always:globalvar=Zmap
:always:globalvar=Znv
; Setup Backpack
tate=0:hudreset,hudx=50,hudy=10,hudimage=gamecore\huds\Tax78\zaino\menu\backpack.tga,hudname=backpack,hudhide=1,hudmake=display
tate=0:hudreset,hudx=25,hudy=90,hudimage=gamecore\huds\Tax78\zaino\menu\use.tga,hudtype=6,hudname=use,hudhide=1,hudmake=button
tate=0:hudreset,hudx=75,hudy=90,hudimage=gamecore\huds\Tax78\zaino\menu\drop.tga,hudtype=7,hudname=drop,hudhide=1,hudmake=button
tate=0:hudreset,hudx=50,hudy=80,hudimage=gamecore\huds\Tax78\zaino\menu\back.tga,hudtype=8,hudname=back,hudhide=1,hudmake=button
tate=0:hudreset,hudx=50,hudy=70,hudimage=gamecore\huds\Tax78\zaino\menu\returntogame.tga,hudtype=4,hudname=return game,hudhide=1,hudmake=button
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=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
tate=0:hudreset,hudx=30,hudy=60,hudimage=gamecore\huds\Tax78\zaino\scifi\key_1.dds,hudtype=10,hudname=key_1,hudhide=1,hudmake=button
tate=0:hudreset,hudx=40,hudy=60,hudimage=gamecore\huds\Tax78\zaino\scifi\key_2.dds,hudtype=13,hudname=key_2,hudhide=1,hudmake=button
tate=0:hudreset,hudx=50,hudy=60,hudimage=gamecore\huds\Tax78\zaino\oggettimiei\key_6.dds,hudtype=13,hudname=key_3,hudhide=1,hudmake=button
tate=0:hudreset,hudx=30,hudy=30,hudimage=gamecore\huds\Tax78\zaino\ww2\maps.dds,hudtype=11,hudname=maps,hudhide=1,hudmake=button
tate=0:hudreset,hudx=30,hudy=40,hudimage=gamecore\huds\Tax78\zaino\Tax78\nightvision.dds,hudtype=14,hudname=nightvision,hudhide=1,hudmake=button
tate=0
tate=1
;press "PgDn"(Zaino)(Backpack)
tate=1,keypressed=209 1:etimerstart,state=100,hideplrweapon
tate=100,etimergreater=1000,keypressed=209 0:pausegame,state=101
; Backpack Menu
tate=101:hudshow=backpack,hudshow=return game,hudshow=pointer,state=102
;Var=x = hudshow
tate=102,varequal=Zsmallhealth 1:hudshow=small_health_2
tate=102,varequal=Zsmallhealth 2:hudshow=small_health_2 x2
tate=102,varequal=Zsmallhealth 3:hudshow=small_health_2 x3
tate=102,varequal=Zsmallhealth 4:hudshow=small_health_2 x4
tate=102,varequal=Zsmallhealth 5:hudshow=small_health_2 x5
;-------------------------------------------------------------
tate=102,varequal=Zlargehealth 1:hudshow=large_health_1
tate=102,varequal=Zlargehealth 2:hudshow=large_health_1 x2
tate=102,varequal=Zlargehealth 3:hudshow=large_health_1 x3
tate=102,varequal=Zlargehealth 4:hudshow=large_health_1 x4
tate=102,varequal=Zlargehealth 5:hudshow=large_health_1 x5
;-------------------------------------------------------------
tate=102,varequal=Zkey 1:hudshow=key_1
tate=102,varequal=ZkeyA 1:hudshow=key_2
tate=102,varequal=ZkeyB 1:hudshow=key_3
;-------------------------------------------------------------
tate=102,varequal=Zmap 1:hudshow=maps
;-------------------------------------------------------------
tate=102,varequal=Znv 1:hudshow=nightvision
;-------------------------------------------------------------
; Attesa clik
tate=102,hudselectionmade=4
tate=300
;health 50
tate=102,vargreater=Zsmallhealth 1,hudselectionmade=9:hudshow=use,hudshow=back,hudunshow=return game,state=110
tate=110,hudselectionmade=6
ubvar=Zsmallhealth 1,state=300
tate=110,hudselectionmade=8:hudunshow=back,hudunshow=use,state=101
;key
tate=102,vargreater=Zkey 1,hudselectionmade=10:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=120
tate=120,hudselectionmade=6:addvar=Zkey 1,state=300
tate=120,hudselectionmade=7
ubvar=Zkey 1,state=500
tate=120,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;map
tate=102,vargreater=Zmap 1,hudselectionmade=11:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=130
tate=130,hudselectionmade=6:addvar=Zmap 1,state=300
tate=130,hudselectionmade=7
ubvar=Zmap 1,state=500
tate=130,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
;health 100
tate=102,vargreater=Zlargehealth 1,hudselectionmade=12:hudshow=use,hudshow=back,hudunshow=return game,state=140
tate=140,hudselectionmade=6
ubvar=Zlargehealth 1,state=300
tate=140,hudselectionmade=8:hudunshow=back,hudunshow=use,state=101
;keyA
tate=102,vargreater=ZkeyA 1,hudselectionmade=13:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=150
tate=150,hudselectionmade=6:addvar=ZkeyA 1,state=300
tate=150,hudselectionmade=7
ubvar=ZkeyA 1,state=500
tate=150,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;keyB
tate=102,vargreater=ZkeyB 1,hudselectionmade=13:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=150
tate=150,hudselectionmade=6:addvar=ZkeyA 1,state=300
tate=150,hudselectionmade=7
ubvar=ZkeyA 1,state=500
tate=150,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
;nightvision
tate=102,vargreater=Znv 1,hudselectionmade=14:hudshow=use,hudshow=back,hudshow=drop,hudunshow=return game,state=160
tate=160,hudselectionmade=6:addvar=Znv 1,state=300
tate=160,hudselectionmade=7
ubvar=Znv 1,state=500
tate=160,hudselectionmade=8:hudunshow=back,hudunshow=use,hudunshow=drop,state=101
;-------------------------------------------------------------------------------------------------------------------------------
; return to game or select use
tate=300:hudunshow=backpack,hudunshow=return game,hudunshow=pointer,hudunshow=use,hudunshow=drop,hudunshow=back
tate=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
tate=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
tate=300:hudunshow=key_1,hudunshow=key_2,hudunshow=key_3
tate=300:hudunshow=maps
tate=300:hudunshow=nightvision
tate=300:resumegame,etimerstart,state=301
tate=301,etimergreater=500
howplrweapon,state=1
; select drop
tate=500:hudunshow=use,hudunshow=drop,hudunshow=back
tate=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
tate=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
tate=500:hudunshow=key_1,hudunshow=key_2
tate=500:hudunshow=maps
tate=500:hudunshow=nightvision
tate=500,mousestate=0
tate=101
tate=600
etvar=Zsmallhealth 0,setvar=Zlargehealth 0
tate=600
etvar=Zkey 0,setvar=ZkeyA 0
tate=600
etvar=Zmap 0
tate=600
etvar=Znv 0
tate=600
etposteffect=none
tate=600:continuegame,destroy
QUI INVECE LO SCRIPT DELLA CHIAVE
;Artificial Intelligence Script
;Header
desc = Pickup Key - var
;Triggers
tate=0:globalvar=ZkeyB
tate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10
tate=10,plrdistwithin=40
tate=11,addvar=ZkeyB 1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=keyprompt,hudfadeout=keyprompt
tate=10,varequal=ZkeyB 1
tate=11,playertake,coloff
tate=11,varequal=ZkeyB 0:etimerstart,state=20
tate=20,etimergreater=500:plrsound=$1,playerdrop
tate=21,plrdistfurther=45
tate=10
;End of Script
QUI LO SCRIPT DELLA PORTA
;Artificial Intelligence Script
;Header
desc = Key Door (Open 'With Key' and Close) - var
;Triggers
tate=0:globalvar=ZkeyB
tate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\lockeddoor.tga,hudname=keydoorprompt,hudhide=1,hudmake=display,state=10
tate=10,plrdistwithin=60:hudshow=keydoorprompt,hudfadeout=keydoorprompt
tate=10,plrdistfurther=61,varequal=ZkeyB 2
tate=10,subvar=ZkeyA 1
tate=10,plrdistwithin=60,varequal=ZkeyB 2
tate=11,etimerstart
tate=11,etimergreater=500
tate=1,setframe=0,sound=$0
tate=1:incframe=0
tate=1,frameatend=0
tate=2,coloff,subvar=ZkeyA 1
tate=2,plrdistfurther=60
tate=3,sound=$1,colon
tate=3:decframe=0
tate=3,frameatstart=0
tate=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