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 / EldestDragon's scripts, should be useful to you all.

Author
Message
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 9th May 2007 13:00 Edited at: 9th May 2007 13:17
Ok, first script:



Save this as plrinzoneactivateused2.fpi

Create a room with a remote door.
Put a triggerzone infront of the remote door, put Remote Door in it's if used section. Change it's main script to "plrinzoneactivateused2.fpi". Call it trigger1

Create a trigger zone on the other side of the room, (mark it with an entity or decal) give it "plrinzoneactivateused.fpi" and put the ifused as trigger1.
Put your player start marker in the room.
Test the level.

First walk to the door.... it won't open. Now walk to your second trigger zone
Now walk back to the door.

Voila, the door now opens.

This could be used in multiple ways, I hope you all find it useful.



Second script.
This stops the annoyance of it still saying "door locked, requires a key to open" when you actually have the key.



Open up doorkey.fpi and delete all the contents, then copy this into it.
Put a door(key) segment in your level.
Put a key entity in your level. (I hid it behind a door on which I'd used my first script to make it harder to open.)

First walk up to the locked door.
Then go and get the key.
Then walk up to it again and open it.


Variation:
Change the bottom line to:



Add another line at the bottom of the script:


Now the door will only open once(when you have the key) and then it will not let you open it again.



Hope these help.


E.D.


P.S. There are no restrictions on these..... licenses for simple scripts are just dumb.

Luke314pi
18
Years of Service
User Offline
Joined: 11th Apr 2006
Location: Minneapolis, MN
Posted: 9th May 2007 17:47
Thanks!

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 9th May 2007 18:01
Wow.... the guy who made Darkest Island likes my first three scripts *faints*

Thankyou!

E.D.

Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 10th May 2007 12:34
I was just gonna settle down to writing something very similar for a scripted event, so cheers for saving me the effort ED.

Will credit, and post any updates I make here.

Peas

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 10th May 2007 12:45
Wow thanks.

E.D.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 10th May 2007 17:44
Nice work, E.D.

Thanks. Very usefull indeed.

I'm sorry, my answers are limited. You must ask the right question.

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 10th May 2007 21:24
Wow... thanks for the great comments guys.

Are there any other scripts that would be useful?? I'm looking for a challenge..... .


E.D.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 10th May 2007 21:27
You could always work on the flying thing. We know how to go up and down, but no one has figured out a way (to my knowledge) to go forward and back yet.

Best.

I'm sorry, my answers are limited. You must ask the right question.

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 10th May 2007 21:36
Ok... time to find the file that works out player movement.
*double clicks on the fps creator folder*

Anything simpler for me to do quickly?.... I'm not a particularly focused person....YET.

E.D.

Slayer222
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: Wherever I feel like
Posted: 10th May 2007 22:32
how about a safe script that spawns the ifused? it could be a 5 number combo like 45665 yay!
*Slayer_2

EOT
[img][/img]
Check it out here: http://eliteops.piczo.com/?cr=6&rfm=y
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 10th May 2007 22:38 Edited at: 10th May 2007 22:54
View xplosys's profile and search for his threads.
It is obvious which thread you need.. (however I am suffering from short term memory loss and can't remember what it's called)
Then just put the IfUsed field of the keypad with his script as the name of the trigger zone using my script.

So I don't need to code that particular one... mwuhahahaha.

E.D.

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 11th May 2007 00:18
Eldest Dragon,

Greetings. Nice scripting. Greatly appreciated!

Thanks,

Seth Black

"...I'm sorry, could you repeat your question a little louder? I'm a trifle deaf in this ear."

- Willie Wonka
Slayer222
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: Wherever I feel like
Posted: 11th May 2007 01:11
I think your thinking of his DOOR code not a SAFE DOOR code.

EOT
[img][/img]
Check it out here: http://eliteops.piczo.com/?cr=6&rfm=y
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 11th May 2007 01:26
Quote: "iew xplosys's profile and search for his threads.
It is obvious which thread you need.. (however I am suffering from short term memory loss and can't remember what it's called)
Then just put the IfUsed field of the keypad with his script as the name of the trigger zone using my script."


Not to bring down xplosys's script, but mine will reset if you press the wrong number. The thread is around somewhere

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 11th May 2007 02:04
Mine was just a demonstration of the scancodekeypressed function. I was a little hyped by the possibilities and started making a bunch of scripts to see what it could do.

The reset is a good idea and I also added a timer function later on to reset the script if the player took too long between key presses or just stopped entering any.

Just "timerstart" after the first key press and then qualify each state with a "timergreater=" condition, allowing say 10 seconds per "state" or the script resets.

Best.

I'm sorry, my answers are limited. You must ask the right question.

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 11th May 2007 10:09
Airslide.... I think yours was just a demo video rather than the actual thread .
E.D.

tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 11th May 2007 23:00 Edited at: 11th May 2007 23:00
To my knowledge Ive got the furthest with the flying script(or what I called the UFO script) In my script you could move up and down, and rotate left and right, but I can't make the "associate with player" work with forwards and backwards.

Good luck ED

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 12th May 2007 10:09
Did you release that script?? I haven't found any player movement scripts around yet .

Thanks very much, I'm still learning the ropes of .fpi.


E.D.

tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 12th May 2007 14:15
yeah it seems that les horibles already knows how to do it. but search for UFO on this board and you'll find my thread.

Please don't post on it though as it's long dead and doesn't need a bump

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 12th May 2007 15:14
Don't worry I didn't.

Any.... umm.... easier, scripts for me to do??
I think flying would be a bit advanced for a 3rd script .

E.D.

tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 12th May 2007 20:25
Ok how about one that i heard someone wanted.

An object falls to the ground then teleports to the point it fell from and falls again.

if you make it fall into a tube or something. You could achieve a factory/converbelt effect.

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 12th May 2007 21:47
hmmm.... an entitymoveto command would be nice, but I'll try it.

E.D.

tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 12th May 2007 22:39
you could always make it so that it is destroyed when it falls down the tube, and is respawned at the top

MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 13th May 2007 09:55
Yeah .

I'll get onto it soon.

E.D.

tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 13th May 2007 12:40 Edited at: 13th May 2007 12:40
it shouldn't be to hardgood luck

Pus In Boots
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: S.M.I.L.E. industries
Posted: 26th May 2007 15:04
Quote: "Are there any other scripts that would be useful?? I'm looking for a challenge..... ."


If there isn't already a script for this, could you make one where entering a trigger zone displays a message, but only once? So if I entered the zone it could say "press space to jump" then I jump over the object, run down a long twisty corridor, then decide to backtrack, jump over the object and into the trigger zone, but no message.

Pointless example, but still...

Please sign here
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 26th May 2007 17:37
After you've shown the message, add the command state=10

then in state 10 put nothing.

E.D.

Pus In Boots
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: S.M.I.L.E. industries
Posted: 28th May 2007 22:51
thanks. I'm on it.

Please sign here
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jun 2007 17:11
Great scripts ED, could I possibly include them in the next update of my guide?


Search for "HellHouse" in Showcase.
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 2nd Jun 2007 17:31 Edited at: 2nd Jun 2007 17:36
WOOOOT I'm in Nickydude's guide. *faints*


Yes of course you may .

And you may want to look into my Trap scripts, they are in a showcase post entitled "screenies from my first fpsc game", which is by JTheMan.

E.D.

Login to post a reply

Server time is: 2024-11-23 18:06:57
Your offset time is: 2024-11-23 18:06:57