<!--quoteo(post=153318:date=Jul 1 2006, 10:38 AM:name=Hook)--><div class='quotetop'>QUOTE(Hook @ Jul 1 2006, 10:38 AM) [snapback]153318[/snapback]</div><div class='quotemain'><!--quotec-->
"A quick glance"?? You're a better man than I. I was going to disect those two lines and find out what the numbers were and gave up quickly. I wanted to LogIt() the various variables so I could see what was happening, and decided it was more work than I wanted to do.
I changed the surrender multiplier to 0.1 and I'm fighting through several decks again. Odd that it's always been 1.0, but while I used to get multiple deck fights, I hadn't seen them in a long time. Could you explain a bit more about preventing surrenders from a certain level on? What's the level where they stop, and why?
<!--QuoteEnd--></div><!--QuoteEEnd-->
Ok. That might have been a bit of boasting. Don't forget, I'm Swindler <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid="
" border="0" alt="icon_mrgreen1.gif" /> . I don't know exactly which level and I'd not say 100% chance for surrender. Here's some code
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
float div = retmax(SURRENDER_SCL_MIN,retmin(SURRENDER_SCL_MAX,...);
<!--c2--></div><!--ec2-->
will always be a value between 0.9 and 1.75.
So:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
rand(20) +
mskill +
GetCharacterSkill(&mchr,SKILL_LEADERSHIP) +
GetCharacterSkill(&mchr,SKILL_SNEAK))) *
SURRENDER_MULT / div
<!--c2--></div><!--ec2-->
will surely be bigger than
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
eskill +
GetCharacterSkill(&echr,SKILL_LEADERSHIP)
<!--c2--></div><!--ec2-->
and
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
makefloat(attack)*SURRENDER_MULT / div > defend)
<!--c2--></div><!--ec2-->
will also almost certainly evaluate to true I guess, if your grappling skill is high enough.
<b>Small bugfix:</b>
I noticed: if you start the Vigila Mendes quest while you have already four ships, it's broken: you can start it, but his ship disappears somewhere in never-neverland <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid="
" border="0" alt="rolleyes.gif" /> I made a small fix for this. It's on FTP.