n4r8R6mdrElM.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <behavior agenttype="red::RedBehaviacTree" name="n4r8R6mdrElM" version="5">
  3. <node class="Sequence" id="0">
  4. <node class="Assignment" id="3">
  5. <property CastRight="false"/>
  6. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  7. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;物品数量&quot;)"/>
  8. </node>
  9. <node class="Assignment" id="4">
  10. <property CastRight="true"/>
  11. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  12. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  13. </node>
  14. <node class="Action" id="5">
  15. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_0&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  16. <property ResultOption="BT_SUCCESS"/>
  17. </node>
  18. <node class="IfElse" id="1">
  19. <node class="Condition" id="2">
  20. <property Operator="Equal"/>
  21. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_0&quot;)"/>
  22. <property Opr="const float 2"/>
  23. </node>
  24. <node class="Sequence" id="6">
  25. <node class="Action" id="7">
  26. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;mex7KBdJhZj8&quot;,&quot;0&quot;)"/>
  27. <property ResultOption="BT_SUCCESS"/>
  28. </node>
  29. </node>
  30. <node class="Noop" id="8"/>
  31. </node>
  32. <node class="Assignment" id="11">
  33. <property CastRight="false"/>
  34. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  35. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;物品数量&quot;)"/>
  36. </node>
  37. <node class="Assignment" id="12">
  38. <property CastRight="true"/>
  39. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  40. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  41. </node>
  42. <node class="Action" id="13">
  43. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_1&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  44. <property ResultOption="BT_SUCCESS"/>
  45. </node>
  46. <node class="IfElse" id="9">
  47. <node class="Condition" id="10">
  48. <property Operator="Equal"/>
  49. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_1&quot;)"/>
  50. <property Opr="const float 3"/>
  51. </node>
  52. <node class="Sequence" id="14">
  53. <node class="Action" id="15">
  54. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;DKpOTNDkrgkS&quot;,&quot;1&quot;)"/>
  55. <property ResultOption="BT_SUCCESS"/>
  56. </node>
  57. </node>
  58. <node class="Noop" id="16"/>
  59. </node>
  60. <node class="Assignment" id="19">
  61. <property CastRight="false"/>
  62. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  63. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;物品数量&quot;)"/>
  64. </node>
  65. <node class="Assignment" id="20">
  66. <property CastRight="true"/>
  67. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  68. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  69. </node>
  70. <node class="Action" id="21">
  71. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_2&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  72. <property ResultOption="BT_SUCCESS"/>
  73. </node>
  74. <node class="IfElse" id="17">
  75. <node class="Condition" id="18">
  76. <property Operator="Equal"/>
  77. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_2&quot;)"/>
  78. <property Opr="const float 4"/>
  79. </node>
  80. <node class="Sequence" id="22">
  81. <node class="Action" id="23">
  82. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;2gTXISEavSfB&quot;,&quot;2&quot;)"/>
  83. <property ResultOption="BT_SUCCESS"/>
  84. </node>
  85. </node>
  86. <node class="Noop" id="24"/>
  87. </node>
  88. <node class="Assignment" id="27">
  89. <property CastRight="false"/>
  90. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  91. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;物品数量&quot;)"/>
  92. </node>
  93. <node class="Assignment" id="28">
  94. <property CastRight="true"/>
  95. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  96. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  97. </node>
  98. <node class="Action" id="29">
  99. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_3&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  100. <property ResultOption="BT_SUCCESS"/>
  101. </node>
  102. <node class="IfElse" id="25">
  103. <node class="Condition" id="26">
  104. <property Operator="Equal"/>
  105. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_3&quot;)"/>
  106. <property Opr="const float 5"/>
  107. </node>
  108. <node class="Sequence" id="30">
  109. <node class="Action" id="31">
  110. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;35xHoAZJv53U&quot;,&quot;5&quot;)"/>
  111. <property ResultOption="BT_SUCCESS"/>
  112. </node>
  113. </node>
  114. <node class="Noop" id="32"/>
  115. </node>
  116. <node class="Assignment" id="35">
  117. <property CastRight="false"/>
  118. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  119. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;物品数量&quot;)"/>
  120. </node>
  121. <node class="Assignment" id="36">
  122. <property CastRight="true"/>
  123. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  124. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  125. </node>
  126. <node class="Action" id="37">
  127. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_4&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  128. <property ResultOption="BT_SUCCESS"/>
  129. </node>
  130. <node class="IfElse" id="33">
  131. <node class="Condition" id="34">
  132. <property Operator="Equal"/>
  133. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_4&quot;)"/>
  134. <property Opr="const float 6"/>
  135. </node>
  136. <node class="Sequence" id="38">
  137. <node class="Action" id="39">
  138. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;kMDE2lMPGmkW&quot;,&quot;6&quot;)"/>
  139. <property ResultOption="BT_SUCCESS"/>
  140. </node>
  141. </node>
  142. <node class="Noop" id="40"/>
  143. </node>
  144. <node class="Assignment" id="43">
  145. <property CastRight="false"/>
  146. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  147. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;物品数量&quot;)"/>
  148. </node>
  149. <node class="Assignment" id="44">
  150. <property CastRight="true"/>
  151. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  152. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  153. </node>
  154. <node class="Action" id="45">
  155. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_5&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  156. <property ResultOption="BT_SUCCESS"/>
  157. </node>
  158. <node class="IfElse" id="41">
  159. <node class="Condition" id="42">
  160. <property Operator="Equal"/>
  161. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_5&quot;)"/>
  162. <property Opr="const float 7"/>
  163. </node>
  164. <node class="Sequence" id="46">
  165. <node class="Action" id="47">
  166. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;W89hi8ypc3e1&quot;,&quot;4&quot;)"/>
  167. <property ResultOption="BT_SUCCESS"/>
  168. </node>
  169. </node>
  170. <node class="Noop" id="48"/>
  171. </node>
  172. <node class="Assignment" id="51">
  173. <property CastRight="false"/>
  174. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  175. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;物品数量&quot;)"/>
  176. </node>
  177. <node class="Assignment" id="52">
  178. <property CastRight="true"/>
  179. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  180. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  181. </node>
  182. <node class="Action" id="53">
  183. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_6&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  184. <property ResultOption="BT_SUCCESS"/>
  185. </node>
  186. <node class="IfElse" id="49">
  187. <node class="Condition" id="50">
  188. <property Operator="Equal"/>
  189. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_6&quot;)"/>
  190. <property Opr="const float 8"/>
  191. </node>
  192. <node class="Sequence" id="54">
  193. <node class="Action" id="55">
  194. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;d1fPG5g5p8zD&quot;,&quot;7&quot;)"/>
  195. <property ResultOption="BT_SUCCESS"/>
  196. </node>
  197. </node>
  198. <node class="Noop" id="56"/>
  199. </node>
  200. <node class="Assignment" id="59">
  201. <property CastRight="false"/>
  202. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  203. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;物品数量&quot;)"/>
  204. </node>
  205. <node class="Assignment" id="60">
  206. <property CastRight="true"/>
  207. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  208. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  209. </node>
  210. <node class="Action" id="61">
  211. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_7&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  212. <property ResultOption="BT_SUCCESS"/>
  213. </node>
  214. <node class="IfElse" id="57">
  215. <node class="Condition" id="58">
  216. <property Operator="Equal"/>
  217. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_7&quot;)"/>
  218. <property Opr="const float 9"/>
  219. </node>
  220. <node class="Sequence" id="62">
  221. <node class="Action" id="63">
  222. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;MZKlARaI0nJE&quot;,&quot;3&quot;)"/>
  223. <property ResultOption="BT_SUCCESS"/>
  224. </node>
  225. </node>
  226. <node class="Noop" id="64"/>
  227. </node>
  228. </node>
  229. </behavior>