Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / modified text on screen script

Author
Message
JTheMan
18
Years of Service
User Offline
Joined: 6th Jul 2006
Location:
Posted: 1st Jul 2007 19:49
I tried to search the forums for this, couldn't find any. So I tested a little and finally got it right. This is basically the same stock textonscreen.fpi, but it'll show message in screen only once.

Here's the script :

;Artificial Intelligence Script

;Header

desc = Show message in HUD only once
;Triggers

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\yourimage.tga,hudname=yourhud,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:hudshow=yourhud,state=2
:state=2,plrwithinzone=0:hudunshow=yourhud,state=1,hudhide=1,destroy


;End of Script


I only added line hudhide=1,destroy. That did the trick.

Just place trigger zone in front of a door, replace main AI with this script and it should work. Hope this helps, and if it does, have fun!

Attachments

Login to view attachments
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 1st Jul 2007 21:20 Edited at: 1st Jul 2007 21:21
I made this one. It is a bit different from yours




All the free PCF Productions Stuff
TEST OF WILL
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 3rd Jul 2007 08:39
Read My tutorial explains everything!

JTheMan
18
Years of Service
User Offline
Joined: 6th Jul 2006
Location:
Posted: 3rd Jul 2007 12:14
Quote: "Read My tutorial explains everything!
"


Would be helpful, if you gave the link to this tutorial.
TEST OF WILL
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 4th Jul 2007 06:35
Quote: "
Would be helpful, if you gave the link to this tutorial."


oh sorry

Everything you ever wanted to know about HUDS or TEXT!

JTheMan
18
Years of Service
User Offline
Joined: 6th Jul 2006
Location:
Posted: 4th Jul 2007 11:07
Good tutorial, but it didn't explain how to destroy image after you've seen it once. So I guess it don't explain everything. Although nice job!
TEST OF WILL
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 4th Jul 2007 19:56
Forgot that I will add that to make it only appear once in your trigger zone just remove something just find the line




remove destroy and state 1 so it will look like



should work and I will add this to my tutorial

Login to post a reply

Server time is: 2024-11-23 18:40:01
Your offset time is: 2024-11-23 18:40:01