1bubbainpa Posted June 20, 2020 Share Posted June 20, 2020 Does anyone know where the script for when walter tells a campfire story is hidden? Link to comment Share on other sites More sharing options...
-LukaS- Posted June 20, 2020 Share Posted June 20, 2020 Walters story telling function is in his prefab file walter.lua: local function StoryToTellFn(inst, story_prop) if not TheWorld.state.isnight then return "NOT_NIGHT" end local fueled = story_prop ~= nil and story_prop.components.fueled or nil if fueled ~= nil and story_prop:HasTag("campfire") then if fueled:IsEmpty() then return "NO_FIRE" end local campfire_stories = STRINGS.STORYTELLER.WALTER["CAMPFIRE"] if campfire_stories ~= nil then inst._story_proxy = SpawnPrefab("walter_campfire_story_proxy") inst._story_proxy:Setup(inst, story_prop) local story_id = GetRandomKey(campfire_stories) return { style = "CAMPFIRE", id = story_id, lines = campfire_stories[story_id].lines } end end return nil end And the lines are in the strings.lua file, just search for STRINGS.STORYTELLER: STRINGS.STORYTELLER = { WALTER = { CAMPFIRE = { BOG_MONSTER = { lines = { {duration = 2.5, line = "Ever heard of the bog monster?"}, {duration = 3.5, line = "Nobody knows what it really looks like..."}, {duration = 3.5, line = "nobody who's seen it up close ever made it back."}, {duration = 2.5, line = "People say it can disguise itself,"}, {duration = 2.5, line = "to look like a mossy rock,"}, {duration = 2.0, line = "or an old stump,"}, {duration = 3.0, line = "or even a patch of mud under your feet."}, {duration = 3.0, line = "The only way to really tell it's there"}, {duration = 3.5, line = "is if you look out of the corner of your eye..."}, {duration = 3.5, line = "it'll sometimes let its disguise slip,"}, {duration = 3.0, line = "and you'll see it start to smile..."}, {duration = 3.0, line = "with its six mouths full of RAZOR SHARP TEETH!"}, }, }, -- And more 1 3 Link to comment Share on other sites More sharing options...
Grim the Posted March 20, 2021 Share Posted March 20, 2021 Thanks, this helped me. Link to comment 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