Search Unity

Dialogue System by Tag String

Discussion in 'Scripting' started by mirkojpn, Nov 21, 2019.

  1. mirkojpn

    mirkojpn

    Joined:
    Mar 31, 2018
    Posts:
    126
    i want to make a dialogue system where there is a entry string of tags that will be replaced from the correct world, witch is the best practice in this case? because there is also the different tag for male and female...

    i'm looking to check withc a for look into the entry string for the corresponding tags, but still can't get how to exactly split them
     
  2. mirkojpn

    mirkojpn

    Joined:
    Mar 31, 2018
    Posts:
    126
    for example, if i have multiple tag into a string that will be [{M}something] [{F}something] there is some algorithm to cut out the word from [ to ] process it and return as a single string?
     
  3. cmyd

    cmyd

    Joined:
    Oct 29, 2017
    Posts:
    98
    I don't quite understand what you want, can you be a little more clear.