123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <?xml version="1.0" encoding="UTF-8"?>
- <behavior agenttype="red::RedBehaviacTree" name="Mq98XlZZop07" version="5">
- <node class="Sequence" id="0">
- <node class="IfElse" id="1">
- <node class="Condition" id="2">
- <property Operator="Less"/>
- <property Opl="Self.red::RedBehaviacTree::getCustomFloat("步次")"/>
- <property Opr="Self.red::RedBehaviacTree::getLoopTimes()"/>
- </node>
- <node class="Action" id="3">
- <property Method="Self.red::RedBehaviacTree::onLoopEnd()"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Sequence" id="4">
- <node class="Wait" id="5">
- <property Time="const float 0.01"/>
- </node>
- <node class="Compute" id="6">
- <property Operator="Add"/>
- <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
- <property Opr1="Self.red::RedBehaviacTree::getCustomFloat("进度起点")"/>
- <property Opr2="Self.red::RedBehaviacTree::getCustomFloat("步幅")"/>
- </node>
- <node class="Action" id="7">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables("__ttbt__localVariableIndex_0",float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="8">
- <property CastRight="true"/>
- <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
- <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat("__ttbt__localVariableIndex_0")"/>
- </node>
- <node class="Assignment" id="9">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="Self.red::RedBehaviacTree::floatToString(float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
- </node>
- <node class="Action" id="10">
- <property Method="Self.red::RedBehaviacTree::setCustomDataVar("DDxfptcb7dxk","进度起点",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Compute" id="11">
- <property Operator="Div"/>
- <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
- <property Opr1="Self.red::RedBehaviacTree::getCustomFloat("进度起点")"/>
- <property Opr2="Self.red::RedBehaviacTree::getCustomFloat("进度总量")"/>
- </node>
- <node class="Action" id="12">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables("__ttbt__localVariableIndex_1",float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Compute" id="13">
- <property Operator="Mul"/>
- <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
- <property Opr1="Self.red::RedBehaviacTree::getLocalTreeFloat("__ttbt__localVariableIndex_1")"/>
- <property Opr2="const float 100"/>
- </node>
- <node class="Action" id="14">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables("__ttbt__localVariableIndex_2",float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="15">
- <property CastRight="true"/>
- <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
- <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat("__ttbt__localVariableIndex_2")"/>
- </node>
- <node class="Action" id="16">
- <property Method="Self.red::RedBehaviacTree::redProgressBar("73wEcRMIkaxN","PDvXtuZ9hXBL",float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="18">
- <property CastRight="true"/>
- <property Opl="int Self.red::RedBehaviacTree::temporaryVariablesInt"/>
- <property Opr="const float 0"/>
- </node>
- <node class="Assignment" id="17">
- <property CastRight="true"/>
- <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
- <property Opr="Self.red::RedBehaviacTree::getCustomFloat("进度起点")"/>
- </node>
- <node class="Assignment" id="19">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="Self.red::RedBehaviacTree::floatFormat(float Self.red::RedBehaviacTree::temporaryVariablesFloat,int Self.red::RedBehaviacTree::temporaryVariablesInt)"/>
- </node>
- <node class="Action" id="20">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString("__ttbt__localVariableIndex_3",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="21">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="Self.red::RedBehaviacTree::getLocalTreeString("__ttbt__localVariableIndex_3")"/>
- </node>
- <node class="Action" id="22">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString("__ttbt__localVariableIndex_4",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="23">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="const string "/""/>
- </node>
- <node class="Action" id="24">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString("__ttbt__localVariableIndex_5",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="25">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="Self.red::RedBehaviacTree::getCustomString("进度总量")"/>
- </node>
- <node class="Action" id="26">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString("__ttbt__localVariableIndex_6",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="27">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="const string """/>
- </node>
- <node class="Action" id="28">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString("__ttbt__localVariableIndex_7",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="29">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="const string """/>
- </node>
- <node class="Action" id="30">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString("__ttbt__localVariableIndex_8",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="31">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="Self.red::RedBehaviacTree::stringLinkMoreOperator("__ttbt__localVariableIndex_4","__ttbt__localVariableIndex_5","__ttbt__localVariableIndex_6","__ttbt__localVariableIndex_7","__ttbt__localVariableIndex_8")"/>
- </node>
- <node class="Action" id="32">
- <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString("__ttbt__localVariableIndex_9",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- <node class="Assignment" id="33">
- <property CastRight="false"/>
- <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
- <property Opr="Self.red::RedBehaviacTree::getLocalTreeString("__ttbt__localVariableIndex_9")"/>
- </node>
- <node class="Action" id="34">
- <property Method="Self.red::RedBehaviacTree::setLabelTitle("BkkePG2uhp6l","WtpF9xImbjQP",string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
- <property ResultOption="BT_SUCCESS"/>
- </node>
- </node>
- </node>
- </node>
- </behavior>
|