Jump to content

Recommended Posts

this is for a custom character mod, using the extended sample character base ^_^ i already have the item in question set up and working ingame! just a very very slight retool of the blunderbuss from shipwrecked, however id like to make in spit out random lines like lucy does for woodie. i was looking at her lua files in scripts to see if i could make sense of it enough to just copy paste what i need in specific onto what i already have but honestly i dont even know what i need? i couldn't find her actual script either for where her voicelines are stored, not that that particularly matters but it does add to my not knowing exactly how to achieve this for my own custom item. anyone ever done this before? what'd you do? or does anyone know what i need to make + put in to achieve this?

Disclaimer: I've been meaning to learn how to do this and don't know how. However, if you're willing to poke around and try to learn how to do it yourself I know where to point you, in the event that nobody who actually knows how to do this answers you.

Lucy has the "talker" component, which allows her to say her dialogue. You'll want your item to have this too. Her code that triggers her dialogue is in "sentientaxe.lua", which is also a component.

I actually recommend you also look at the Shadow Reaper and Shadow Maul, in "voidcloth_scythe.lua" and "shadow_battleaxe.lua". They have their talking functions actually in their prefab file, so they look more approachable for messing around with.

All three items have their dialogue in "strings.lua". just open the file and search for "STRINGS.LUCY".

Just giving your item the talker component and putting something like inst.components.talker:Say("owo") in the onequip will make the item talk when you equip it for example, but all the nuance like who can see the text or how to make the item speak randomly is beyond me unfortunately.

I hope this unhelpful answer will spur someone who can do this to reply to you so they can correct me.

Edited by Chesed
  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...