Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.20 KB | None | 0 0
  1.     variable iterator DroneIterator
  2.     variable index:activedrone ActiveDroneList
  3.     Me:DoGetActiveDrones[ActiveDroneList]
  4.     ActiveDroneList:GetIterator[DroneIterator]
  5.     echo "ActiveDroneList.Used:" ${ActiveDroneList.Used}
  6.  
  7.             variable index:int returnIndex
  8.             variable index:int engageIndex
  9.  
  10.             do
  11.             {
  12.                 if ${DroneIterator.Value.ToEntity.ShieldPct} < 80 || \
  13.                     ${DroneIterator.Value.ToEntity.ArmorPct} < 50 || \
  14.                     ${DroneIterator.Value.ToEntity.StructurePct} < 80
  15.                 {
  16.                     UI:UpdateConsole["Recalling Damaged Drone ${DroneIterator.Value.ID}"]
  17.                     ;UI:UpdateConsole["Debug: Shield: ${DroneIterator.Value.ToEntity.ShieldPct}, Armor: ${DroneIterator.Value.ToEntity.ArmorPct}, Structure: ${DroneIterator.Value.ToEntity.StructurePct}"]
  18.                     returnIndex:Insert[${DroneIterator.Value.ID}]
  19.                     This.WaitingForDrones:Set[20]
  20.  
  21.                 }
  22.                 else
  23.                 {
  24.                     ;UI:UpdateConsole["Debug: Engage Target ${DroneIterator.Value.ID}"]
  25.                     engageIndex:Insert[${DroneIterator.Value.ID}]
  26.                 }
  27.             }
  28.             while ${DroneIterator:Next(exists)}
  29.  
  30.     echo "returnIndex.Used:" ${returnIndex.Used}           
  31.             EVE:DronesReturnToDroneBay[returnIndex]
  32.  
  33.     echo "engageIndex.Used:" ${engageIndex.Used}           
  34.             EVE:DronesEngageMyTarget[engageIndex]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement