Invocus Posted July 8, 2010 Share Posted July 8, 2010 Hi all, I'm trying to use OBSE's hotkey and keystroke functions in a mod of mine--the mod is Toggle Shield and Quiver, which I posted on PlanetElderScrolls but haven't put up here yet. I'm currently trying to perfect the arrow toggling portion of the mod--I want to unequip arrows when there is no bow equipped, and then re-equip those arrows when the bow is equipped. The original version of my mod is able to do this, but it will only equip one arrow at a time using the EquipItem or EquipItemNS functions. Although this is playable (it equips a new arrow after every shot), I'm trying to create a workaround so that all arrows of the given type are equipped from the start. My best idea so far is to temporarily change one of the hotkeys, and use that hotkey to properly equip the arrows. Unfortunately, the bit of code I'm trying to use isn't working. If anyone can tell me why this block of code is stopping my script from running properly, I'd be grateful for your input. set Hotkey8 to GetHotkeyItem 8 SetHotkeyItem 8 ArrowName TapKey 9 ;press Hotkey 8 here SetHotkeyItem 8 Hotkey8 Hotkey8 and ArrowName are both refs. Link to comment Share on other sites More sharing options...
Recommended Posts