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 / "Amnesia-style" levels system

Author
Message
jaropolk14
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 17th Aug 2011 20:53 Edited at: 17th Aug 2011 21:11
This is a script pack for a game in which we can freely move between levels and each level can have multiple entrances. Download attached (scripts and readme file). Unzip it into your "Scriptbank" foder and have fun)

--------
Working principle of script is based on variable which value changes any particular time player leaves the level.
While new level is loading, player emerges on normal start point (best of all - room of one cell and without any lightsources), where also locates teleport trigger, which checks value of variable and relocates player into corresponding point. Not the best soluton, I know, but it works on "clear" FPSC 1.18
for sure.

What to do (for each given level):
1. Set player's start point "somewhere".
2. Set trigger-zone with script "startpoint" over the start point.
3. Set trigger-zones around level, this will be "entrance points", name it SPх (where х - number entrance point equal to previous level number);
4. Set trigger-zones around level, this will be "exit points", assign scripts from folder "levels" to it
(for example, for exit point from level 1 to level 2 - script "lvl01to02" etc) and (THAT'S VITAL!!!)
set value IsObjective=2 for each zone;
5. Compile your game, run between maps and enjoy your day)))

Editing parameters:
PrevLvl - our one big variable. Here we set number of level, WHICH WE LEAVING. Same number level have in compilattion list.
nextlevel - WHERE WE GOING variable. Same numbering principle.
plrmoveto - number of teleport we going to after start point.

Do not forget - there are scripts for 5 maps in pack, from each map you can get on 4 other.
If you have another amount of maps or another link between maps, toy have to edit scripts appropriately)

Good luck!
------

P.S. Feel fre to use this pack in non-commercial and commercial games)
P.P.S. Sorry for any possible mistakes - English is my second language

Attachments

Login to view attachments
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 18th Aug 2011 03:06
Wow you did do it! Thank you so much!!!!!!!!!

srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 18th Aug 2011 09:07
Very cool! Thank you for your work and contribution!

P.S. Your English is better than many native speakers/writers that I know.
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 18th Aug 2011 09:34
Very nice, this will come in very handy.
Thank you. Your english is great.


GameBuilder
14
Years of Service
User Offline
Joined: 14th Oct 2010
Location:
Posted: 18th Aug 2011 10:03
Woow really awesome mate I'll be using it

Thank you

P.s your English is very good
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th Aug 2011 10:26
Nice work! This wis very useful.

fallen one
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: My imagination!
Posted: 8th Sep 2011 19:44
Could this work in multiplayer, or is this single player only?


jaropolk14
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 9th Sep 2011 22:06
Quote: "Could this work in multiplayer"

I don't know, sorry.
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 12th Sep 2011 17:31
I can't use any of my weapons after travelling between levels with this, am I doing something wrong?

I appear to have burst into flames...
jaropolk14
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 12th Sep 2011 21:26
angusm3, I had such problem, when I travelled to a level that stood last in the compiling list and than come back. Try to make the last level without the possibility of returning to the previous ones.



And here's my "demo-game"*, showcasing the work of a script system and few more features.
http://ifolder.ru/25178783 (mirror 1)
http://narod.ru/disk/21688411001/Bunker.rar.html (mirror 2)

I can upload it to MediaFire or anything like that, if necessary.

* menu is in Russian, sorry. I made it for our forum and didn't planned to show outside Russia. so, menu buttons from left to right are - New Game, Continue, Exit game. There is only quick-save in the game. Also, melee attack is on "F", action key is "E" and you can find medkits, witch you can pick-up and use when it need with "H" key (but there is some bug with mrdkit counter, I can-t fix((( ).
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 13th Sep 2011 01:39
I just put a level with nothing in it as the last level, hopefully this works *crosses fingers*

I appear to have burst into flames...
kulet
13
Years of Service
User Offline
Joined: 18th Aug 2011
Location: At your back!!!
Posted: 13th Sep 2011 08:58
This is very useful, Thanks you so much!

better than ever
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 14th Sep 2011 02:34
nope... I have my guns but their anims are a bit glitched and they have infinite ammo, I'll try to find a workaround and report back if I find one.

I appear to have burst into flames...
jaropolk14
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 14th Sep 2011 21:11
Quote: "I have my guns but their anims are a bit glitched and they have infinite ammo"

I haven't had anything like this. All my guns works fine...

Login to post a reply

Server time is: 2024-11-24 05:40:35
Your offset time is: 2024-11-24 05:40:35