The Bytecode Club

Full Version: Troop Deployments 5.5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Is there a way to change the troop deployment style so that it deploys a line of barbarians down one side, then immediately follows up with a line of archers behind it, then proceeds to the other three sides in the same manner.

At the moment it deploys a line of barbarians to all four sides before starting on the archers. This is inefficient as most of the barbs are dead by the time the archers come to assist.


Using 5.5 atm.


Any advice on altering the script to product the effect would be helpful.


Thanks-
SS.
+1
would be much much better
Yes indeed!

+2
New update here
https://the.bytecode.club/showthread.php?tid=441

v5.5 no ready to release
(02-05-2015, 11:50 PM)Atomic Wrote: [ -> ]Yes indeed!
+2
I just tested the code you posted. Works well, but it still deploys both sets of barbs on the corners before then proceeding with archers.
Was hoping for barbs and archers behind them straight away.

Thanks to all the dev's working on this! Keep up the good work.
You all can edit it by your self to your needs...
I did it as well...

Just edit the sleeptimes in the attack allgorithm. Fighting has much more success to me, here is my code (v5.5)

Code:
; ================================================================================
         ; ========= Here is coded the main attack strategy ===============================
         ; ========= Feel free to experiment something else ===============================
         ; ================================================================================
         algorithmTH()
         if LauchTroop($eGiant, $nbSides, 1, 1, 1) Then
            If _Sleep(200) Then Return
               EndIf
         if LauchTroop($eBarbarian, $nbSides, 1, 2) Then
            If _Sleep(200) Then Return
               EndIf
         if LauchTroop($eArcher, $nbSides, 1, 2) Then
            If _Sleep(100) Then Return
               EndIf
         If _Sleep(200) Then Return
         If LauchTroop($eBarbarian, $nbSides, 2, 2) Then
            If _Sleep(100) Then Return
            EndIf
         if LauchTroop($eWallbreaker, $nbSides, 1, 1, 1) Then
            If _Sleep(50) Then Return
               EndIf
         If LauchTroop($eGoblin, $nbSides, 1, 2) Then
            If _Sleep(50) Then Return
               EndIf
         If LauchTroop($eArcher, $nbSides, 2, 2) Then
            If _Sleep(50) Then Return
               EndIf
         If LauchTroop($eGoblin, $nbSides, 2, 2) Then
            If _Sleep(50) Then Return
               EndIf
         ; ================================================================================
Remove the if sleep = more speed

Edited and Tested by M Khalid
hi Drllmo!

which Au3 u edited? and which Au3 will the bot be used "algorithm_AllTroops - original" or "algorithm_AllTroops" ?
because each of it have a different timing.
(02-07-2015, 10:34 AM)reztars Wrote: [ -> ]hi Drllmo!

which Au3 u edited? and which Au3 will the bot be used "algorithm_AllTroops - original" or "algorithm_AllTroops" ?
because each of it have a different timing.

algorithm_AllTroops

source: https://the.bytecode.club/showthread.php?tid=601
just asking, why "algorithm_AllTroops - original" and "algorithm_AllTroops" has a different delay deployment?
the first file (original one) contain a thousand delay (2000, 1000 and 500), the second file contain a hundred delay (400, 200, and 100)
Pages: 1 2