![]() |
|
King`s Bounty: Warriors of the North Next game in the award-winning King’s Bounty series |
![]() |
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
![]()
Ok, time for someone to fact check me here, because if I'm reading this correctly, I'm very confused:
Code:
iskrit = ( kritProbRnd < kritProb ) if iskrit then if receiver_human and not receiver_glot then kritProb = kritProb - skill_power("weakness_lore", 2) if kritProbRnd < kritProb then iskrit = false is_weakness_lore = true end end end Now, if I'm understanding this right, if a critical hit was made (kritProbRnd is less than kritProb), it then subtracts the value from "weakness_lore", which is the Sense Weakness skill. However, let's assume that you don't have the Sense Weakness skill. Shouldn't skill_power("weakness_lore", 2) return 0? And if that's the case, then kritProb = kritProb - skill_power("weakness_lore", 2) becomes kritProb = kritProb - 0, or kritProb = kritProb. In which case the second if kritProbRnd < kritProb then is guarunteed to also be true because kritProb hasn't changed. Which means that iskrit should automatically be set false, and the game should think Sense Weakness kicked in. Even worse, I'm sitting here and I can't remember if I've actually had the enemy perform a critical hit on me. It could be my memory letting me down, or it could be that you can't actually get a critical hit on your troops until you take the Sense Weakness skill. Unfortunately I can't set up a test case for "enemy performs a critical hit". So have I mis-analyzed the code? Can anyone without the Sense Weakness skill verify that they've taken (not given) a critical hit? |
#2
|
|||
|
|||
![]()
How does weakness lore work with ancient vampires ? They have 100% miss on crit, and this gives even more so basicly enemy hit your ancient vampire they evade and weakness lore override that and they get hit
![]() |
#3
|
|||
|
|||
![]() Quote:
ah i also was wondering that since sometimes i got a msg about sense weakness and i was like wtf i don't have that skill tagged i thought it maybe was a viking ability or something but seeing this this is just a bad write up fix plz ![]() |
#4
|
|||
|
|||
![]()
It's an easy fix, but I just want to verify that I'm not misreading it first.
|
#5
|
||||
|
||||
![]()
I don't think I've been critted now that you mention. And I actually think we see the sense weakness text come up when we should have been critted but we aren't.
Just last night the AI cast DOOM on my wolves (ermahgerd attack the summons?!!) and when they were hit by the enemy they were not criticaled. I did see the sense weakness appear in the text, though. Does that help? |
#6
|
|||
|
|||
![]() Quote:
|
#7
|
||||
|
||||
![]()
Oh dear. Double facepalm.
So how should we bug this one? Sense Weakness prevents critical hits from enemies? It's kind of a whopper if we are understanding this correctly. Edit: Attempt at an entry.
I'll just replace what I have in the thread now with this. Last edited by camelotcrusade; 10-31-2012 at 09:36 PM. Reason: Added bug text |
#8
|
||||
|
||||
![]() Code:
iskrit = ( kritProbRnd < kritProb ) if iskrit then if receiver_human and not receiver_glot then kritProb = kritProb - skill_power("weakness_lore", 2) if kritProbRnd < kritProb then iskrit = true else iskrit = false is_weakness_lore = true end end end |
![]() |
|
|