CODE |
ec1PROGRAM:ZCH \\code for other checks :If sub(Str1, T-16,1)="(omega) \\if person is in front of you :Then :prgmZTALK \\what to say :ClrHome :Pause Ans \\Obviously this is not very pretty, that's your job :p. You can use the arrow keys to scroll if the text goes beyond the screen boundries. :Output(1,1,Str1 \\returns screen to normal :Endc2 |
CODE |
ec1PROGRAM:ZTALK :If L=1:Then :If M=1:Then :If T=56:"What are you doing in my house? :If T=92:"Hello, did you see what happened yesterday on the news? :End:End \\this example is kind of vauge, however it checks for your exact location then saves the corresponding text to the Ans variable. If there is only one person on the screen, you can leave out the "If T=#" part. c2 |
CODE |
ec1:While 1 :For(I,1,0,-1 :real(1,Spr_X,Spr_Y,Spr_Width,SprHeight,sPIC_Num,sPIC_X,sPIC_Y,Spr_Method,Spr_Flip,I :End :Repeat Ans :getkey->K :End :A+(Ans=24)-(Ans=26->A:B-(K=25)+(K=34->B :Endc2 |
QUOTE (xlibman @ Aug 14 2006, 11:42 AM) |
fyi the reason why i had the getkey in a repeart or while loop is because i used grayscale in the routine, which looked crappy without the loop |