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 / Random Spawning/Events

Author
Message
PFTLOGLMSGames
12
Years of Service
User Offline
Joined: 19th Aug 2012
Location:
Posted: 20th Aug 2012 02:15
Hey guys, i've been using code for a few years now so know what im doing it's just i dont really know the FPSC syntax very well, so your help is much appreciated!

How would I go about getting an event that spawns a character, or plays a sound, but randomly (ie. rolling an imaginary dice, then proceeding with one of the events) Is this possible, and if so, could someone point me in the right direction?

Cheers!

PleaseForTheLoveOfGodLetMeSleep! Games

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 20th Aug 2012 12:05 Edited at: 20th Aug 2012 12:18
You can find some of my scripts here: http://forum.thegamecreators.com/?m=forum_view&t=199279&b=23 and here:http://forum.thegamecreators.com/?m=forum_view&t=199579&b=24
But although I like to write this stuff, I am very careful about using them. After all "random" is the opposite of "control" and a level designer should have as much control over the gameplay as possible.

Random atmosphere sounds are ok, but random sound effects (especially "scary monster roars" and the like) can allready damage the game flow and atmosphere if overused or if the random variables allow ridiculous results.

Random encounters resulting in combat however can actually break a game if they unbalance the difficulty too much.

My friendly advice is to use randomness limited to one per level each: 1 random sound, 1 random light, 1 random enemy etc.

I have played over 20 half-life2 maps (both for fun and to learn) over the weekend and honestly I can't remember encountering a single random event. But I learnt, that clever enemy placing and allowing the player to enter a combat area from different sides can completely change an encounter.

In case you find my grammar and spelling weird ---> native German speaker ^^
PFTLOGLMSGames
12
Years of Service
User Offline
Joined: 19th Aug 2012
Location:
Posted: 21st Aug 2012 22:14
Thankyou very much man, really appreciated!

I only wanted to use them for atmospheric sounds, and have it so
about 75% of the time when the zone is entered, nothing happens, then have the sounds play, also was going to make enemy spawning very rare, but thanks for the advice!

PleaseForTheLoveOfGodLetMeSleep! Games

Login to post a reply

Server time is: 2024-11-23 22:32:58
Your offset time is: 2024-11-23 22:32:58