Yup, here's how I have used it ( Seth, I don't mean to take anything away from you succinct answer
):
Quote: ";Artificial Intelligence Script
;Header
desc = l1d5
;Triggers
:plrcanbeseen:rotatetoplr
:state=0:hudreset,hudx=38,hudy=4,hudimagefine=dialogtofjane.png,hudname=assistant,hudhide=1,hudmake=display
:state=0:hudreset,hudx=38,hudy=4,hudimagefine=dialogtofjames.png,hudname=plyrname5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=38,hudy=8,hudimagefine=dialogtofl1d1_j.png,hudname=l1d1_j,hudhide=1,hudmake=display
. . .
:state=55:rotatetoplr
:state=55,plrdistwithin=90:state=56
:state=56,plrdistwithin=90:hudshow=plyrname5,hudshow=l1d6_j
:state=56,plrdistwithin=90,plrusingaction=1:timerstart,state=57,hudunshow=l1d6_j,hudunshow=plyrname5
:state=57,timergreater=500:state=75
:state=75:rotatetoplr,activateifused=1,state=100
:state=100:runfpi=tof\l1d5a.fpi
;End of Script
"
You actually use the path and name of the fpi script in place of the "X". The path begins within the "scriptbank" folder.
Now with variables this can be even more powerful. Depending on the value of a variable you can run a particular script that is unique to the situation.
** We are not Alone **