xxXEvandarXxx Posted February 2, 2009 Share Posted February 2, 2009 There should be a way to unequip a weapon, remove it from the inventory, then add another weapon and force the player to equip it with a script from a spell that could be added when the player equips the weapon and removed when he/she unequips it. I have seen it in another mod, I just cant remember the name... Link to comment Share on other sites More sharing options...
AzirAphale001 Posted February 2, 2009 Share Posted February 2, 2009 ScriptName WeaponSwapSpellScript Begin ScriptEffectStart If Has Weapon 1 == 1 Player.UnequipItem "Weapon 1" Player.RemoveItem "Weapon 1" Player.AddItem "Weapon 2" Player.EquipItem "Weapon 2" Set Has Weapon 1 to 0 End If If Has Weapon 1 == 0 Player.UnequipItem "Weapon 2" Player.RemoveItem "Weapon 2" Player.AddItem "Weapon 1" Player.EquipItem "Weapon 1" Set Has Weapon 1 to 1 End If End ScriptName WeaponSwapWeaponScript Begin OnEquip Player.AddSpell "WeaponSwapSpell" End Begin OnUnequip Player.RemoveSpell "WeaponSwapSpell" End 'Has Weapon 1' would need to be a global variable that is set to 1 at the begining of the game.The second script would need to be attached to both weapons and the first one would be a scrpited spell effect. Link to comment Share on other sites More sharing options...
gdarknight Posted February 2, 2009 Share Posted February 2, 2009 I finished the base texturing for the first sword. I still need to do the normal and glow maps, but this was the hard part. Link to comment Share on other sites More sharing options...
xxXEvandarXxx Posted February 2, 2009 Share Posted February 2, 2009 OH MY GOD!! :ohmy: That is totaly awesome! :banana: Good job! Link to comment Share on other sites More sharing options...
ihateregisteringeverywhere Posted February 2, 2009 Share Posted February 2, 2009 Yeah, well made. Looks like you attempted to do it at least as well as beth would, but then went on and on and then shot right into the stratosphere :P. On a sidenote... Would you like to texture something for me? :P Link to comment Share on other sites More sharing options...
Kielanai Posted February 2, 2009 Share Posted February 2, 2009 gdarknight, OMG!! I love it! It just gets better, ne. I have been out of town all weekend, so this was a nice surprise to come home to. :biggrin: I was playing with textures on the spear before I left, but that looks much closer to the original than what I could have done. Thanks so much for adding that! AzirAphale001, Thanks for the coding information, too! I was sure it could be done somehow. =) Is this what automatically equips off-hand swords? Or is that a different script? That's the only mod I've had that forces an equip, ... I think. :mellow: No, wait, ... just realized that doesn't use a spell. Nevermind me. Talking to myself and not making sense today. :P Kielanai~ Link to comment Share on other sites More sharing options...
ihateregisteringeverywhere Posted February 2, 2009 Share Posted February 2, 2009 OBSE is - by the way - the very BEST choice for making swap scripts. Mostly because it lets you swap the mesh on a weapon - this solves a whole platherolae of problems with swapping items (read: items instead of just the graphics), almost effortlessly. The only problem is that people seem to be reluctant to install OBSE and mods that need it. Only Sithis knows why... Link to comment Share on other sites More sharing options...
Sin911 Posted February 3, 2009 Author Share Posted February 3, 2009 Wow, gdarknight, the new textures look fantastic! Link to comment Share on other sites More sharing options...
AzirAphale001 Posted February 3, 2009 Share Posted February 3, 2009 The first script is for a spell that gets added when the sword is equiped, and is removed when the sword is unequiped. It basically detects which version of the sword you have equiped and changes it with the other version (1H - 2H, Weapon - Off-Hand etc).The second script is attached to the weapon (and any other version of the weapon) and adds and removes the spell from the player when it is equiped/unequiped. The script ScriptName AutoEquipOffHandScript Begin OnEquip Player.AddItem "OffHand" 1 Player.EquipItem "OffHand" End Begin OnUnequip Player.RemoveItem "OffHand" 1 Endneeds to be added to the sword (but not the off-hand) and would automaticaly equip an off-hand version of the sword when the sword is equiped, and remove it when the sword is unequiped. By the way, the new texture is amazing gdarknight, well done. Link to comment Share on other sites More sharing options...
gdarknight Posted February 3, 2009 Share Posted February 3, 2009 The first script is for a spell that gets added when the sword is equiped, and is removed when the sword is unequiped. It basically detects which version of the sword you have equiped and changes it with the other version (1H - 2H, Weapon - Off-Hand etc).The second script is attached to the weapon (and any other version of the weapon) and adds and removes the spell from the player when it is equiped/unequiped. The script ScriptName AutoEquipOffHandScript Begin OnEquip Player.AddItem "OffHand" 1 Player.EquipItem "OffHand" End Begin OnUnequip Player.RemoveItem "OffHand" 1 Endneeds to be added to the sword (but not the off-hand) and would automaticaly equip an off-hand version of the sword when the sword is equiped, and remove it when the sword is unequiped. By the way, the new texture is amazing gdarknight, well done. The only reason I was thinking about putting animation in the spear, was to avoid the 'equip' animation when the longer spear is selected. If I can animate the shaft to stretch, the spear will actually grow/shrink when the toggle spell is used. #################################### I'm glad everyone is pleased with the texture; I'm trying to get the other blade to come out as well. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.