This commit is contained in:
Martin Haye 2016-07-10 17:18:07 -07:00
commit 1fae938e8a

View File

@ -256,6 +256,224 @@
</block>
</next>
</block>
<block inline="false" type="controls_if">
<mutation else="1"></mutation>
<value name="IF0">
<block type="interaction_has_item">
<field name="NAME">quest item</field>
</block>
</value>
<statement name="DO0">
<block type="text_clear_window">
<next>
<block inline="false" type="text_print">
<value name="VALUE">
<block type="text">
<field name="TEXT">Already beat boss</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="graphics_set_portrait">
<field name="NAME">Boss pic</field>
<next>
<block inline="false" type="text_print">
<value name="VALUE">
<block type="text" >
<field name="TEXT">Pre-boss fight message</field>
</block>
</value>
<next>
<block type="text_getanykey" >
<next>
<block type="events_start_encounter">
<field name="CODE">Boss code</field>
<next>
<block type="graphics_set_portrait" >
<field name="NAME">Combat win</field>
<next>
<block type="text_clear_window" >
<next>
<block inline="false" type="text_print" >
<value name="VALUE">
<block type="text" >
<field name="TEXT">winning message</field>
</block>
</value>
<next>
<block type="interaction_give_item" >
<field name="NAME">Quest item</field>
<next>
<block type="text_getanykey"></block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="graphics_set_portrait" >
<field name="NAME">picture</field>
<next>
<block type="text_clear_window" >
<next>
<block inline="false" type="text_print" >
<value name="VALUE">
<block type="text" >
<field name="TEXT">text</field>
</block>
</value>
<next>
<block inline="false" type="controls_if" >
<value name="IF0">
<block type="text_getboolean"></block>
</value>
<statement name="DO0">
<block inline="false" type="controls_if" >
<mutation else="1"></mutation>
<value name="IF0">
<block inline="true" type="logic_compare" >
<field name="OP">GTE</field>
<value name="A">
<block type="interaction_get_stat" >
<field name="NAME">Gold</field>
</block>
</value>
<value name="B">
<block type="math_number" >
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="interaction_decrease_stat" >
<field name="NAME">Gold</field>
<field name="AMOUNT">0</field>
<next>
<block type="text_clear_window" >
<next>
<block inline="false" type="text_print" >
<value name="VALUE">
<block type="text" >
<field name="TEXT">text for sold</field>
</block>
</value>
<next>
<block type="interaction_give_item" >
<field name="NAME">item</field>
<next>
<block type="text_getanykey"></block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="text_clear_window" >
<next>
<block inline="false" type="text_print" >
<value name="VALUE">
<block type="text" >
<field name="TEXT">Text for no sale</field>
</block>
</value>
<next>
<block type="text_getanykey"></block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="events_move_backward"></block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block inline="false" type="text_print">
<value name="VALUE">
<block type="text">
<field name="TEXT"></field>
</block>
</value>
<next>
<block inline="false" type="controls_if">
<value name="IF0">
<block type="interaction_has_item">
<field name="NAME"></field>
</block>
</value>
<statement name="DO0">
<block inline="false" type="controls_if">
<mutation else="1"></mutation>
<statement name="DO0">
<block type="text_clear_window">
<next>
<block inline="false" type="text_print">
<value name="VALUE">
<block type="text">
<field name="TEXT"></field>
</block>
</value>
<next>
<block type="text_getanykey"></block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="text_clear_window">
<next>
<block inline="false" type="text_print">
<value name="VALUE">
<block type="text">
<field name="TEXT"></field>
</block>
</value>
<next>
<block type="interaction_give_item">
<field name="NAME"></field>
<next>
<block type="text_getanykey"></block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</category>
</xml>