Scripts / Randomness

Author
Message
SaintPhillip
7
Years of Service
User Offline
Joined: 3rd Sep 2017
Location:
Posted: 6th Sep 2017 19:51
I'm looking for something that will allow me to apply randomness to nearly everything.

Random enemy spawn, teleport location, events, text, etc...Everything but the Map aspect (I dont care about making random levels or anything)

The idea, is to be able to have a handcrafted but highly randomized game thats small but has tons of replayability. So I could set a zone outside a door for instance that when the played touches it there might be 10 possible events that might happen and another 10 events where absolutely nothing happens.

Anyone know of any scripts that are available to do that and if not how is this even feasible with the scripting system ? If not are there any 'cheats' that work in to allow this in some way?
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 9th Sep 2017 13:54 Edited at: 9th Sep 2017 13:54
It sounds a little specific really, I doubt there are any examples here. Possible to do though, if you know your way around lua and GG. I'm quite sure a Stanley Parable type affair would be quite possible

This gives you an idea, what the randoms do is up to you. of course this will run over and over so you would need to add a little more for it to work properly.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
SaintPhillip
7
Years of Service
User Offline
Joined: 3rd Sep 2017
Location:
Posted: 9th Sep 2017 15:34
Thanks man- This helps a ton.

I'm totally new and trying to learn to worldbuild and basic scripting and its a bit overwhelming but this really helps as a good starting point to do what I want.

I was more worried that there may not be a way and I would be wasting my time.
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 10th Sep 2017 14:08
No problem. Game Guru is pretty capable when a little work is put in Hope you get your idea up and running.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 2nd Oct 2017 04:29
math.random

Is my favorite function in LUA
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960

Login to post a reply

Server time is: 2024-12-23 00:36:13
Your offset time is: 2024-12-23 00:36:13