Forum rules - please read before posting.

Questions on Reusing Source Code and Dialogue IDs

Hi Chris,

I’m planning to create a new game using the same source code as my first AC game, but I don’t want to reuse the Subtitles and Narration menus from the first game. Is it possible to create new Subtitles and Narration menus exclusively for the second game without affecting the first? If yes, then how do I use them in the 2nd game since AC will automatically use the 1st one.

Also, can I reuse a dialogue while keeping the same ID? For example, I have dialogue ID 335 and want to use it in another scene without creating duplicate entries when gathering the game’s text.

Comments

  • "same source code" as in: both games are present in the same project, or the same Managers?

    If you're using the same Managers, you'd have to create two pairs of your Subtitles / Narration menus (one set for each game), and then lock the one you don't want to use - either in the Menu properties, or with Actions.

    Also, can I reuse a dialogue while keeping the same ID?

    The Speech Manager's Matching text ID merging field can be used to use a single ID for speech lines that share the same text.

    Alternatively, you can use this Action on the AC wiki to play dialogue from an existing speech line ID:

    https://adventure-creator.fandom.com/wiki/Playing_speech_from_ID

  • Yes, both games are part of the same project and share the same managers. The reason I want to keep the managers is that I plan to bundle both games into a collection once the second game is released. My only concern is the subtitles and narration menus, as they will be different in the second game.
    Could you please tell me how to lock the Subtitles/Narration menus using actions?

    P.S. The text ID merging script worked perfectly. Thank you!

  • The Menu: Change state Action has methods to lock and unlock Menus at runtime.

  • When I use the Menu: Change State action to turn off my main "Subtitles" menu, how does AC activate the Subtitles_02 menu? Do I need to use the Menu: Change State action again to turn on the Subtitles_02 menu and then create my dialogues?
    Action01: Menu: Change State action to turn off Subtitles (used in the 1st game)
    Action02: Menu: Change State action to turn On Subtitles_02 (To be used in the 2nd game)
    Action03: Use dialogue action which will use Subtitles_02

  • Yes, you'll need to run a pair of them to lock on / unlock the other.

    If each game always shows its own Subtitles menu, however, you don't need to run this pair each time a line plays - just set the lock state when the game begins.

  • Thank you, Chris o:)

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.