New C3 user here.
I'm using bbenny93's https://www.construct.net/en/tutorials/dialogue-box-lazy-people-1177 to study XML, and to look at one way of implementing a dialogue system.
I think I understand in general terms what bbenny93 is doing: creating a JSON dictionary, and setting the key values to XML attributes in order to call lines of dialogue, and whatever functions might be related to that dialogue (animations, audio, cursor object, etc.). However, I can't understand the expressions bbenny93 is using to go about this, or why certain steps are necessary.
Some questions:
1)Line 50: ProjectVariables sets the key "name" equal to Function.Param(0). Which function is this does this apply to? "dialogue"? "create box"? Does it matter that "create box" doesn't seem to have any parameters? What will the value of "name" be at this point in, say, the Demo layout?
2) Line 50: System sets the "dialogue" parameter, "dialogue_box_project_prefix" to... what? What does the expression "&ProjectVariables.Get("name")&"']/@ mean?
3)Line 78: What in the wide wide world of sports is a'going on here? RegexMatchCount and all that follows it look like Greek to me.
I've read this XML introduction https://www.liquid-technologies.com/xpath-tutorial, this tutorial on XML Parsing https://www.construct.net/en/tutorials/xml-parsing-209 and this one on using XML for dialogue https://www.construct.net/en/tutorials/read-xml-game-talk-518. I've also recreated and played around with the event sheets for the C3 tutorials myself. The latter tutorial says, "I hope you already understand the use of &ReferencingAVariableLikeThis&, if not, look into the Text Box tutorials as they can provide insight." So far these directions have proven too nebulous to be helpful. I also tried the Expressions and XML sections of the manual, but they weren't much help.
If anybody can help me to understand the above, or point me in the direction of resources that might provide more comprehensive explanations of the problems in question, I'd be very grateful.