zwWavCeFFEa5.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <behavior agenttype="red::RedBehaviacTree" name="zwWavCeFFEa5" version="5">
  3. <node class="Sequence" id="0">
  4. <node class="IfElse" id="1">
  5. <node class="Condition" id="2">
  6. <property Operator="Less"/>
  7. <property Opl="Self.red::RedBehaviacTree::getCustomFloat(&quot;步次&quot;)"/>
  8. <property Opr="Self.red::RedBehaviacTree::getLoopTimes()"/>
  9. </node>
  10. <node class="Action" id="3">
  11. <property Method="Self.red::RedBehaviacTree::onLoopEnd()"/>
  12. <property ResultOption="BT_SUCCESS"/>
  13. </node>
  14. <node class="Sequence" id="4">
  15. <node class="Wait" id="5">
  16. <property Time="const float 0.01"/>
  17. </node>
  18. <node class="Compute" id="6">
  19. <property Operator="Add"/>
  20. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  21. <property Opr1="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  22. <property Opr2="Self.red::RedBehaviacTree::getCustomFloat(&quot;步幅&quot;)"/>
  23. </node>
  24. <node class="Action" id="7">
  25. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_0&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  26. <property ResultOption="BT_SUCCESS"/>
  27. </node>
  28. <node class="Assignment" id="8">
  29. <property CastRight="true"/>
  30. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  31. <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_0&quot;)"/>
  32. </node>
  33. <node class="Assignment" id="9">
  34. <property CastRight="false"/>
  35. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  36. <property Opr="Self.red::RedBehaviacTree::floatToString(float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  37. </node>
  38. <node class="Action" id="10">
  39. <property Method="Self.red::RedBehaviacTree::setCustomDataVar(&quot;9gkHsrE6azyj&quot;,&quot;进度起点&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  40. <property ResultOption="BT_SUCCESS"/>
  41. </node>
  42. <node class="Assignment" id="15">
  43. <property CastRight="true"/>
  44. <property Opl="int Self.red::RedBehaviacTree::temporaryVariablesInt"/>
  45. <property Opr="const float 0"/>
  46. </node>
  47. <node class="Assignment" id="14">
  48. <property CastRight="true"/>
  49. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  50. <property Opr="const float 100"/>
  51. </node>
  52. <node class="Assignment" id="16">
  53. <property CastRight="false"/>
  54. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  55. <property Opr="Self.red::RedBehaviacTree::floatFormat(float Self.red::RedBehaviacTree::temporaryVariablesFloat,int Self.red::RedBehaviacTree::temporaryVariablesInt)"/>
  56. </node>
  57. <node class="Action" id="17">
  58. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_2&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  59. <property ResultOption="BT_SUCCESS"/>
  60. </node>
  61. <node class="Compute" id="12">
  62. <property Operator="Div"/>
  63. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  64. <property Opr1="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  65. <property Opr2="Self.red::RedBehaviacTree::getCoderFloat(&quot;P-进度总量&quot;)"/>
  66. </node>
  67. <node class="Action" id="13">
  68. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_1&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  69. <property ResultOption="BT_SUCCESS"/>
  70. </node>
  71. <node class="Assignment" id="19">
  72. <property CastRight="false"/>
  73. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  74. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_2&quot;)"/>
  75. </node>
  76. <node class="Assignment" id="20">
  77. <property CastRight="true"/>
  78. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  79. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  80. </node>
  81. <node class="Action" id="21">
  82. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_3&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  83. <property ResultOption="BT_SUCCESS"/>
  84. </node>
  85. <node class="Compute" id="18">
  86. <property Operator="Mul"/>
  87. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  88. <property Opr1="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_1&quot;)"/>
  89. <property Opr2="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_3&quot;)"/>
  90. </node>
  91. <node class="Action" id="22">
  92. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_4&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  93. <property ResultOption="BT_SUCCESS"/>
  94. </node>
  95. <node class="Assignment" id="23">
  96. <property CastRight="true"/>
  97. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  98. <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_4&quot;)"/>
  99. </node>
  100. <node class="Action" id="11">
  101. <property Method="Self.red::RedBehaviacTree::sceneProgressBar(&quot;NfaEkGSLH10Z&quot;,&quot;gelumYM0dB16&quot;,&quot;t1Y3n36bKDdd&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  102. <property ResultOption="BT_SUCCESS"/>
  103. </node>
  104. <node class="Assignment" id="25">
  105. <property CastRight="true"/>
  106. <property Opl="int Self.red::RedBehaviacTree::temporaryVariablesInt"/>
  107. <property Opr="const float 0"/>
  108. </node>
  109. <node class="Assignment" id="24">
  110. <property CastRight="true"/>
  111. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  112. <property Opr="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  113. </node>
  114. <node class="Assignment" id="26">
  115. <property CastRight="false"/>
  116. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  117. <property Opr="Self.red::RedBehaviacTree::floatFormat(float Self.red::RedBehaviacTree::temporaryVariablesFloat,int Self.red::RedBehaviacTree::temporaryVariablesInt)"/>
  118. </node>
  119. <node class="Action" id="27">
  120. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_5&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  121. <property ResultOption="BT_SUCCESS"/>
  122. </node>
  123. <node class="Assignment" id="28">
  124. <property CastRight="false"/>
  125. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  126. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_5&quot;)"/>
  127. </node>
  128. <node class="Action" id="29">
  129. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_6&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  130. <property ResultOption="BT_SUCCESS"/>
  131. </node>
  132. <node class="Assignment" id="30">
  133. <property CastRight="false"/>
  134. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  135. <property Opr="const string &quot;/&quot;"/>
  136. </node>
  137. <node class="Action" id="31">
  138. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_7&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  139. <property ResultOption="BT_SUCCESS"/>
  140. </node>
  141. <node class="Assignment" id="32">
  142. <property CastRight="false"/>
  143. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  144. <property Opr="Self.red::RedBehaviacTree::getCoderString(&quot;P-进度总量&quot;)"/>
  145. </node>
  146. <node class="Action" id="33">
  147. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_8&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  148. <property ResultOption="BT_SUCCESS"/>
  149. </node>
  150. <node class="Assignment" id="34">
  151. <property CastRight="false"/>
  152. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  153. <property Opr="const string &quot;&quot;"/>
  154. </node>
  155. <node class="Action" id="35">
  156. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_9&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  157. <property ResultOption="BT_SUCCESS"/>
  158. </node>
  159. <node class="Assignment" id="36">
  160. <property CastRight="false"/>
  161. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  162. <property Opr="const string &quot;&quot;"/>
  163. </node>
  164. <node class="Action" id="37">
  165. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_10&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  166. <property ResultOption="BT_SUCCESS"/>
  167. </node>
  168. <node class="Assignment" id="38">
  169. <property CastRight="false"/>
  170. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  171. <property Opr="Self.red::RedBehaviacTree::stringLinkMoreOperator(&quot;__ttbt__localVariableIndex_6&quot;,&quot;__ttbt__localVariableIndex_7&quot;,&quot;__ttbt__localVariableIndex_8&quot;,&quot;__ttbt__localVariableIndex_9&quot;,&quot;__ttbt__localVariableIndex_10&quot;)"/>
  172. </node>
  173. <node class="Action" id="39">
  174. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_11&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  175. <property ResultOption="BT_SUCCESS"/>
  176. </node>
  177. <node class="Assignment" id="40">
  178. <property CastRight="false"/>
  179. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  180. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_11&quot;)"/>
  181. </node>
  182. <node class="Action" id="41">
  183. <property Method="Self.red::RedBehaviacTree::setSceneLabelTitle(&quot;MfPVAHX6MYEg&quot;,&quot;gelumYM0dB16&quot;,&quot;HzMlZ9hZS5Y8&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  184. <property ResultOption="BT_SUCCESS"/>
  185. </node>
  186. </node>
  187. </node>
  188. </node>
  189. </behavior>