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 / The story zone is not active, but if i pick up a item, then the zone is active. How?

Author
Message
Gordeszkakerek forum
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location:
Posted: 17th Apr 2011 16:46
The story zone is not active, but if i pick up a item, then the zone is active. How can I make this?

I made my game
bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 18th Apr 2011 19:25
Variable make this possible. Post your scripts if you can.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 18th Apr 2011 23:23
By adding the item condition to the zone script.

In a normal zone, the condition is plrwithinzone.
Change the condition in the zone to plrwithinzone, activated=1 and add activate=1 to the item pickup.

Sounds right anyway.

For media, utilities and more...
Visit ExploSoft.com
Gordeszkakerek forum
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location:
Posted: 18th Apr 2011 23:29
I have no script yet, i will make this:

My idea: where the computer, there is a Triggerzone. The Triggerzone is only then active, if you have keycard: if player in this triggerzone(and have keycard),then destroy the storyzone.(and now,player can go to winzone)
But I don't know, how can I make this.

I made my game
Gordeszkakerek forum
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location:
Posted: 18th May 2011 14:42
Thank's for answer, more any idee based on the picture?

I made my game
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th May 2011 14:54
I can't remember off the top of my head, but do trigger zones have an "Use Key" parameter? If they do, you could use this feature. Type the name of the key card intot "Use Key".

You can then use a condition called "anykeywithinzone=1" which is true when the key named in the "Use Key" field is within the trigger zone.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 25th May 2011 12:30 Edited at: 25th May 2011 12:39
Ok I did a quick test using variables. It isn't very elegant but it works. You can see how I did it by downloading the .zip file attached to this post, just put the .fpm in your mapbank folder and copy the scripts into the 'user' folder within the scriptbank and it should run. All the media is stock I believe so everyone should be able to run it. Although I didn't know how to reset the level so I used the plraddhealth command to kill the player once the video played.

Here is a video of it in action:


the scripts:

This first script declared the variables I used and set them to their initial values.



This plays the video and kills the player unless the CameraOff variable is set to 1. The etimer was used because I was having trouble resetting the story zone. It's ugly but it works.


Checks to see if the code has been read, and if it has sets the camera variable to 1.


Sets the readCode variable to 1.

I hope this is the sort of thing you wanted.

Your sig has been redacted by...

Attachments

Login to view attachments
Gordeszkakerek forum
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location:
Posted: 3rd Jun 2011 17:39
OOOooh thank you very much for all! Nice!

I made my game

Login to post a reply

Server time is: 2024-11-24 08:55:52
Your offset time is: 2024-11-24 08:55:52