Forum rules - please read before posting.

Incidental Dialogue on A Random Timer

Using Unity v2022.3.62f2, and using AC 1.85.5

I'm trying to implement spontaneous background character dialogue that occurs at random intervals upon start. I made a new OnBeginGame event, pictured here:
https://imgur.com/a/olpvEdW

The timer window is completely new to me and it occurred to me I had no idea what I was doing. I'm trying to set it up so the dialogue plays after a random amount of time between 10 and 45 seconds. The play dialogue action is in the OnTimerUpdate actionlist referenced at the bottom. When the game runs, the dialogue happens immediately, and then after a duration again. I want it so the dialogue does not occur immediately upon the game starting. Any guidance is appreciated.

Comments

  • Ah, apologies for the confusion - I can see how that can be read.

    The Min/Max values are actually the range of the timer. As it increases each Tic, it'll start at 10 and end at 45. The ActionList you've assigned will run each time the Tic value changes, which occurs every 33 seconds.

    What you want to use instead is a regular background ActionList that runs an Engine: Wait Action before running your speech. To have this Action wait a random time, define a Float parameter in the Properties panel, and start the list with an ActionList: Set parameter Action that sets the parameter to a random value, and then have this value override the "Wait time (s)" field.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.