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 / Best approach to tell story in images?

Author
Message
TPO
16
Years of Service
User Offline
Joined: 31st Mar 2008
Location: Netherlands
Posted: 3rd Apr 2008 18:42
Hi all,

I am experimenting with scripts.
What I want to achieve:
A player walks into a zone and that triggers the display of an image. The game pauses during display.
The user can read the text on it. When the user clicks the left mouse the image disappears and the game goes on.

I have tried it with a Story Zone. Using that I am not able to show the image until mouse press. It flashes within 1 second in and out.
I can make an avi showing the same image for 10 seconds or something. But I think there should be a more clever way of doing this.
I've tried using a trigger zone. However, I didn't manage to figure out how to display an image and to capture a mouse press.
I think huds might do the trick. But then again, how do you pause the game while showing the image and how do you capture the mouse press?

Any insight would be appreciated.

Thanks.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Apr 2008 09:48
There are many ways you could go about doing this.

Here are a few that I came up with off the top of my head:

1) This is the most common way: Display a HUD and at the bottom of your HUD show some text saying "Press ENTER to close" or something like that. Then in your script detect for the plrusingaction and if they are, then unshow the HUD.

2) Not so common way: Make an avi as you suggested. Play the avi using a story zone. (I don't recommend doing this for single image stuff, not to mention that the avi will take up WAY more space than an image will)

3) Never done method: Download my scripting Mod, learn how to utilize the variables, and set up a pseudo-inventory system. Now edit the setuplevel.fpi, in the section that says "Game Menu" (this is the Pause Menu in-game). Add in a button HUD that you'll code to show the user the LAST piece of story information that they grabbed.


Like I said, you could do this many different ways. The easiest to pull off would be the first one mentioned... then subsequently it'll get harder.


Have fun!


The one and only,
~PlystirE~

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 4th Apr 2008 20:18
Quote: "Never done method: Download my scripting Mod, learn how to utilize the variables, and set up a pseudo-inventory system. Now edit the setuplevel.fpi, in the section that says "Game Menu" (this is the Pause Menu in-game). Add in a button HUD that you'll code to show the user the LAST piece of story information that they grabbed."


Hey, now there's an idea, an extra button/menu on the start screen that will play an .avi, like a story for example.

Login to post a reply

Server time is: 2024-11-24 07:41:08
Your offset time is: 2024-11-24 07:41:08