FAQ  •  Register  •  Login

Formula for movement in battle

<<

Newstar

Newbie

Posts: 13

Joined: Fri Oct 15, 2010 10:27 pm

Post Mon Mar 28, 2011 11:30 am

Formula for movement in battle

Hey everyone,

If you want to figure out the distance moved by a particular unit facing an enemy in battle, it's directly proportional to the ratio of the speed of the two opposing units: both will move towards each other, with the fastest one moving the furthest.

Knowing how far a unit will move when faced with an enemy can be useful for meat shielding and in other situations. So if you want to know, for example, if the field length is 1350 and both players cav are moved forward, how much will each side's cav move ? The exact formula is given below.

Bearing in mind that movement is done in order from the fastest unit first to the slowest unit, regardless of type; once the fastest units on both sides have moved, the next fastest units move, with the restriction that no unit can pass the closest unit of the opposing army, and then the next and then next. That keeps movement consistent within the rules of battle.

So, if unit A from one army has a speed of Sa, and unit B from the other army has a speed of Sb, then when the distance D between these two units is less than their combined speed (i.e. when Sa + Sb < D); and they both move forward towards each other they will meet at a point given by:

Distance unit A moves = D x ( Sa / ( Sa + Sb ))
Distance unit B moves = D x ( Sb / ( Sa + Sb ))

One interesting thing is (well, ok, it's not that interesting ;) ), that even the slowest troop will move a bit forwards against the fastest: e.g. even a lowly fort cat will move forward a bit against a super cav on those steriod enhancements. I mention that cos I heard someone say that inf, archers and cats don't move forward when they are within a cav's speed range, which is kind of a myth.
<<

SkyDreamer

User avatar

Lord

Posts: 1723

Joined: Sun Mar 13, 2011 3:58 am

Location: Behind K2700 :]

Post Wed Apr 06, 2011 10:42 pm

Re: Formula for movement in battle

I don't think you're allowed to talk about drugs but... idk
And that's right even a cat will move slightly forward against a cav if both are commanded forward unless the distance between them is 1, which is very very very unlikely.
SkyDreamer - Retired Expert s59 (115) + 82

~Tease~
<<

Arythy

User avatar

Conqueror

Posts: 1331

Joined: Sun Jan 16, 2011 3:59 am

Location: Haypi Forums, Server 79 and Dragon S2 O.o

Post Thu Apr 07, 2011 1:21 am

Re: Formula for movement in battle

A guide that has the same formulas as this was posted just a few days ago by uranos, in case you weren't aware.
"If you're not confused, you're not paying attention."


Image
Haypi Support Emails:

KingdomSupport@Haypi.com.

Thunderball@Haypi.com.


FishSupport@Haypi.com.


DragonSupport@Haypi.com.
<<

Newstar

Newbie

Posts: 13

Joined: Fri Oct 15, 2010 10:27 pm

Post Wed Apr 13, 2011 1:41 pm

Re: Formula for movement in battle

A guide that has the same formulas as this was posted just a few days ago by uranos, in case you weren't aware.


Uranos's post is about calculating the absolute speed of a troop, whereas this is about calculating the point at which two opposing troops will meet. Uranos's formulae are spot on, and I'm happy that what I wrote kind of complements what he wrote, so every gets a pat on back :D

And anyway he posted it after I posted this, read the dates at the top.. :mrgreen:
<<

koarandy

Newbie

Posts: 24

Joined: Mon Jan 24, 2011 6:18 am

Post Sun Apr 17, 2011 7:44 pm

Re: Formula for movement in battle

Newstar wrote:
A guide that has the same formulas as this was posted just a few days ago by uranos, in case you weren't aware.


Uranos's post is about calculating the absolute speed of a troop, whereas this is about calculating the point at which two opposing troops will meet. Uranos's formulae are spot on, and I'm happy that what I wrote kind of complements what he wrote, so every gets a pat on back :D

And anyway he posted it after I posted this, read the dates at the top.. :mrgreen:

Correct, if he had read the whole thing he might've realized it. Lol
S44/111 - koarandy
<<

Arythy

User avatar

Conqueror

Posts: 1331

