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 / Text log script - almost working correctly...

Author
Message
Hamburger
15
Years of Service
User Offline
Joined: 23rd Jun 2009
Location: Grand Rapids MI
Posted: 23rd Dec 2010 02:22 Edited at: 23rd Dec 2010 02:24
I made this text log script a while ago and I got it sort of working. What it does is you assign it to an object's AIMAIN and when the player walks up to it there is a prompt that says download PDA data. Then when you press enter, you get a hud that covers the entire screen with the information. I have got it to work for the player to only view it one time, but I would like it for the player to be able to be able to view the PDA multiple times. Instead the screen prompt just keeps on fading in and out whenever I walk up to the entity after I view the log the first time, and when I try to press enter a second time (to view the text log again) it doesn't work. I have tried adding state=2 to the end of the script but I haven't managed to get it to work completely. You may need to test it to see what I mean.

I hope that I explained it clearly enough. Here is the code:



Please guys I need help on this...
BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 23rd Dec 2010 02:53 Edited at: 23rd Dec 2010 03:04
Try something like this:



This should get you on the right track.

Define your huds first, then you do your states. I did not use plrusingaction, but used scancodekeypressed=28 (which is the ENTER key). I set the script so the first hud comes up when they are in distance, but have to press ENTER to fade out the first hud and the second kicks in. You can change however you wish- I just wanted to get you on the right track.

As an example for you to show how to use multiple huds, I've attached a map script I use. I define the huds, then set it so once the player is in the zone, they can access the map anywhere in the level rather than just one location by pressing the M key. Feel free to modify/hack it to your needs if it comes in use for you.



- BlackFox

RPG Mod- Create a world full of adventure
Hamburger
15
Years of Service
User Offline
Joined: 23rd Jun 2009
Location: Grand Rapids MI
Posted: 23rd Dec 2010 04:16
Thanks Blackfox! I was really pulling my hair out there

Also thanks for the map script, that will come in handy too.

Login to post a reply

Server time is: 2025-06-04 21:11:23
Your offset time is: 2025-06-04 21:11:23