nezroy Posted February 26, 2010 Share Posted February 26, 2010 I created a mod that has a custom bow and quiver variation (via ItemVariations.xls mechanism), by deducing that the last field of longbow_variation was actually a link to the id of a row in arrow_variation. Now my custom bow variant has a custom quiver variant to match it. This works fine as long as I'm firing standard arrows, however, as soon as I equip a custom ammo type, the quiver reverts back to one of the default quivers. Does anyone know what's going on here, or have any ideas? I haven't been able to figure out why equipping ammo is causing the quiver to switch back. Link to comment Share on other sites More sharing options...
nezroy Posted March 4, 2010 Author Share Posted March 4, 2010 It turns out that the arrow variant is used not just as a reference to the standard arrow type to display with the bow, but also as a variant type for the actual ammunition items. So when the ammunition is equipped, the arrow variant defined for the ammo tells it what quiver to display. Of course fixing the problem meant creating duplicate ammo types that used my custom quiver variant, and then hooking EVENT_TYPE_EQUIP to"convert" the ammo between the two types as appropriate. EDIT: And in case anyone happens across this thread in the future, I created a wiki article that describes the ammo system in detail, including how these variants work. Link to comment Share on other sites More sharing options...
Recommended Posts