Littlebear's Forum Posts

  • Whoops, I just noticed the mistake I made in the code. I've been using the array to compare the 2 text when I should have transferred the array text to a variable. I'm actually shocked how well this works.

  • That's so everything works correctly. I have the code set to wait right after "." is typed, then carry the line to the next array. After that I'm stuck in a constant loop of dialogue.

    For some reason the code will only show me the first 2 lines.

    Line1 "Hi." Line2 "What's up."

  • That's so everything works correctly. I have the code set to wait right after "." appears, then carry the sentence to the next line in array.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It seems to delete the sentence the first time, but for some reason returns the sentence already deleted after pressing the button a 2nd time.

  • I assume you have one element of the array that is a block of text?

    you can use find() and rewrite the string and reassign without whatever you find. you could use a combination of the left() and right() or maybe you can use replace()?

    That's a good idea. Using the replace function works! I'm hoping to replace every line as it's presented in text, but for some reason I'm stuck in a text loop. The game keeps showing me the 2nd, and 3rd line of text instead of moving on the next line of dialogue as I've stacked every line in a single array.

    Example: "hi there. how are you. what's that."

  • Hi there, I'm wondering is it possible to delete a sentence from an array? Or perhaps select a line of dialogue within text?

  • Or is it possible to select all text until the selection reaches a certain character?

  • Hi there, I'm wondering is it possible to delete a sentence from an array? Or perhaps to remove a line of dialogue?

  • I don't know.. I never used this template, but I'm sure it can be updated for your needs.

    Good news! I just found a way to move the script, but... I'm still baffled on how to delete the first sentence.

  • Oh, and I should mention that I've had limited success from crud castle's capx.

    https://www.construct.net/en/forum/construct-2/works-in-progressfeedback-24/twitch-overlay-integrated-125648/page-2

    The text failed to load, and for some reason I could only get a message notification when I posted a text in chat. Also I tested this in a web browser if that helps.

  • > Do you think there's a way to select text after a certain character?

    Not sure I understand the question. Do you mean highlight text after some tag?

    Oh sorry let me explain. I need to delete the first sentence after it's displayed, then move the rest of text to the next line of dialog.

    By doing this I won't have to separate the text into individual XML/array lines. Rather then placing all the text I need into the first slot, then retrieving the next sentence.

    Example:

    text1: Hi there. What's up? Nice day today.

    text2: 0

    converted to

    text1: 0

    text2: What's up? Nice day today.

  • Here is a good example, it uses xml to store dialog options:

    https://www.construct.net/en/forum/construct-2/how-do-i-18/zelda-dialogue-system-capx-117812#forumPost857678

    Thank you, this is super close to what I'm looking for. I had no idea you could insert text into XML files.

    Do you think there's a way to select text after a certain character?

  • Hi there. I'm trying to create a automatic script system for my game. I'm not sure how to go about this. I want to select all the text after "." "!" "?" And place all the text after this character to the next (X) array until there are no more text.

    Example:

    <hint id='text1'>Hi there. How are you today? Doing well I can see!</hint>

    converted to:

    <hint id='text1'>Hi there.</hint>

    <hint id='text2'>How are you today?</hint>

    <hint id='text3'>Doing well I can see!</hint>

    Tagged:

  • Hi there, I'm hoping to create a simple text retrieval system from twitch's chat. Is there a way to receive text, and place it within a textbox?

    Also I'm curious to know if there's a way to detect when someone has sent a text within chat.

    Tagged:

  • OMG, this is exactly what I need thank you! : D

    I took your code, and combined it with rex's timing plugin to make this voice generator work in 1 event. Thanks again. : )