Joined: Sun Jan 16, 2011 3:59 am

Location: Haypi Forums, Server 79 and Dragon S2 O.o

Post Sun Apr 17, 2011 8:42 pm

Re: Formula for movement in battle

koarandy wrote:
Newstar wrote:
A guide that has the same formulas as this was posted just a few days ago by uranos, in case you weren't aware.


Uranos's post is about calculating the absolute speed of a troop, whereas this is about calculating the point at which two opposing troops will meet. Uranos's formulae are spot on, and I'm happy that what I wrote kind of complements what he wrote, so every gets a pat on back :D

And anyway he posted it after I posted this, read the dates at the top.. :mrgreen:

Correct, if he had read the whole thing he might've realized it. Lol

Yes. Lol. Let's claim that I don't read entire threads before I post in them... Brilliant! :D

Anyway, this popped up, at least in what I saw, after uranos's thread, and I tend to not really bother looking at any random thread's creation date unless it is of some importance.

Also, I personally suggested the topic for uranos's guide before he posted it, and so I knew for a fact that he was not copying anything.

So, let's not throw accusations around or in general be unpleasant, ok? Thanks, and have fun. :)
"If you're not confused, you're not paying attention."


Image
Haypi Support Emails:

KingdomSupport@Haypi.com.

Thunderball@Haypi.com.


FishSupport@Haypi.com.


DragonSupport@Haypi.com.
<<

Erraven

User avatar

Baron

Posts: 264

Joined: Fri Aug 20, 2010 12:16 am

Post Tue Apr 19, 2011 11:52 pm

Re: Formula for movement in battle

Arythy, stop being rude please. Also, i've seen lots of multiples in terms of guides. Seems wrong to just bust one person out. I've seen people post guides on here that i sent to them in game and in pvp too. I don't bust them out. Different people say things in different ways and different people understand them differently. If they post a guide i sent them, it saves me trouble :)
The well bred contradict other people. The wise contradict themselves~Wilde
People seem not to see that their opinion of the world is also a confession of character~Emerson
RAGNAROK_5 S102

Advanced Guide
Prestige Chart
Crops/Scouting
<<

MeToo!

Newbie

Posts: 26

Joined: Wed Apr 20, 2011 1:14 am

Post Wed Apr 20, 2011 1:16 am

Re: Formula for movement in battle

When Sa + Sb < D and Sa <D who will attack first when they meet assuming Sa > Sb?
<<

Newstar

Newbie

Posts: 13

Joined: Fri Oct 15, 2010 10:27 pm

Post Fri Apr 22, 2011 6:13 pm

Re: Formula for movement in battle

When Sa + Sb < D and Sa <D who will attack first when they meet assuming Sa > Sb?


If Sa (the speed of troop A) + Sb (the speed of troop B) < D (the distance between them), then they won't meet, not on that round anyway; but still the rule in battle is all the movement is done first and when it's finished all the hitting is done.

The hitting is also always done from the fastest first till the slowest, regardless of type of troop (but of course for a hit to count the troop's opponent has to be in the range of the attacker).

Thats why cav can't hit retreating cats by the way - the cav will move first up to the point where they reach the cats; then the cats will have their move backwards, taking them out of the range of the cav, so the cav can't hit them when all the movement has finished and the hitting is calculated.

In your question, where the Sa (the speed of troop A) > Sb (the speed of troop B), then whatever the distance or the movement, A will always move before B, move further than B and hit before B does (if B is in A's range).
<<

MeToo!

Newbie

Posts: 26

Joined: Wed Apr 20, 2011 1:14 am

Post Sat Apr 23, 2011 8:17 am

Re: Formula for movement in battle

Ah sorry I meant Sa + Sb > D. But all the same this ruins my plan on defending against cav. I had thought the movement was always accompanied by the attack and not independent. Was hoping if fast cav attacked me they would stop within the speed of my inf and not be able to attack and I'd have my inf attack them same turn having the benefit of attacking second so the cav would be in their range. Are there any guides for defending against cav armies?
Next

Return to Haypi Guides

Who is online

Users browsing this forum: Google [Bot] and 9 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.