ok i have 2 litle problems with my scripts
the first one i have iff i pick up something like 2 medkit´s
Press F1 and i youse all medkits at the same time
you can only pickup max 3 per item thats ok... but iff i have pick up 3 and youse theam (than i have 0 in inventory) i cant pick up anymore why ?
heres the script thats makes you hungry and animited health
;Artificial Intelligence Script
;Header
desc = Hunger Durst gesundheit
;Triggers
;///HUDFine
;lebenhuds
:state=0:hudreset,hudx=95,hudy=70,hudimagefine=gamecore\huds\Norilsk\Hunger\leben1.dds,hudname=health1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=70,hudimagefine=gamecore\huds\Norilsk\Hunger\leben2.dds,hudname=health2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=70,hudimagefine=gamecore\huds\Norilsk\Hunger\leben3.dds,hudname=health3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=70,hudimagefine=gamecore\huds\Norilsk\Hunger\leben4.dds,hudname=health4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=70,hudimagefine=gamecore\huds\Norilsk\Hunger\leben5.dds,hudname=health5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=70,hudimagefine=gamecore\huds\Norilsk\Hunger\leben6.dds,hudname=health6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=70,hudimagefine=gamecore\huds\Norilsk\Hunger\leben7.dds,hudname=health7,hudhide=1,hudmake=display
;Hungerhuds
:state=0:hudreset,hudx=95,hudy=90,hudimagefine=gamecore\huds\Norilsk\Hunger\hunger1.dds,hudname=Hunger1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=90,hudimagefine=gamecore\huds\Norilsk\Hunger\hunger2.dds,hudname=Hunger2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=90,hudimagefine=gamecore\huds\Norilsk\Hunger\hunger3.dds,hudname=Hunger3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=90,hudimagefine=gamecore\huds\Norilsk\Hunger\hunger4.dds,hudname=Hunger4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=90,hudimagefine=gamecore\huds\Norilsk\Hunger\hunger5.dds,hudname=Hunger5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=90,hudimagefine=gamecore\huds\Norilsk\Hunger\hunger6.dds,hudname=Hunger6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=90,hudimagefine=gamecore\huds\Norilsk\Hunger\hunger7.dds,hudname=Hunger7,hudhide=1,hudmake=display
;Dursthuds
:state=0:hudreset,hudx=95,hudy=80,hudimagefine=gamecore\huds\Norilsk\Hunger\durst1.dds,hudname=durst1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=80,hudimagefine=gamecore\huds\Norilsk\Hunger\durst2.dds,hudname=durst2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=80,hudimagefine=gamecore\huds\Norilsk\Hunger\durst3.dds,hudname=durst3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=80,hudimagefine=gamecore\huds\Norilsk\Hunger\durst4.dds,hudname=durst4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=80,hudimagefine=gamecore\huds\Norilsk\Hunger\durst5.dds,hudname=durst5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=80,hudimagefine=gamecore\huds\Norilsk\Hunger\durst6.dds,hudname=durst6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=80,hudimagefine=gamecore\huds\Norilsk\Hunger\durst7.dds,hudname=durst7,hudhide=1,hudmake=display
;infecthuds
:state=0:hudreset,hudx=95,hudy=60,hudimagefine=gamecore\huds\Norilsk\Hunger\infect1.dds,hudname=infect1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=60,hudimagefine=gamecore\huds\Norilsk\Hunger\infect2.dds,hudname=infect2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=60,hudimagefine=gamecore\huds\Norilsk\Hunger\infect3.dds,hudname=infect3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=60,hudimagefine=gamecore\huds\Norilsk\Hunger\infect4.dds,hudname=infect4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=60,hudimagefine=gamecore\huds\Norilsk\Hunger\infect5.dds,hudname=infect5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=60,hudimagefine=gamecore\huds\Norilsk\Hunger\infect6.dds,hudname=infect6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=60,hudimagefine=gamecore\huds\Norilsk\Hunger\infect7.dds,hudname=infect7,hudhide=1,hudmake=display
;Variables
:state=0:dimvar=hunger,dimvar=durst,dimvar=infect,dimvar=inventarhunger,dimvar=inventardurst,dimvar=inventarinfect,dimvar=inventarleben
:state=0:setvar=hunger 0,setvar=durst 0,setvar=infect 0,setvar=inventarhunger 0,setvar=inventardurst 0,setvar=inventarinfect 0,setvar=inventarleben 0,state=1
;timer
:state=1:etimerstart,state=2
:state=2,etimergreater=30000:addvar=hunger 1,addvar=durst 1,state=1
;Die
:always,varequal=hunger 30:plraddhealth=-500,setvar=hunger 0,state=0
:always,varequal=durst 20:plraddhealth=-500,setvar=durst 0,state=0
:always,varequal=Infect 20:plraddhealth=-500,setvar=infect 0,state=0
;///HUDSHOW
;lebenhuds
:always,plrhealthgreater=149:hudreset,hudshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7
:always,plrhealthless=150,plrhealthgreater=120:hudreset,hudunshow=health1,hudshow=health2,hudunshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7
:always,plrhealthless=120,plrhealthgreater=70:hudreset,hudunshow=health1,hudunshow=health2,hudshow=health3,hudunshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7
:always,plrhealthless=70,plrhealthgreater=40:hudreset,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudshow=health4,hudunshow=health5,hudunshow=health6,hudunshow=health7
:always,plrhealthless=40,plrhealthgreater=10:hudreset,hudunshow=health1,hudunshow=health2,hudunshow=health3,hudunshow=health4,hudshow=health5,hudunshow=health6,hudunshow=health7
Than i here´s the backpack script iff you pickup something press F1 for medkit press F2 to eat and so on
;Artificial Intelligence Script
;Header
desc = inventar
;Triggers
;///HUDFine
;inventarlebenhuds
:state=0:hudreset,hudx=95,hudy=72,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarleben1.dds,hudname=inventarleben1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=72,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarleben2.dds,hudname=inventarleben2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=72,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarleben3.dds,hudname=inventarleben3,hudhide=1,hudmake=display
;inventarHungerhuds
:state=0:hudreset,hudx=95,hudy=92,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarhunger1.dds,hudname=inventarHunger1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=92,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarhunger2.dds,hudname=inventarHunger2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=92,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarhunger3.dds,hudname=inventarHunger3,hudhide=1,hudmake=display
;invetarDursthuds
:state=0:hudreset,hudx=95,hudy=82,hudimagefine=gamecore\huds\Norilsk\Hunger\inventardurst1.dds,hudname=inventardurst1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=82,hudimagefine=gamecore\huds\Norilsk\Hunger\inventardurst2.dds,hudname=inventardurst2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=82,hudimagefine=gamecore\huds\Norilsk\Hunger\inventardurst3.dds,hudname=inventardurst3,hudhide=1,hudmake=display
;inventarinfecthuds
:state=0:hudreset,hudx=95,hudy=62,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarinfect1.dds,hudname=inventarinfect1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=62,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarinfect2.dds,hudname=inventarinfect2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=95,hudy=62,hudimagefine=gamecore\huds\Norilsk\Hunger\inventarinfect3.dds,hudname=inventarinfect3,hudhide=1,hudmake=display
;Variables
:state=0:dimvar=hunger,dimvar=durst,dimvar=infect,dimvar=inventarhunger,dimvar=inventardurst,dimvar=inventarinfect,dimvar=inventarleben
:state=0:setvar=hunger 0,setvar=durst 0,setvar=infect 0,setvar=inventarhunger 0,setvar=inventardurst 0,setvar=inventarinfect 0,setvar=inventarleben 0,state=1
;///INVENTAR
:state=0:dimvar=hunger,dimvar=durst,dimvar=infect,dimvar=inventarhunger,dimvar=inventardurst,dimvar=inventarinfect,dimvar=inventarleben
:state=0:setvar=hunger 0,setvar=durst 0,setvar=infect 0,setvar=inventarhunger 0,setvar=inventardurst 0,setvar=inventarinfect 0,setvar=inventarleben 0,state=1
:state=1,varequal=inventarleben 1:state=21
:state=1,varequal=inventarleben 2:state=22
:state=1,varequal=inventarleben 3:state=23
:state=1,varequal=inventardurst 1:state=30
:state=1,varequal=inventardurst 2:state=30
:state=1,varequal=inventardurst 3:state=30
:state=1,varequal=inventarhunger 1:state=40
:state=1,varequal=inventarhunger 2:state=40
:state=1,varequal=inventarhunger 3:state=40
:state=1,varequal=inventarinfect 1:state=50
:state=1,varequal=inventarinfect 2:state=50
:state=1,varequal=inventarinfect 3:state=50
:state=21,scancodekeypressed=59:state=24
:state=22,scancodekeypressed=59:state=24
:state=23,scancodekeypressed=59:state=24
:state=24:subvar=inventarleben 1,plraddhealth=50,state=60
:state=25:setvar=inventarleben 1,plraddhealth=50,state=60
:state=26:setvar=inventarleben 2,plraddhealth=50,state=60
:state=30,scancodekeypressed=60:incvar=inventardurst 0,setvar=durst 0,plraddhealth=20,state=60
:state=40,scancodekeypressed=61:incvar=inventarhunger 0,setvar=hunger 0,plraddhealth=30,state=60
:state=50,scancodekeypressed=62:incvar=inventarinfect 0,setvar=infect 0,plraddhealth=40,state=60
:state=60:etimerstart,state=2
:state=2,etimergreater=10:state=1
;///HUDSHOW
;inventarhuds
:always,varequal=inventarhunger 0:hudreset,hudunshow=inventarhunger1,hudunshow=inventarhunger2,hudunshow=inventarhunger3
:always,varequal=inventarhunger 1:hudreset,hudshow=inventarhunger1,hudunshow=inventarhunger2,hudunshow=inventarhunger3
:always,varequal=inventarhunger 2:hudreset,hudunshow=inventarhunger1,hudshow=inventarhunger2,hudunshow=inventarhunger3
:always,varequal=inventarhunger 3:hudreset,hudunshow=inventarhunger1,hudunshow=inventarhunger2,hudshow=inventarhunger3
:always,varequal=inventarinfect 0:hudreset,hudunshow=inventarinfect1,hudunshow=inventarinfect2,hudunshow=inventarinfect3
:always,varequal=inventarinfect 1:hudreset,hudshow=inventarinfect1,hudunshow=inventarinfect2,hudunshow=inventarinfect3
:always,varequal=inventarinfect 2:hudreset,hudunshow=inventarinfect1,hudshow=inventarinfect2,hudunshow=inventarinfect3
:always,varequal=inventarinfect 3:hudreset,hudunshow=inventarinfect1,hudunshow=inventarinfect2,hudshow=inventarinfect3
:always,varequal=inventardurst 0:hudreset,hudunshow=inventardurst1,hudunshow=inventardurst2,hudunshow=inventardurst3
:always,varequal=inventardurst 1:hudreset,hudshow=inventardurst1,hudunshow=inventardurst2,hudunshow=inventardurst3
:always,varequal=inventardurst 2:hudreset,hudunshow=inventardurst1,hudshow=inventardurst2,hudunshow=inventardurst3
:always,varequal=inventardurst 3:hudreset,hudunshow=inventardurst1,hudunshow=inventardurst2,hudshow=inventardurst3
:always,varequal=inventarleben 0:hudreset,hudunshow=inventarleben1,hudunshow=inventarleben2,hudunshow=inventarleben3
:always,varequal=inventarleben 1:hudreset,hudshow=inventarleben1,hudunshow=inventarleben2,hudunshow=inventarleben3
:always,varequal=inventarleben 2:hudreset,hudunshow=inventarleben1,hudshow=inventarleben2,hudunshow=inventarleben3
:always,varequal=inventarleben 3:hudreset,hudunshow=inventarleben1,hudunshow=inventarleben2,hudshow=inventarleben3
and the pickup script for food
;Artificial Intelligence Script
;Header
desc = Essen
;Triggers
:state=0:dimvar=inventarhunger,dimvar=inventardurst,dimvar=inventarinfect,dimvar=inventarleben
:state=0,cantake,plrdistwithin=80:state=1
:state=1,varequal=inventarhunger 0,state=2
:state=1,varequal=inventarhunger 1,state=3
:state=1,varequal=inventarhunger 2,state=4
:state=1,varequal=inventarhunger 3,state=5
:state=2:setvar=inventarhunger 1,playertake
:state=3:setvar=inventarhunger 2,playertake
:state=4:setvar=inventarhunger 3,playertake
;End of Script
[EDIT]
uploaded the uds so you can test it and sry for my very very bad english
Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.