sweettext
Version:
A simple, custom narration library.
111 lines (110 loc) • 1.27 kB
text/xml
<scene>
<include src="abc/abc"/>
<s>
<text>
abc
</text>
<s>
<text>
def
</text>
</s>
</s>
<s>
<text>
ghi
</text>
<s>
<set foo="foo"/>
<text>
jkl v{foo}
</text>
</s>
<s>
<set bar="true"/>
<text>
mno v{bar|bar|nil}
</text>
</s>
<s>
<set bar="false"/>
<text>
pqr v{bar|bar|foo}
</text>
</s>
</s>
<s>
<choice prompt="abc">
<text>
abc
</text>
<s>
<text>
def
</text>
</s>
<s>
<text>
ghi
</text>
</s>
</choice>
<choice prompt="def">
<text>
def
</text>
</choice>
</s>
<s>
<text>
vwx
</text>
</s>
<s next="ghi">
<text>
abc
</text>
</s>
<s>
<text>
def
</text>
</s>
<s id="ghi">
<text>
ghi
</text>
</s>
<s>
<set foo="0"/>
<add foo="1"/>
<text>
foo v{foo}
</text>
</s>
<s>
<set cat="meow"/>
</s>
<s if="cat == meow">
<text>
meow
</text>
</s>
<s if="cat != meow">
<text>
boof
</text>
</s>
<s>
<text>
meow
</text>
<choice prompt="abc" if="false"/>
<choice prompt="def">
<text>
def
</text>
</choice>
</s>
<s next="abc"/>
</scene>