zefklop Posted October 12, 2008 Share Posted October 12, 2008 Is there a way to know, when reading a cre file, what projectile it wants tu use, and with which launcher ? For instance, if a character has two bows, how do we know which one it will use. Same questions with projectile. There is the "selected" parameter in the "item slots" section of the cre file description, but I'm not sure it gives both pieces of information. Link to comment
Avenger Posted October 13, 2008 Share Posted October 13, 2008 It is tricky. In bg/iwd1 - you cannot wield 2 weapons using the same projectile. Thus selecting the quiver slot will automagically give the wielded ranged weapon. The equipped slot marker is in the end of the inventory. formula is: barehand: 1000, other cases: EQUIPPED_SLOT - FIRST_WEAPON_SLOT This gives weird negative values for quivers. (or even more weird positive 16 bit values if you go unsigned). In pst - only Nordom can wield ranged weapons, he has a single weapon slot usable (iirc) The used quiver is similar to bg2. iwd2 - You have 4 sets of shield+weapon slots. IIrc, these are unrelated to the selected quiver. But i'm not so sure. Link to comment
zefklop Posted November 2, 2008 Author Share Posted November 2, 2008 Ouch... I guess this is the reason why this is buggy in GemRB. I'll open a bug report, and maybe dig a little in the code ... Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.