Hey all,
i have made my first script,
it is a medkit script and took about 1hour to make with it being my first one and all(lots of mistakes),
comes with sound.
and if i don't say so myself it is a pretty good script.
;Artificial Intelligence Script
;Header
desc = medkit
;Triggers
:plrdistwithin=70,scancodekeypressed=33:plraddhealth=1,plrsound=audiobank\items\healthup.wav
;End of Script
Copy and paste into fpi edipad or notepad and save as (example.fpi)
you need to press and hold "f" to get health.
if someone could tell me away to show text on the screeen via sript could you tell me please.
enjoy
EDIT:
i have upgraded the script to say press f to use,
;Artificial Intelligence Script
;Header
desc = medkit
;Triggers
:plrdistwithin=70,scancodekeypressed=33:plraddhealth=1,plrsound=audiobank\items\healthup.wav
:plrdistwithin=70:fpgcrawtext=press F to use,fpgcrawtextg=100,fpgcrawtextb=100
;End of Script
and made and "you need health" script
;Artificial Intelligence Script
;Header
desc = text (trial and error
;Triggers
:plrdistwithin=70,plrhealthless=200:fpgcrawtextsize=18,fpgcrawtext=you need health,fpgcrawtextg=100,fpgcrawtextb=100,plrsound=audiobank/zombie_apocalypse/malemoan2.wav
:plrdistwithin=70,plrhealthless=70:fpgcrawtext=medkit over there on the wall!,fpgcrawtextsize=20,fpgcrawtextb=100,fpgcrawtextg=100
;End of Script
this is best used with starting health 300,
hope this helps alot
Edit 2:i have made minor changes to "you need health" script as seen below
;Artificial Intelligence Script
;Header
desc = text (trial and error
;Triggers
:plrdistwithin=0,plrhealthless=200:fpgcrawtextsize=18,fpgcrawtext=you need health,fpgcrawtextg=100,fpgcrawtextb=100
:plrdistwithin=0,plrhealthless=70:fpgcrawtext=You need some health! go find a medkit or health pick up!,fpgcrawtextsize=20,fpgcrawtextb=100,fpgcrawtextg=100
;End of Script
''Make sure your hands are clean before you point the finger''