Jump to content

custom character intro speech (help)


Recommended Posts

Im trying to make a custom speech at the start of the world for my character Ikaros Angeloid and was wondering how to do it

 

the speech starts off like this

"hello Ikaros I see you have fallen into my world"

"you want to please master don't you"

"this is my world my domain if you wish for me to tell master"

"you must first prove to me you are able to survive this world"

"don't go messing around Ikaros I am watching you"

"laughs never mind I will let master know he will be pleased"

next stage of the game speech

"well I see you have made it this far well master is very pleased of you"

"but you wont get any further than this I tell you this now turn away"

"I see your not listening oh well if I told you this already It may as well be already too late"

"see you on the other side Ikaros I'll be watching you"

 

final stage of speech in the game

"Ikaros wow I didn't think you would get this far"

"that's amazing master is really impressed"

"now please help me get out of this cursed place"

"I've been here for eternity"

this is the speech as soon as Ikaros is strapped to the throne

"not me I just want to see my master" "please nooooooo"

modinfo.lua modmain.lua ikaros.lua speech_ikaros.lua      here's the files you might need I would gladly appreciate any help thanks it's means a lot

Link to comment
Share on other sites

Code that goes into the modmain:

local function ModMaxwellIntro(inst)
    if GLOBAL.GetPlayer().prefab == "yourcharactersprefab" then ---maxwell introduction and only does it for a certain character
        inst.components.maxwelltalker.speeches.SANDBOX_1 =
        {
        delay = 0,
        appearsound = "dontstarve/maxwell/disappear",
        voice = "dontstarve/maxwell/talk_LP",
        appearanim = "appear",
        idleanim= "idle",
        dialogpreanim = "dialog_pre",
        dialoganim="dial_loop",
        dialogpostanim = "dialog_pst",
        disappearanim = "disappear",
            disableplayer = true,
            skippable = true,
            {
                string = "hello Ikaros I see you have fallen into my world \nyou want to please master don't you.",
                wait = 5,
                anim = nil,
                sound = nil,
            },
            {
                string = "this is my world my domain if you wish for me to tell master \nyou must first prove to me you are able to survive this world.",
                wait = 5,
                anim = nil,
                sound = nil,
            },
            {
                string = "don't go messing around Ikaros I am watching you",
                wait = 3,
                anim = nil,
                sound = nil,
            },
            {
                string = "laughs never mind I will let master know he will be pleased.",
                wait = 3,
                anim = nil,
                sound = nil,

            },

    }
   end
    end    


    local function ModMaxwellEndGame(inst)
if GLOBAL.GetPlayer().prefab == " yourcharactersprefab "  then
    inst.components.maxwelltalker.speeches.INTRO = ------------always plays when the player approaches
        {
        voice = "dontstarve/maxwell/talk_LP_world6",
        --appearanim = "appear",
        idleanim= "idle_loop",
        dialogpreanim = "dialog_pre",
        dialoganim="dialog_loop",
        dialogpostanim = "dialog_pst",
        --disappearanim = "disappear",
        disableplayer = false,
        skippable = false,
        {
            string = "Ikaros wow I didn't think you would get this far, that's amazing master is really impressed\nnow please help me get out of this cursed place. I've been here for eternity",
            wait = 3,
            waitbetweenlines = 0,
            anim = nil,
            sound = nil,
        },
    }

    -- inst.components.maxwelltalker.speeches.CONVERSATION = ----cant get it to work
    -- {
         -- voice = "dontstarve/maxwell/talk_LP_world6",
        -- idleanim= "idle_loop",
        -- dialogpreanim = "dialog_pre",
        -- dialoganim="dialog_loop",
        -- dialogpostanim = "dialog_pst",
        -- disableplayer = false,
        -- skippable = false,
        -- {
            -- string = "Doesn't work atm.",
            -- wait = 3,
            -- waitbetweenlines = 0,
            -- anim = nil,
            -- sound = nil,
        -- },
        -- {
            -- string = "more stuff to say.",
            -- wait = 2,
            -- waitbetweenlines = 0,
            -- anim = nil,
            -- sound = nil,
        -- },
        -- {
            -- string = "yada yada yada.",
            -- wait = 3,
            -- waitbetweenlines = 0,
            -- anim = nil,
            -- sound = nil,
        -- },
        -- {
            -- string = "nothing that'll be seen.",
            -- wait = 2,
            -- waitbetweenlines = 0,
            -- anim = nil,
            -- sound = nil,
        -- },
        
    

    -- }

    end
end
         
AddPrefabPostInit("maxwellintro", ModMaxwellIntro) ---declares the intro

AddPrefabPostInit("maxwellendgame", ModMaxwellEndGame) ---declares end

Well its a start, I haven't been able to figure out how to get a character to say something during the throne scene. The conversation speech that I quoted out doesn't work or I can't get it to work if you think you can enable it u can use it. Other than that use the intro in the endgame code as it works.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...