I just created this simple script to display a fake chat text. But I wonder if I could make it a bit more "diet". For instance, do I have to put the font-name, position, etc, for all text? They will always show in order, so I guess I could put those things on the top and just ignore for the rest? Or not?
Here's the code so far:
;Artificial Intelligence Script
;created with TextEase
;Header
;desc =on screen text
;Triggers
:state=0:state=1
;DISPLAY THE TEXT
:state=1,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=CHAT TERM 8340,state=2,timerstart
:state=2,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=CHAT TERM 8340
:state=2,timergreater=1500:state=3
:state=2,plrdistfurther=60:state=0
:state=3,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=STARTING UP
:state=3,timergreater=2500:state=4
:state=3,plrdistfurther=60:state=0
:state=4,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=STARTING UP.
:state=4,timergreater=3600:state=5
:state=4,plrdistfurther=60:state=0
:state=5,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=STARTING UP..
:state=5,timergreater=4800:state=6
:state=5,plrdistfurther=60:state=0
:state=6,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=STARTING UP...
:state=6,timergreater=5900:state=7
:state=6,plrdistfurther=60:state=0
:state=7,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=- Finally. We meet again... (hit RETURN)
:state=7,scancodekeypressed=28:state=8,timerstart
:state=7,plrdistfurther=60:state=0
:state=8,timergreater=250:state=9
:state=9,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=> Who are you? Where am I? Wait! Who am I?!
:state=9,scancodekeypressed=28:state=10,timerstart
:state=9,plrdistfurther=60:state=0
:state=10,timergreater=250:state=11
:state=11,plrdistwithin=60:fpgcrawtextsize=28,fpgcrawtextfont=Courier New,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=- I'm the System Operator. I'm here to help you out.
:state=11,scancodekeypressed=28:state=12,timerstart
:state=11,plrdistfurther=60:state=0
:state=12,timergreater=250:state=13
:state=13,plrdistfurther=60:state=0
;End of Script
Thanks for any advice.
www.William-K.com
www.Wusik.com