Craos Posted October 30, 2017 Share Posted October 30, 2017 I plan to make a character that I want to say something random instead of a scripted line like most characters. I have seen this before (with Wilton the haunted if you are curious) and I want to know how to do this. If you don't know what I am talking about, basically when examining the character would say let's say a bunch of random letters instead of a unique line for each item, mob ect. They can also say a different bunch of letters instead of the same bunch each time. So instead of saying the same thing for each item, the game would pick a random coded line for examining an item. Any help would be appreciated. If you still don't understand what I mean... well I will explain it further to a confused reply. Link to comment https://forums.kleientertainment.com/forums/topic/83557-how-to-make-a-character-say-something-random-instead-of-a-scripted-line-when-examining/ Share on other sites More sharing options...
shirusnake Posted October 30, 2017 Share Posted October 30, 2017 You should download the mod in question and look at the code to see how they did it. :] Link to comment https://forums.kleientertainment.com/forums/topic/83557-how-to-make-a-character-say-something-random-instead-of-a-scripted-line-when-examining/#findComment-968730 Share on other sites More sharing options...
Serpens Posted November 2, 2017 Share Posted November 2, 2017 (edited) use an array instead of a single string: {"ah","ih","uh"} will say randomly one of these three. Edited November 2, 2017 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/83557-how-to-make-a-character-say-something-random-instead-of-a-scripted-line-when-examining/#findComment-969781 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