My reasoning for this being a thing (with the help of the community and their tweaking) is because (and I'll say it again) How are 50 of 100 trebs going to die and 500 of 1000 spearmen going to die when the enemy only sent in 500 axemen. (I might of added/removed/modified some of the things I might of posted above due to hindsight). (Side not, possible rule: Archers can only attack once (to avoid friendly fire or maybe attackers get too close) and archer damage depends on wall level ie: height). (Side note, possible rule: the largest part of the attacking army attacks the largest part of the defending army first until one group dies OR maybe until one group is no longer the largest group). Rams cannot be hurt after 1 until 5 is true.ĭefending offense will not defend until 5 is true.Īttacking defense will not attack until 5 is true. Trebuchet cannot be hurt until 5 is true. Or defender no longer has Spearmen, Swordsmen, and or Heavy Cavalry.Īrchers can not defend if there is no wall.Īrchers die if rams completely take down wall. Might try and finish it.ģ: Archers attack attackers if there's a wall.ĥ: repeat 3-4 until either attackers have no longer have Light Cavalry, Axemen, Mounted Archers, and or Paladin. Doubt this 'code' would even work even if someone with skill revised it from the dead. Let me break it down a bit, also my code is bad and ruff. I know it might be hard to understand LOL. How can i make the + "x" + actually calculate? (ram - trebuchet = ramCurrent)? END OF CHECK FOR, RAM & TREBUCHET & WALL wall loses " + "x" + " lvl and is now " + "x" + " lvl.") Println("trebuchet killed " + "x" + " ram.") START OF CHECK FOR, RAM & TREBUCHET & WALL Start of Tribal wars 2 battle mechanics I just started making this code about an hour or so ago. I started to learn coding in september so go easy on my bad coding, point out errors if you can. The largest attacking group goes first (after rams) then everything get ran again. Same thing if defense attacks offense/defense. If the attacking army wipes out all the defenders offense/archers/berserkers then it will plunder all resources then the catapults will catapult the preselected building. Then the attacking army will be attacked by any remaining offense and archers and by any berserkers. If there are no more defending units (not counting offensive units, archers, and any Hall of Orders) ![]() Then the same thing happens for the catapults, all the defending army attacks the catapults and if the catapults survive then they attack the preselected building. If the rams survive then they attack the wall again. ![]() If there are no more attackings units on the attacker's side then the rams will be attacked by all the remaining defending troops. Then the current largest attackers group attacks the current largest defending army group until one side is wiped out (ie: swordsmen).Īnd so on until either there are only rams or catapults on the attacker's side or there are no heavy cavalry, spearmen, or swordsmen on the defending side. Then the archers (if the first largest army is now gone or smaller) attacks the current largest attackers group (ie: Light Cavalry). The largest part of the attacking army (ie: axemen) gets attacked by the archers (maybe archer damage is increased based on wall level) then that part of the attacking group (ie: axemen) attacks the biggest defending group (ie: swordmen) until one side is wiped out (ie: axemen). There are axemen, light cavalry, rams, and cats attacking swordsmen, archers, and trebuchets. It should be like this (could use some fixing/help): They just get in lines and evenly split up the axemen into 1/3's? My question is why in the hell are the spearmen even going in and are 33% of the axemen just chucking their axes at the archers up on the wall? How they hell are the archers dying.īefore each battle do they all just shake hand and 1/3 of each of the types of units stay while the other 2/3 give moral support from behind the wall? Ie: 10,000 axemen attacking 10,000 swordmen 10,000 spearmen, and 10,000 archers behind a lvl 20 wall would get you -1248 swordsmen, spearmen, and archers. Why is it that the troop deaths are evenly split up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |