-
Notifications
You must be signed in to change notification settings - Fork 6
/
create_dummy_bot.xml
1 lines (1 loc) · 8.83 KB
/
create_dummy_bot.xml
1
<block xmlns="https://developers.google.com/blockly/xml" type="modBlock" deletable="false" x="812.6056702076587" y="-1419.4425453032663"><statement name="RULES"><block type="ruleBlock"><mutation isOnGoingEvent="true"/><field name="NAME">set however you want</field><field name="EVENTTYPE">Ongoing</field><field name="OBJECTTYPE">Player</field><statement name="CONDITIONS"><block type="conditionBlock"><value name="CONDITION"><block type="GetSoldierState"><value name="VALUE-0"><block type="EventPlayer"/></value><value name="VALUE-1"><block type="SoldierStateBoolItem"><field name="VALUE-0">SoldierStateBool</field><field name="VALUE-1">IsAISoldier</field></block></value></block></value></block></statement><statement name="ACTIONS"><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value><value name="VALUE-1"><block type="EventPlayer"/></value></block></statement><next><block type="ruleBlock"><mutation isOnGoingEvent="true"/><field name="NAME">teleport bot and disable</field><field name="EVENTTYPE">Ongoing</field><field name="OBJECTTYPE">Player</field><statement name="CONDITIONS"><block type="conditionBlock"><value name="CONDITION"><block type="And"><value name="VALUE-0"><block type="GetSoldierState"><value name="VALUE-0"><block type="EventPlayer"/></value><value name="VALUE-1"><block type="SoldierStateBoolItem"><field name="VALUE-0">SoldierStateBool</field><field name="VALUE-1">IsInteracting</field></block></value></block></value><value name="VALUE-1"><block type="Not"><value name="VALUE-0"><block type="GetSoldierState"><value name="VALUE-0"><block type="EventPlayer"/></value><value name="VALUE-1"><block type="SoldierStateBoolItem"><field name="VALUE-0">SoldierStateBool</field><field name="VALUE-1">IsAISoldier</field></block></value></block></value></block></value></block></value></block></statement><statement name="ACTIONS"><block type="Teleport"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><value name="VALUE-1"><block type="WorldPositionOf"><value name="VALUE-0"><block type="CreateVector"><value name="VALUE-0"><block type="Number"><field name="NUM">0</field></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value><value name="VALUE-2"><block type="Number"><field name="NUM">-5</field></block></value></block></value><value name="VALUE-1"><block type="EventPlayer"/></value></block></value><value name="VALUE-2"><block type="Number"><field name="NUM">0</field></block></value><next><block type="Wait"><value name="VALUE-0"><block type="Number"><field name="NUM">0.5</field></block></value><next><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="x;OeO:-yqCqGhdIV,9ID" variabletype="Player">bot_pos</field><value name="OBJECT"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value></block></value><value name="VALUE-1"><block type="WorldPositionOf"><value name="VALUE-0"><block type="CreateVector"><value name="VALUE-0"><block type="Number"><field name="NUM">0</field></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value><value name="VALUE-2"><block type="Number"><field name="NUM">-5</field></block></value></block></value><value name="VALUE-1"><block type="EventPlayer"/></value></block></value><next><block type="SetPlayerMaxHealth"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">1000</field></block></value><next><block type="While"><value name="VALUE-0"><block type="Not"><value name="VALUE-0"><block type="GetSoldierState"><value name="VALUE-0"><block type="EventPlayer"/></value><value name="VALUE-1"><block type="SoldierStateBoolItem"><field name="VALUE-0">SoldierStateBool</field><field name="VALUE-1">IsCrouching</field></block></value></block></value></block></value><statement name="DO"><block type="Teleport"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><value name="VALUE-1"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="x;OeO:-yqCqGhdIV,9ID" variabletype="Player">bot_pos</field><value name="OBJECT"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value></block></value></block></value><value name="VALUE-2"><block type="Number"><field name="NUM">0</field></block></value><next><block type="Wait"><value name="VALUE-0"><block type="Number"><field name="NUM">0.01</field></block></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement><next><block type="ruleBlock"><mutation isOnGoingEvent="true"/><field name="NAME">set however you want</field><field name="EVENTTYPE">Ongoing</field><field name="OBJECTTYPE">Player</field><statement name="CONDITIONS"><block type="conditionBlock"><value name="CONDITION"><block type="Equals"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><value name="VALUE-1"><block type="EventPlayer"/></value></block></value></block></statement><statement name="ACTIONS"><block type="While"><value name="VALUE-0"><block type="Equals"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><value name="VALUE-1"><block type="EventPlayer"/></value></block></value><statement name="DO"><block type="SetHeal"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">999</field></block></value><value name="VALUE-2"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><next><block type="ForceSwitchInventory"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><value name="VALUE-1"><block type="InventorySlotsItem"><field name="VALUE-0">InventorySlots</field><field name="VALUE-1">PrimaryWeapon</field></block></value><next><block type="Wait"><value name="VALUE-0"><block type="Number"><field name="NUM">0.01</field></block></value><next><block type="ForceSwitchInventory"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="0_O(g%eBcZUSjf1bvT0v" variabletype="Global">bot</field></block></value></block></value><value name="VALUE-1"><block type="InventorySlotsItem"><field name="VALUE-0">InventorySlots</field><field name="VALUE-1">SecondaryWeapon</field></block></value></block></next></block></next></block></next></block></statement></block></statement></block></next></block></next></block></statement></block>