CCC has the right of it. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid="
" border="0" alt="smile.gif" />
<!--QuoteBegin-Pieter Boelen+Jul 3 2005, 08:23 AM--><div class='quotetop'>QUOTE(Pieter Boelen @ Jul 3 2005, 08:23 AM)</div><div class='quotemain'><!--QuoteEBegin-->But the Quick Equip button won't equip a better sword if you already have another sword equiped. At least, that was the last time I understood how it worked. Also: It won't really equip the <i>best</i> sword you have. It will take the highest quality of the sword the nearest to the bottom of initItems.c . So it will choose a badly worn cutlass over an excellent saber. So you can't really trust it to choose the best sword available.
<div align="right">[snapback]120966[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
That's a good point about quality. Although--I believe the blades array is sorted by minrank, and quality's effect on minrank is something. So maybe better to use Blades array rather than items array when going backwards to find best equippable sword.
At least in the part I wrote, it will equip a new sword if there is a 'better' one available (though as you point out the 'better' testing isn't terribly smart).
Actually, we should probably take this opportunity to figure out a rating system for swords, so that AI can be intelligent about choosing the best one.
<!--QuoteBegin-Pieter Boelen+Jul 3 2005, 08:23 AM--><div class='quotetop'>QUOTE(Pieter Boelen @ Jul 3 2005, 08:23 AM)</div><div class='quotemain'><!--QuoteEBegin-->You can only knock someone out if 1) The code works and 2) Your level is high enough. Only when you try to knock out an opponent with a sword, that is actually a rather suicidal act, because, of course, you cannot save yourself from a sword if you don't use one yourself. I reckon it might've been fun if you could end up in fistfights in the taverns (so that the drunken drawls are fistfights instead of swordfights) and maybe it would've been fun to add some fistfighting to the quests. For example when you're stranded at Douwesen and you have to fight a big muscular guy to get a new ship, it might've been fun to change that into a fistfight. Only it doesn't work AND looks crappy, so I think these ideas should be dropped; it's never going to look convincing without new animation and that is just too hard to make.
<div align="right">[snapback]120966[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Cue CCC. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid="
" border="0" alt="smile.gif" />
<!--QuoteBegin-Pieter Boelen+Jul 3 2005, 08:23 AM--><div class='quotetop'>QUOTE(Pieter Boelen @ Jul 3 2005, 08:23 AM)</div><div class='quotemain'><!--QuoteEBegin-->Disarming caused troubles with quests and only happened if you had enough luck; you couldn't really do it on purpose. Also: Your officers getting disarmed always caused trouble too. So unless a better way is made to handle the disarming, it just doesn't work. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/no.gif" style="vertical-align:middle" emoid="
" border="0" alt="no.gif" />
<div align="right">[snapback]120966[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Ah, but that doesn't mean we get rid of it, just that we make it better.
Which is the case of just about /all/ mods... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid="
" border="0" alt="wink.gif" />