Better conditional / appearance test.
[python-bulletml.git] / examples / popcorn / towards.xml
1 <?xml version="1.0" ?>
2 <!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">
3
4 <bulletml xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">
5 <action label="top">
6 <if><cond>$rand > 0.7</cond>
7 <then><fire><bullet/><appearance>red</appearance></fire></then>
8 <else>
9 <if><cond>$rand > 0.5</cond>
10 <then><fire><bullet/><appearance>blue</appearance></fire></then>
11 <else><fire><bullet/><appearance>green</appearance></fire></else>
12 </if>
13 </else>
14 </if>
15 </action>
16 </bulletml>