Chesed Posted November 11, 2024 Share Posted November 11, 2024 (edited) I have a survivor who has a custom soliloquy when he performs on the stage. This works fine. I'd like him to be able to perform other soliloquies when he's wearing his custom hats. I thought this would be as simple as taking a solioquy from something like play_the_veil.lua and changing the cast and costume to refer to my item, but it doesn't work. After I got it to stop crashing it just returns his default soliloquy, and returns the no script soliloquy if I remove that. I have a feeling it's not properly registering/recognising his "role", but the existing plays are split into so many different files I can't really figure out why. Has anyone managed to make something like this that actually works so I can reference it? This is part of a huge mod, so I'm not able to share my files, but here's an example recent version of my play's file. Forgive me if stuff is there redundantly it's just leftovers from troubleshooting. Spoiler local costumes = {} local scripts = {} local fn = require("play_commonfn") local STRINGS = GLOBAL.STRINGS STRINGS.STAGEACTOR.EXAMPLE = { "If you can read this then it's working." } STRINGS.CAST = { EXAMPLE = "Testing", } -------------------------------------------------- costumes["EXAMPLE"]= { head ="blackmask", name= STRINGS.CAST.EXAMPLE} scripts["EXAMPLE_SOLILOQUY"]= { cast = { "EXAMPLE" }, lines = { {actionfn = fn.findpositions, duration = 1, positions={["EXAMPLE"] = 1,}}, {actionfn = fn.marionetteon, duration = 0.1, }, {actionfn = fn.actorsbow, duration = 3, }, {roles = {"EXAMPLE"}, duration = 2.5, line = STRINGS.STAGEACTOR.EXAMPLE[1]}, }} return {costumes=costumes, scripts=scripts} Edited November 19, 2024 by Chesed 1 Link to comment https://forums.kleientertainment.com/forums/topic/160619-unresolved-making-a-custom-soliloquy-for-an-itemcostume/ Share on other sites More sharing options...
Chesed Posted November 19, 2024 Author Share Posted November 19, 2024 Bump. I haven't had the time to investigate further myself, so any help is greatly appreciated. Link to comment https://forums.kleientertainment.com/forums/topic/160619-unresolved-making-a-custom-soliloquy-for-an-itemcostume/#findComment-1757705 Share on other sites More sharing options...
Chesed Posted December 4, 2024 Author Share Posted December 4, 2024 (edited) I've been too busy helping other people with their mods to work on mine, and I had someone ask about stageplays recently, so you know... just bumping this again! Just in case! Spoiler EDIT: OH RIGHT, I was thinking about it the other day and wondered if I'd set things up in such a way that the game was expecting a Playbill to trigger the switch to the dialogue, instead of it working like a character solilioquy, but I haven't had time to investigate. Maybe a Playbill is just required in general? No idea. I'm mostly writing this so I remember. Even if that's the case, I'd really like for this to work without the requirement of a Playbill, because I'm trying to make the character never do his soliloquy if he has a 'costume' on and I'm currently only able to do that by just ripping out his stageactor component on equip and preventing him from acting at all... it's kind of all or nothing. If the Playbill is the missing link I'm gonna be so mad. Edited December 4, 2024 by Chesed Link to comment https://forums.kleientertainment.com/forums/topic/160619-unresolved-making-a-custom-soliloquy-for-an-itemcostume/#findComment-1768426 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