The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Troop Deployments 5.5

Started by sevensamurai · Feb 5, 2015

11 replies166,861 views
Feb 5, 2015#1

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.

Feb 5, 2015#2

+1
would be much much better

Feb 5, 2015#3

Yes indeed!

+2

Feb 5, 2015#5

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.

Feb 5, 2015#6

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)

; ================================================================================
		 ; ========= 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
		 ; ================================================================================
Feb 5, 2015#7

Remove the if sleep = more speed

Edited and Tested by M Khalid

Feb 7, 2015#8

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.

Feb 7, 2015#10

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)

Got something to add?

Log in to post a reply.

Join the conversation