Jump to content

is there a way to make custom dialogue about the passage of time?

Recommended Posts

Hey hey, not great at coding but I have a character that does something similar.

If you're watching the world phase and have your function run only when the time of day changes, you can just add something like this to the part of your function that enables the perks:


inst.components.talker:Say("Your dialogue would go here.")

Or if you want it to be neater you could do it like this:


inst.components.talker:Say(GetString(inst, "ANNOUNCE_PERK"))

...and then write the dialogue for ANNOUNCE_PERK somewhere, like your character's speech file or somewhere else you have strings listed.

Provided your function only runs when the phase changes between day/dusk/night the character should only speak when the change happens.

Hope that works with what you have.

Edited by Chesed
Link to comment
Share on other sites

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...