#Room generation and sectioning help

1 messages · Page 1 of 1 (latest)

lean jungle
#

I have the room generation down, I just need help with how exactly to go about scripting separating the specific sections as I've horribly drawn here.

agile tokenBOT
#

studio** You are now Level 1! **studio

lean jungle
#

Sorry about that, im in EST

slim torrent
#

Okay so can u explain your post better

lean jungle
#

Oh uhh sure

#

You are familiar with pressure yes?

slim torrent
#

Ye

lean jungle
#

Okay, you know like those room subsections, (like the big industrial sections or the water ones)

agile tokenBOT
#

studio** You are now Level 2! **studio

lean jungle
#

But my game is different in a way that uhh

#

Give me a second I just woke up

slim torrent
#

So you want to procedurally generate them or what

slim torrent
#

So what's the problem

lean jungle
#

There is the subway section and industrial section (which i have yet to work on), there needs to be a transition at a specific point

slim torrent
#

Oh I see.

lean jungle
#

Yeah, bear with me, I can barely script as is

slim torrent
#

So how have u been generating this section? Module scripts?

lean jungle
#

Yes!

slim torrent
#

That's very good

lean jungle
#

I can send my code

#

But im not good with formatting

slim torrent
#

So is it like I describe. U just call some function using some Events that generate further eay

#

Way

lean jungle
#

Hmm

#

At a certain door I call a function that stops subway rooms and generates industrial?

#

Okay

#

Uhm lemme get my stuff

slim torrent
#

Ok

slim torrent
lean jungle
#

okay

slim torrent
#

U can share the code here ig

#

Unless it's a mountain

lean jungle
#

its like 77 lines so not much

slim torrent
#

Oh nice

#

Go ahead then

#

Use lua formatting

lean jungle
#

dammit my msg is too long

slim torrent
#

If ydk. ``lua --code`` is the format

#

Copy my msg

#

Or use pastebin

lean jungle
#

i know how to use lua formatting

#

i have to split my stuff bc of my lack or nitro

#

one second

#

holy

#

uhh

#

ill just send a screenshot

slim torrent
#

Btw. You can also create a theme manager. It'd keep track of the current theme and the room generation system would refer to it for determining what theme to generate. With a controller script u can change the theme midgame. That's a good approach ig

lean jungle
#

oh wow fr?

#

uhh you gotta help me with that

slim torrent
#

It's easy rly

lean jungle
#

cant even send the code what

#

anyway

slim torrent
#

Idk how ur room generation work so I cannot tell u how

lean jungle
slim torrent
#

But it's rly intuitive

lean jungle
#

sorry i have to send it that way

#

discord was tweaking

#

its out of order hold on

agile tokenBOT
#

studio** You are now Level 3! **studio

lean jungle
#

god dammit

#

one sec

#

Should be in order now

slim torrent
#

Hm

#

This script handles one theme of the generation

lean jungle
#

i have the room info script if you want that too?

slim torrent
#

No

lean jungle
#

okay

slim torrent
#

Create a theme manager module with two functions, get current theme and set theme

lean jungle
#

under the room module script?

slim torrent
#

Doesn't matter. Require that in this generation script and fetch the current theme and generate accordingly

lean jungle
#

okay

slim torrent
#

Keep the room models under a folder named the appropriate theme

#

You'd need to rewrite your get random room function. Find a generalized way to get a random room

#

That'd work for all themes

#

Or wait a sec

#

I'm not sure how info module work so u gotta determine that

lean jungle
slim torrent
#

Just create a common function for all themes

#

Oh mb

#

So u need like steps laid down

#

?

lean jungle
#

yes

#

exactly!

#

im that type of person unfortunately

slim torrent
#

Ok

#

Make urself ready for ai generated text

lean jungle
#

oh boy

slim torrent
#
  1. Make a Module Script called ThemeManager in ReplicatedStorage.

  2. Inside it, store a currentTheme variable and a list of themes.

  3. Add functions to get the current theme and set a new theme.

  4. Make a Script in ServerScriptService to cycle through the themes over time (use a wait/timer).

  5. In your room generator, check the current theme from ThemeManager before spawning a room.

  6. Spawn rooms based on the theme (e.g., Industrial, Water, Lava).

  7. When the timer ends, ThemeManager changes the theme, and new rooms follow the new themes.

#

So get to work. I'm here if u get stuck at a step

#

U got this 💯

lean jungle
#

thanks zawg🔥

#

wait wait

#

timer?

#

i dont need it based on a timer

#

i need it based on the halfway point (room 50)

slim torrent
#

Oh

#

Just create a theme manager

#

for now

lean jungle
#

okay

slim torrent
#

You can keep track of how many rooms you've generated in the room generation module. then use it in the controller script to switch to a diff theme

#

Note that the controller script will only change themes. Generations can be handled in a separate thread or script

slim torrent
#

in fact should be*

lean jungle
#

Theme manager bare bones

#

yay

slim torrent
lean jungle
#

whoops

#

bare with me

#

i have a doctors appointment soon anyway gtg