;Artificial Intelligence Script
;Header
desc = Total Serum Vials Collected (attach to trigger zone)
;Triggers
:state=0:dimvar=vials
:state=0:hudreset,hudx=14,hudy=90,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=6,huduservar=vials,hudname=foundvials,hudhide=0,hudmake=numeric
:state=0:hudreset,hudx=10,hudy=88,hudimagefine=gamecore\huds\serumvials.png,hudname=vialsimage,hudhide=0,hudmake=display
;End of Script
That's what I use to get it to appear on screen. Of course, you'll need to make your own image for it and edit it to your needs. I attach it to a trigger zone outside of the map and voila. You also need a script like theeesss
;Artificial Intelligence Script
;Header
desc = Pickup Serum Vial
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupserumvial.png,hudname=serumprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,plrsound=audiobank\user\babing.wav,hudshow=serumprompt,hudfadeout=serumprompt,addvar=vials 1
:state=1:rundecal=5
;End of Script
That's the script that adds 1 to the custom variable every time you pick up a serum vial. Hope that helps you out!
Edit: Forgot to mention that these scripts are only compatible with FPSC 1.18 or possibly Project Blue.
THIS IS A SIGNATURE. I swear.