Excellent thanks =D
Ah okay works brilliant and all but would it be possible to prevent the PC from equipping other ammo. As It equips the bolts just fine but then you can just switch.
The only way I can think of doing it is to add a bit onto every arrow script but is there a simpler less messy way?
As Sami_ said, adding a bit to the script for every arrow would be beyond tedious (you would have to include every type of enchanted arrow in the game) and would do nothing for mod added arrows. A simpler method would be to add a GameMode block to the script forcing the player to equip the custom ammo. Something like:
scn ScriptNameHereBegin OnEquip playerif player.getitemcount CrossbowBoltID >= 1 player.equipitem CrossbowBoltIDelseif player.getitemcount CrossbowBoltID < 1 messagebox "You have no usable ammunition." Player.unequipitem CrossbowIDendifendBegin GameMode If player.getequippeditem CrossbowID == 1 If player.getequippeditem CrossbowBoltID == 0 && Player.getitemcount CrossbowBoltID > 0 Messagebox "You must use the correct ammunition for this weapon." player.equipitem CrossbowBoltID Endif EndifEnd
That should fix the issue. Also, you may want to give the crossbow an enchantment of some kind. Otherwise, the Player could enchant the crossbow, which would remove the script from it.