Question by
INKnightStudio · Dec 07, 2019 at 02:57 PM ·
c#xmldialogue
How to work with XML for dialogues systems (Handling expression, name, etc)?
How I can make a C# script where I can search for the scene_id and take all the sentences inside it, getting the atributtes in each sentence?
Example XML:
<script>
<scene id="test_scene">
<sentence speaker="paulo" expression="suspicious">Sentence 1</sentence>
<sentence speaker="paulo" expression="serious">Sentence 2</sentence>
<sentence speaker="paulo" expression="silly">Sentence 3</sentence>
</scene>
</script>
Comment
Your answer
Follow this Question
Related Questions
Windows Application : using Unity vs using native C# plus WPF 1 Answer
How can I parse two or more xml data into c # by using Resource folder? 1 Answer
Player Moves During Dialogue (but scripted not to...) 0 Answers
NullReferenceException with XML Deserializer 0 Answers
(C#) How can I make a rich text autotyper for an rpg dialogue box? 1 Answer