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 / Pick up disk / dossier, THEN see avi in story zone?

Author
Message
MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 18th Oct 2008 04:02
Hi,

I'm betting that for most avid scripters here this is simple, however I'm not sure how to do this:

I would like that if the main character picks up a disk or dossier and then walks up to a computer (I use a trigger zone for this, but perhaps theres a better way to trigger a video with an object as well?) he sees the contents of that disk or file in the avi (I make the videos like they come of a computer in the game).

So in short I'd need to have the trigger script check if you have this item. Is there an easy way to do this?

Thanks in advance!


amigacam.net.tc
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Oct 2008 10:02
Well, the less painful way (And MAYBE cleaner) would be to have your pickup script for the disk set a global variable to 1 after the player picks it up. (Make sure this variable isn't being used by any other scripts except your trigger zone and the disk script)

Now, you'll need to make a new story zone script... just copy and paste the one that the storyzone already uses and edit the copy. In the line that checks if the player is in the zone, have it also check the global variable for a value of 1. If the variable is set to 1, then you can be pretty sure that the player has picked up the disk and can therefore play the video.


The NON-variable way would be to make a NEW story zone marker and edit it's FPE file to have a "UseKey" property set to the name of your disk. Then make a new story zone script and have it also check for a "HaveKey=1".


There you are... in a nutshell that's how to do it.

If you are unfamiliar with scripting with variables or creating new marker entities or ANYthing above... I suggest that you read my tutorial on using the V109 variables (unless you're using Ply's Mod, in which case there is no tutorial for those variables and I suggest you learn scripting front and back for using the Mod anyways) and look around the boards a little bit for any other info you may be confused about.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 18th Oct 2008 11:44
Hi there again!

I made a Story Zone edit with this included:

;AIKey (plrhaskey=1)
usekey = %key

And named it Story ZoneKey.fpe and placed it in markers_ in the entity bank, however when I open FPSC it doesn't see that zone in the list so I can't add it. I also tried replacing the heal zone (since I don't use that one) with my edited story zone marker, but that won't work either.

How can I add a marker to use?

Thanks in advance!


amigacam.net.tc
MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 19th Oct 2008 14:19
When all else fails I could always make a disk a key for a room, is that possible?

I think it should be right?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Oct 2008 11:17
Yes, that would certainly work


Also, I believe in order for any entity to be recognized in the entity library, it needs to have a unique "desc" in it's FPE file... (Someone correct me if this is false... cause I can't exactly test it right now )


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.

Login to post a reply

Server time is: 2024-11-24 13:47:26
Your offset time is: 2024-11-24 13:47:26