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 / Scare me, in my own way.

Author
Message
Delusional Games
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: Serbia, Sometimes Finland
Posted: 3rd Apr 2011 18:54
Lets say we want to scare someone in our game, give him the psychological test at the beginning of the game, where he choses with his keyboard what theme and things are the most creepiest.
And by his choises the script declares variables which then affect the rest of the game. If he choose spiders like creepy, the variable equal some number and the spider spawns in the place where something else could spawn depending on answer, to do this both with monsters, dialogues and sounds.
Wont that lag? (I mean, that would be a lot of scripts)

My paragon is not on the poster, its in the mirror.
Wolf
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 4th Apr 2011 06:19
I would use a starter application that runs the player through a few questions and then starts one of a few game .exes.



-Wolf

God Helps the Beast in Me!
Delusional Games
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: Serbia, Sometimes Finland
Posted: 4th Apr 2011 13:15
But for that we will need to make also every level ``different``
And that will take too much space, also how to hide the original .exe`s? I could probably make something in VB, that runs the application declared by the answers, but I don`t want anyone to run the .exe he wants a.k.a different scares by finding them in FPSCGame folder.

Cheers to all

My paragon is not on the poster, its in the mirror.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 5th Apr 2011 11:18
I think this is possible with a single *.exe and some scripts and I don't believe there will be too much of a performance hit.

There are a few things you will need to do within your scripts to make it work:

[pre-scripting]
0) before you start - make a plan of the questions you will ask and how you want these to affect your game. For example
Quote: "Question1: Which is the most scary?
Effect: Spawn a zombie, a spider or a clown in Room 2."


1) at the start of your script where you ask the Q's, define some variables. For example:


2) Later in your Q script, set the variable to a value depending on the answer. for example:


3) When placing the enemies related to the choice, make sure you set "Spawn at start=No" - this will prevent the enemy from being on the screen if not chosen.

4) To make you enemy appear, place a trigger zone and create another script so that only the selected enemy appears. for example:


Obviously this is just the basics and the final scripts will depend on how you define your questions, your level design and how you chose to spawn your enemies, but I hope this helps you start.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]

Login to post a reply

Server time is: 2024-11-24 11:50:58
Your offset time is: 2024-11-24 11:50:58