sorry for my bad title.
I'm neither a professional developer nor a fluent english speaker.
I just want to put some 'text' into the middle of dialogue.
(I'm going to use .csv file to store dialogues)
"I want Y(1~50) units of X("Water" or "Food" or "Ammunition")"
how do I put text into 'Y' and 'X' in dialog above?
Develop games in your browser. Powerful, performant & highly capable.
Set text to "I want " & unitQuantity & " units of " & unitName
If you load these lines of text from csv, it may be easier to put tags in them and then use replace expression.
You can mark tags with some rarely used symbol - #$@%& etc.
For example, CSV file contains this string:
"I want #quantity# units of #name#"
And then you do:
Set text to replace(textFromCSV, "#quantity#", str(unitQuantity))
Set text to replace(textFromCSV, "#name#", unitName)
thanks! that's what I wanted.