Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <macro:lives>
- <args>
- <id type="string"/>
- <period type="int"/>
- </args>
- <body>
- <scheduled_action_trigger id="${id}_trigger">
- <action>
- <scheduled_trigger_action>
- <available>
- <condition_compare_int
- compare="lt"
- value2="3">
- <value1>
- <object_param_int_accessor
- object="${id}"
- param_int="count"/>
- </value1>
- </condition_compare_int>
- </available>
- <operation>
- <user_operation_list>
- <operations>
- <element>
- <user_operation_set_int
- object="${id}"
- param_int="count">
- <value>
- <operator_summ_int value1="1">
- <value2>
- <object_param_int_accessor
- object="${id}"
- param_int="count"/>
- </value2>
- </operator_summ_int>
- </value>
- </user_operation_set_int>
- </element>
- <element>
- <user_operation_set_int
- object="${id}_trigger"
- param_int="schedule_time">
- <value>
- <accumulator_int>
- <values>
- <element>
- <object_param_int_accessor
- object="${id}_trigger"
- param_int="schedule_time"/>
- </element>
- <element>${period}</element>
- </values>
- </accumulator_int>
- </value>
- </user_operation_set_int>
- </element>
- </operations>
- </user_operation_list>
- </operation>
- </scheduled_trigger_action>
- </action>
- </scheduled_action_trigger>
- </body>
- </macro:lives>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement