Silentdarkness1 Posted November 27, 2013 Share Posted November 27, 2013 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. Link to comment https://forums.kleientertainment.com/forums/topic/30017-randomizing-maxwells-opening-speech-at-the-start/ Share on other sites More sharing options...
KidneyBeanBoy Posted November 27, 2013 Share Posted November 27, 2013 These quotes seems likr they would be for characters that would have trouble with sanity/making things/exploring. Maybe make it so when he says a certain quote the player would get the related effect? Link to comment https://forums.kleientertainment.com/forums/topic/30017-randomizing-maxwells-opening-speech-at-the-start/#findComment-378828 Share on other sites More sharing options...
Silentdarkness1 Posted November 27, 2013 Author Share Posted November 27, 2013 Interesting idea, but i'd like to start with just a basic randomizer. Which I have no idea how to make. Link to comment https://forums.kleientertainment.com/forums/topic/30017-randomizing-maxwells-opening-speech-at-the-start/#findComment-378830 Share on other sites More sharing options...
goldfish911 Posted November 27, 2013 Share Posted November 27, 2013 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. Link to comment https://forums.kleientertainment.com/forums/topic/30017-randomizing-maxwells-opening-speech-at-the-start/#findComment-379163 Share on other sites More sharing options...
Silentdarkness1 Posted November 27, 2013 Author Share Posted November 27, 2013 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. Link to comment https://forums.kleientertainment.com/forums/topic/30017-randomizing-maxwells-opening-speech-at-the-start/#findComment-379205 Share on other sites More sharing options...
Silentdarkness1 Posted November 30, 2013 Author Share Posted November 30, 2013 (edited) Bump. I guess this could be considered a mod request at this point, because I have zero idea what to do :\ Edited November 30, 2013 by Silentdarkness1 Link to comment https://forums.kleientertainment.com/forums/topic/30017-randomizing-maxwells-opening-speech-at-the-start/#findComment-380741 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now