Jump to content

Recommended Posts

So, i'm poking through the strings.lua, and I see that there's a bunch of proposed lines for Maxwell to give to the player when he first spawns into the survival world(I presume it's all from beta).

 

Stuff like:

 

This may take some time...", "Don't get lost now!

Say pal, keep your chin up.", "You will probably find it hard to stay dapper.

 

And I was wondering, if there is a way to make it so that the speech Maxwell gives is randomized out of a set of given strings every time a Maxwell speech happens.

I think some of the strings later on in that same file are for adventure mode.

However, assuming you know a little about programming, use math.random to generate anumber between 1 and say, 10, and store it as a variable, like "max"

Then, make an if-elseif-elseif-elseif-elseif.....else statement saying something like : if var "max"=1, (insert code so maxwell says string 1.) elseif var "max" =2,(insert code so maxwell says string 2)

This is just an idea. Look harder, and try to find places where the code for the opening maxwell lies.

I think some of the strings later on in that same file are for adventure mode.

However, assuming you know a little about programming, use math.random to generate anumber between 1 and say, 10, and store it as a variable, like "max"

Then, make an if-elseif-elseif-elseif-elseif.....else statement saying something like : if var "max"=1, (insert code so maxwell says string 1.) elseif var "max" =2,(insert code so maxwell says string 2)

This is just an idea. Look harder, and try to find places where the code for the opening maxwell lies.

They are. I just don't have any clue what calls the intro speech.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...