Jump to content

[Need Help]Custom Maxwell Intro


Kitrane

Recommended Posts

I have referred to the William J. Danninghar mod, but I can't seem to make it work. All of the files seem to be in order, and yet the game still reverts to the original speech for Maxwell. I can only give you this to work off of:

local function ModMaxwellIntro(inst)
    if GLOBAL.GetPlayer().prefab == "ebsol" then
        inst.components.maxwelltalker.speeches.SANDBOX_1 =
        {
            appearsound = "dontstarve/maxwell/appear_adventure",
        voice = "dontstarve/maxwell/talk_LP_world3",
        appearanim = "appear3",
        idleanim= "idle3_loop",
        dialogpreanim = "dialog3_pre",
        dialoganim="dialog3_loop",
        dialogpostanim = "dialog3_pst",
        disappearanim = "disappear3",
            disableplayer = true,
            skippable = false,
            {
                string = "What is the meaning of this?",
                wait = 2.5,
                anim = nil,
                sound = nil,
            },
            {
                string = "I wasn't expecting anyone else to be here.",
                wait = 2.5,
                anim = nil,
                sound = nil,
            },
            {
                string = "And I didn't bring you here, so how did you...",
                wait = 3,
                anim = nil,
                sound = nil,
            },
            {
                string = "It is really of no importance to me, anyways.",
                wait = 3,
                anim = nil,
                sound = nil,
            },
            {
                string = "You'll be dead and gone soon enough.",
                wait = 3,
                anim = dialog2_loop,
                sound = nil,
            },
    }

        inst.components.maxwelltalker.speeches.ADVENTURE_1 =
        {
            appearsound = "dontstarve/maxwell/appear_adventure",
        voice = "dontstarve/maxwell/talk_LP_world1",
        appearanim = "appear2",
        idleanim= "idle2_loop",
        dialogpreanim = "dialog2_pre",
        dialoganim="dialog2_loop",
        dialogpostanim = "dialog2_pst",
        disappearanim = "disappear2",
            disableplayer = true,
            skippable = false,
            {
            string = "Hmph. Impressive. I didn't expect you to get this far.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
        {
            string = "You must leave, however.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
        {
            string = "You shouldn't delve in the world of magic and mystery.",
            wait = 3.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "Bad things happen to those who who get involved.",
            wait = 3.5,
            anim = nil,
            sound = nil,
        },
    }

        inst.components.maxwelltalker.speeches.ADVENTURE_2 =
    {        
        delay = 2,
        voice = "dontstarve/maxwell/talk_LP_world2",
        appearanim = "appear2",
        idleanim= "idle2_loop",
        dialogpreanim = "dialog2_pre",
        dialoganim="dialog2_loop",
        dialogpostanim = "dialog2_pst",
        disappearanim = "disappear2",
        disableplayer = true,
        skippable = true,
        {
            string = "This is getting old.",
            wait = 2.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "I'm trying to allow you to live, see.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
        {
            string = "You should be grateful",
            wait = 2.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "I don't allow many to live. Take my advice.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
        {
            string = "Turn back now, pal.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
    }

        inst.components.maxwelltalker.speeches.ADVENTURE_4 =
    {        
        delay = 2,
        voice = "dontstarve/maxwell/talk_LP_world4",
        appearanim = "appear4",
        idleanim= "idle4_loop",
        dialogpreanim = "dialog4_pre",
        dialoganim="dialog4_loop",
        dialogpostanim = "dialog4_pst",
        disappearanim = "disappear4",
        disableplayer = true,
        skippable = true,
        {
            string = "NO! You must NOT continue.",
            wait = 2.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "Like I said, magic is a dangerous business.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
        {
            string = "You're just digging yourself into a progressively bigger hole.",
            wait = 3.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "You won't like what's in store for you.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
    }

        inst.components.maxwelltalker.speeches.ADVENTURE_TWOLANDS =
    {        
        delay = 2,
        voice = "dontstarve/maxwell/talk_LP_world4",
        appearanim = "appear4",
        idleanim= "idle4_loop",
        dialogpreanim = "dialog4_pre",
        dialoganim="dialog4_loop",
        dialogpostanim = "dialog4_pst",
        disappearanim = "disappear4",
        disableplayer = true,
        skippable = true,
        {
            string = "AUGH! JUST.... STOP!",
            wait = 2.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "I can't have this happening...",
            wait = 2.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "You'll be sorry you came any further.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
        {
            string = "Mark my words...",
            wait = 2.5,
            anim = nil,
            sound = nil,
        },
    }

        inst.components.maxwelltalker.speeches.ADVENTURE_5 =
    {        
        delay = 2,
        voice = "dontstarve/maxwell/talk_LP_world5",
        appearanim = "appear5",
        idleanim= "idle5_loop",
        dialogpreanim = "dialog5_pre",
        dialoganim="dialog5_loop",
        dialogpostanim = "dialog5_pst",
        disappearanim = "disappear5",
        disableplayer = true,
        skippable = true,
        {
            string = "Ahahaha... what do you hope to accomplish?",
            wait = 3,
            anim = nil,
            sound = nil,
        },
        {
            string = "There's nothing else. Besides you, me, and them...",
            wait = 3.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "And her...",
            wait = 2,
            anim = nil,
            sound = nil,
        },
        {
            string = "I didn't love anyone else.",
            wait = 2.5,
            anim = nil,
            sound = nil,
        },
        {
            string = "Just her.",
            wait = 2,
            anim = nil,
            sound = nil,
        },
        {
            string = "And you're trying to take me away from her.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
        {
            string = "I can't allow that to happen. This ends here.",
            wait = 3,
            anim = nil,
            sound = nil,
        },
    }
    end
end


 
AddPrefabPostInit("maxwellintro", ModMaxwellIntro)

 

 

Also, this is in the modmain. Is there something else I must do in order for it to work?

Link to comment
Share on other sites

Guys i'm a newcomer on character editing and lua programation, and i would like to know what is the name of the folder and the location of where i put the code Dudedude passed

is it on the characther file or into some in-game file?

apreciate the help 

Did you read this?

Link to comment
Share on other sites

This code worked 4 me:

local function ColeMaxwellIntro(inst)
    if GLOBAL.GetPlayer().prefab == "cole" then
        inst.components.maxwelltalker.speeches.SANDBOX_1 =
        {
delay = 0,
            appearsound = "dontstarve/maxwell/appear_adventure",
   voice = "dontstarve/maxwell/talk_LP",
appearanim = "appear",
idleanim= "idle",
dialogpreanim = "dialog_pre",
dialoganim="dial_loop",
dialogpostanim = "dialog_pst",
disappearanim = "disappear",
            disableplayer = true,
            skippable = false,
            {
                string = "Ahh finally you're here...",
                wait = 2,
                anim = nil,
                sound = nil,
            },
            {
                string = "I've been waiting for someone like you.",
                wait = 3,
                anim = nil,
                sound = nil,
            },
            {
                string = "Or should I say someTHING like you",
                wait = 3,
                anim = nil,
                sound = nil,
            },
            {
                string = "HAHAHAHA!",
                wait = 2,
                anim = nil,
            },
            {
                string = "Go out and get 'em, freak",
                wait = 3,
                anim = nil,
                sound = nil,
            },
}
 
        inst.components.maxwelltalker.speeches.ADVENTURE_1 =
        {
delay = 2,
            appearsound = "dontstarve/maxwell/appear_adventure",
   voice = "dontstarve/maxwell/talk_LP_world2",
appearanim = "appear2",
idleanim= "idle2_loop",
dialogpreanim = "dialog2_pre",
dialoganim="dialog2_loop",
dialogpostanim = "dialog2_pst",
disappearanim = "disappear2",
            disableplayer = true,
            skippable = false,
            {
string = "Oh hello again",
wait = 2,
anim = nil,
sound = nil,
},
{
string = "How's life in the real world?", 
wait = 2, 
anim = nil, 
sound = nil,
},
{
string = "I'm going to kick you", 
wait = 3, 
anim = nil, 
sound = nil, 
},
{
string = "but I just can't do that here.", 
wait = 2, 
anim = nil, 
sound = nil, 
},
{
string = "Fine. I suppose you'll need these.", 
wait = 2, 
anim = nil,  
},
{
string = "Just take care of yourself.", 
wait = 2, 
anim = nil, 
sound = nil, 
},
}
 
        inst.components.maxwelltalker.speeches.ADVENTURE_2 =
{
delay = 2,
   voice = "dontstarve/maxwell/talk_LP_world3",
appearanim = "appear3",
idleanim= "idle3_loop",
dialogpreanim = "dialog3_pre",
dialoganim="dialog3_loop",
dialogpostanim = "dialog3_pst",
disappearanim = "disappear3",
disableplayer = true,
skippable = true,
{
string = "You're still here?",
wait = 2,
anim = nil,
sound = nil,
},
{
string = "If they find you here, they might kill you!", 
wait = 2, 
anim = nil, 
sound = nil,
},
{
string = "Please, just listen to me.", 
wait = 2, 
anim = nil, 
sound = nil,
},
}
 
        inst.components.maxwelltalker.speeches.ADVENTURE_TWOLANDS =
{
delay = 2,
   voice = "dontstarve/maxwell/talk_LP_world4",
appearanim = "appear4",
idleanim= "idle4_loop",
dialogpreanim = "dialog4_pre",
dialoganim="dialog4_loop",
dialogpostanim = "dialog4_pst",
disappearanim = "disappear4",
disableplayer = true,
skippable = true,
{
string = "I did so much for you...",
wait = 1,
anim = nil,
sound = nil,
},
{
string = "...and this is how you repay me?", 
wait = 2, 
anim = nil, 
sound = nil,
},
{
string = "You ignore every word I say, don't you?", 
wait = 2, 
anim = nil, 
sound = nil,
},
{
string = "That's it! You are GROUNDED!", 
wait = 3, 
anim = nil, 
sound = nil,
},
}
 
        inst.components.maxwelltalker.speeches.ADVENTURE_4 =
{
delay = 2,
   voice = "dontstarve/maxwell/talk_LP_world4",
appearanim = "appear4",
idleanim= "idle4_loop",
dialogpreanim = "dialog4_pre",
dialoganim="dialog4_loop",
dialogpostanim = "dialog4_pst",
disappearanim = "disappear4",
disableplayer = true,
skippable = true,
{
string = "I did so much for you...",
wait = 1,
anim = nil,
sound = nil,
},
{
string = "...and this is how you repay me?", 
wait = 2, 
anim = nil, 
sound = nil,
},
{
string = "You ignore every word I say, don't you?", 
wait = 2, 
anim = nil, 
sound = nil,
},
{
string = "That's it! You are GROUNDED!", 
wait = 3, 
anim = nil, 
sound = nil,
},
}
 
        inst.components.maxwelltalker.speeches.ADVENTURE_5 =
{
delay = 2,
   voice = "dontstarve/maxwell/talk_LP_world5",
appearanim = "appear5",
idleanim= "idle5_loop",
dialogpreanim = "dialog5_pre",
dialoganim="dialog5_loop",
dialogpostanim = "dialog5_pst",
disappearanim = "disappear5",
disableplayer = true,
skippable = true,
{
string = "I said you're grounded!",
wait = 2,
anim = nil,
sound = nil,
},
{
string = "Listen to me when I talk to you!", 
wait = 2.5, 
anim = nil, 
sound = nil,
},
{
string = "You are nothing but wasted time!", 
wait = 3, 
anim = nil, 
sound = nil,
},
{
string = "Nothing but a failure!", 
wait = 2.5, 
anim = nil, 
sound = nil,
},
}
 
    end
end
local require = GLOBAL.require
 
AddPrefabPostInit("maxwellintro", ColeMaxwellIntro)
 
Replace all of the thing that say "cole" with your character's name BE CASE SENSITIVE (as in "Cole" should be replaced with cap first letter "Your character's name"
 
P.S: Thx to the Writhe mod for this code  :yaypigs:
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...