Forum rules - please read before posting.

Keep Conversation "Exit" option from being marked as already chosen

Hello, apologies if this has already been addressed, I couldn't find it in a search.

I've got my conversations set to "Mark options when already used" so they become a grey color after discussed.

I'd like the "Exit" topic to always stay white, so if the player revisits the conversation it's not greyed out. How can I do this?

Thanks in advance!

Comments

  • Make a note of the Exit option's ID number (to the left of its label in the Inspector), and attach this script to keep it "unmarked":

    using UnityEngine;
    using AC;
    
    public class KeepOptionUnmarked : MonoBehaviour
    {
    
        public Conversation conversation;
        public int exitOptionID;
    
        void OnEnable () => EventManager.OnEndConversation += OnEndConversation;
        void OnDisable () => EventManager.OnEndConversation -= OnEndConversation;
    
        void OnEndConversation (Conversation _conversation)
        {
            if (conversation == _conversation)
                conversation.UnmarkAsChosen (exitOptionID);
        }
    
    }
    
  • Thank you very much!

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.