Forum rules - please read before posting.

Speech isn't getting added when I'm gathering text

HI, any idea why my speech isn't getting added when I'm gathering text that exists in an action list not in scene? so some of these play, and some do not. I gather speech but they don't appear in my speech manager. See screenshots

https://www.dropbox.com/scl/fo/x52f0l2woc5m6697f8g13/AHxze2oj1Oq3copvgwcXNsE?rlkey=ppvttkwp5owtg7x5w2hkxqy6p&dl=0

Comments

  • The Speech Actions in the screenshot all have IDs assigned - do they appear in the Speech Manager when filtering to those specific ID numbers?

    How is the ActionList referenced at runtime?

  • the ID's do not appear in the Speech manager. The actionlist is referenced via this script and dropping the actionlist into the gameobject:

    using UnityEngine;
    using AC;
    
    public class RespondToWaitAsset : MonoBehaviour
    {
    
        public float waitTime = 10f;
        public ActionListAsset actionList;
        private float timer;
    
        void Update ()
        {
            if (KickStarter.player.charState == CharState.Idle &&
                !KickStarter.player.isTalking &&
                KickStarter.stateHandler.IsInGameplay ())
            {
                timer += Time.deltaTime;
                if (timer >= waitTime)
                {
                    timer = 0f;
                    actionList.Interact ();
                }
            }
            else
            {
                timer = 0f;
            }
        }
    
    }
    
  • Place an ActionList Starter component in a scene added to your build settings, and have it reference the asset. That will make AC aware of the asset, and include it in the gather text process.

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.