|
View previous topic :: View next topic |
Author |
Message |
bashar Forum Admin
Joined: 18 Feb 2005 Posts: 1442 Location: Bucharest
|
Posted: Thu Apr 21, 2011 2:01 pm Post subject: |
|
|
Modified the formula to also take into consideration the difference between hero luck of attacker and defender.
$Ctf_l = rand(min(max(($hero_luck_attacker-$hero_luck_defender)*2,0),15),40);
Also fixed the random txt that appear when you fail a mission due to spies not able to reach enemy kingdom. |
|
Back to top |
|
 |
j0hn_c3na Forum Admin
Joined: 19 Jun 2005 Posts: 385 Location: Portugal
|
Posted: Thu Apr 21, 2011 2:26 pm Post subject: |
|
|
I'm going to "break the coding" into simple things and I also would like to know this since it has been haunting me for a long time.
Spy Offense Research vs Spy Defense Research
Sneak Skill vs Sentinel Skill
Commander Exp vs Commander Exp
Spy Offense vs Spy Defense
Luck (isn't 40% a bit too high?)
Mission Dificulty
Is there a table for bonus relation to amount of exp in spy commanders? I'd like to know if I can still get a higher bonus out of mine.
So, my Spy Commander is first specialized in Sabotage which means he gets a boost in those missions.
Spy Offense Research is 35.
Sneak Skill is 100.
My commander exp, I dare say is one of the highest in the server.
Spy Offense with the normal amount of spies - 8.436.000
Mission Difficulty is 2 since I almost always do Plunder and it's a Sabotage mission.
So, with all those boosts, unless it's that luck factor, how do I fail half of my missions on abandoned accounts? _________________ Forum Admin
Problem With My Modding? PM Me Or bashar |
|
Back to top |
|
 |
quizero
Joined: 13 Dec 2008 Posts: 78 Location: Philippines
|
Posted: Fri Apr 22, 2011 5:10 pm Post subject: |
|
|
j0hn_c3na wrote: | Luck (isn't 40% a bit too high?) |
yeah.. my commander too is at sabotage specs. at 250xp..
but if you think in reality, if your commander is always doing it.. it must be easy for him.. so it must be more boost..
btw.. nice improvement on the spy mission.. when failling theres a reason now.. XD..
hey, john cena.. it seems we use spy at the same way.. |
|
Back to top |
|
 |
yyxson
Joined: 15 Jan 2011 Posts: 36
|
Posted: Fri Apr 22, 2011 7:37 pm Post subject: |
|
|
Yep, the spy missions have changed a little and we are now getting funny explanations for the failures. Well done  |
|
Back to top |
|
 |
bashar Forum Admin
Joined: 18 Feb 2005 Posts: 1442 Location: Bucharest
|
Posted: Thu Apr 28, 2011 11:26 am Post subject: |
|
|
j0hn_c3na wrote: |
So, with all those boosts, unless it's that luck factor, how do I fail half of my missions on abandoned accounts? |
Let's take a simple example.
You(A):
Mission: Pillage
Difficulty: 55 (hardcoded in the game code for Pillage)
Commander:(Specialization 1: Sabotage): exp 250k
Spy Offence: 8M
Spy Offense Research: 35
Sneak Skill: 100
Luck: 5
Enemy(B):
Commander:(Specialization 2: Sabotage): exp 10k
Spy Defence: 1M
Spy Defence Research: 20
Sentinel Skill: 90
Luck: 1
1. First Commanders receive some exp boost depending their specialization:
Commander A exp 50*250K=12500k
Commander B exp 40*10k=400k
2. Now Total Failure will start that will determine if your spies are able to reach enemy kingdom.
$Ctf_sl=round(15*$level_spy_research/($level_spy_research+$level_antispy_research));
$Ctf_sl=round(15*35/(35+25))=round(15*35/60)=round(8.75)=9
$Ctf_d=round(15*$hero_offence/($hero_offence+$hero_defence));
$Ctf_d=round(15*100/(100+90))=round(7.89)=8
$Ctf_c=round(15*$exp_com_attacker/($exp_com_attacker+$exp_com_defender));
$Ctf_c=round(15*12500/(12500+400))=round(14.53)=15
$Ctf_od=round(15*$offence/($offence+$defence));
$Ctf_od=round(15*8M/(8M+1M))= round(13.33) = 13
$Ctf_l = rand(min(max(($hero_luck_attacker-$hero_luck_defender)*2,0),15),40);
$Ctf_l = rand(min(max((5-1)*2,0),15),40) = rand(8, 40) = Lets say 19
$Ctf_sl+$Ctf_c+$Ctf_d+$Ctf_od+$Ctf_l = 9+8+15+13 + 19 = 54
54<55 - so your spies are not able to reach enemy kingdom and you receive that funny message
Lets say rand(8, 40) gives 21 and your spies will enter enemy kingdom.
3.The battle between spy offence and spy defence wil begin
The defender will receive a rand(0, 10%) bonus to defence no mater what(lets say the roll give a 5%)
The Commander A will receive a bonus depending on specialization. In this case rand(0,30). Let's say the roll give 15%
Spy Offence of Commander A now its 15%*8M=9.2M
Spy Defence of Commander B now its 5%*1M=1.05M
The Battle begins
9.2M>1.05 - and so the spies defeat the antispy
Most missions end here and you receive your reward but this is not the case with research missions.
4.There another step will happen and depending on the difficulty of the research you can fail or succed. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
|