Well, I've taken enough from everyone here, so I figured it's time I give something back. This will be included in my upcoming level design tutorial, but why wait to share goodness with you guys?
The following script will allow you to have more than 1 HUD when you approach an object. The first time you approach the object, it will display a hud (a message, perhaps, informing you to do a specific task with detail). Each additional time you approach the object, a second HUD displays (telling you the information hasn't changed, for example).
; Artificial Intelligence
; Written by Leon Kennedy
; Based on a script found in the Official Community Guide
desc = Multiple HUDs to display
; Triggers
:state=0:hudreset,hudx=5,hudy=5,hudimage=gamecore\huds\yourhudimage.tga,hudname=yourhudname,hudhide=1,hudmake=display
:state=0:hudreset,hudx=5,hudy=5,hudimage=gamecore\huds\yourhudimage2.tga,hudname=yourhudname2,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=50:hudshow=yourhudimage,state=2
:state=1,plrdistfurther=51:hudunshow=yourhudimage
:state=1:hudunshow=yourhudimage2
:state=2,plrdistfurther=51:hudunshow=yourhudimage,state=3
:state=2:hudunshow=yourhudimage2
:state=3,plrdistwithin=50:hudshow=yourhudimage2
:state=3,plrdistfurther=51:hudunshow=yourhudimage2
:state=3:hudunshow=yourhudimage
Obviously, substitute your own hud for
yourhudimage and
yourhudimage2, and then name appropriately.
Enjoy!
Priest of the Church of Joe Wood