Referring to your second script. I can first direct you to
this post (displaying a hud via key). Your syntax is all mixed up in your script. You should define your huds in the beginning, then code the rest of your script next.
One thing to note about your huds- your "hudimagefine" may need to have more than just the "rs\Parent\Documents...". In other words, you either need to specify "gamecore\huds\..." or "languagebank\english\gamecore\huds\...". For example, I use "languagebank\english\gamecore\NorthernFox\GAMENAME\huds" and place all my huds in that location. Also I am not fond of spaces in a file name. I realize that most systems don't care, but for troubleshooting purposes, you may want to consider replacing a space with the "_" (underscore) key. Like this:
press_enter_to_talk_(horror).jpg
You may want to consider either using PNG, TGA, or DDS for your hud images, particularly if you are wanting to have transparency.
On to your script. I took the liberty of rewriting it to give you an example of how to lay out a script so you can easily spot any issues or errors. Here is the layout now:
;Artificial Intelligence Script
;Header
desc = objectives for deserted island level 1
;Triggers
:state=0:hudreset,hudx=20,hudy=50,hudimagefine=rs\Parent\Documents\fpsc\HUDS\press enter to talk (horror).jpg,hudname=pressentertotalk,hudhide=1,hudmake=display
:state=0:hudreset,hudx=20,hudy=50,hudimagefine=rs\Parent\Documents\fpsc\HUDS\kill or zombies (horror).jpg,hudname=killallzombies,hudhide=1,hudmake=display
:state=0:state=1
:state=1,plrdistwithin=70:state=2
:state=2:hudshow=pressentertotalk,etimerstart,state=3
:state=3,etimergreater=500,scancodekeypressed=28:hudunshow=pressentertotalk,etimerstart,state=4
:state=4,etimergreater=500:state=5
:state=5:hudshow=killallzombies,etimerstart,state=6
:state=6,etimergreater=5000:hudunshow=killallzombies,state=7
:state=7:none
;End of Script
The breakdown is as follows:
* huds defined in the first two lines. Notice I use a "state=0:state=1" line. This way if I want to define more huds, I can just add the hud lines easily.
* Player is within distance of 70 units and the script goes to the next part.
* First hud is shown. When the player presses the ENTER key, the hud disappears.
* Second hud is shown for a duration of 5 seconds (state=6 line) and then it too disappears.
* The script terminates. If you want it to loop, you can do so by modifying the end like so:
:state=7,plrdistfurther=80:state=1
Hopefully this will help get you in the right direction.
Twitter: @NFoxMedia