Advertisement
Bagserk

UninstallVoiceScript

Apr 7th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. Scriptname bsUninstallMirScr extends activemagiceffect
  2.  
  3. VoiceType Property FemaleMir Auto
  4.  
  5. FormList Property VoicesCommonCombatant Auto
  6.  
  7. FormList Property VoicesCommonAdult Auto
  8.  
  9. FormList Property DefaultNPCVoiceTypes Auto
  10.  
  11. FormList Property VoicesNPCs Auto
  12.  
  13. FormList Property VoicesFollowerNeutral Auto
  14.  
  15. FormList Property VoicesMarriageNeutral Auto
  16.  
  17. FormList Property VoicesMarriageAll Auto
  18.  
  19. Quest Property bsMirVoiceAdd Auto
  20.  
  21. Message Property bsMirUninstalledMsg Auto
  22.  
  23. SPELL Property bsUninstallMirSpl Auto
  24.  
  25. function UninstallMir()
  26. if bsMirVoiceAdd.IsRunning()
  27. bsMirVoiceAdd.Stop()
  28. endif
  29. if VoicesCommonCombatant.HasForm(FemaleMir)
  30. VoicesCommonCombatant.RemoveAddedForm(FemaleMir)
  31. endif
  32. if VoicesCommonAdult.HasForm(FemaleMir)
  33. VoicesCommonAdult.RemoveAddedForm(FemaleMir)
  34. endif
  35. if DefaultNPCVoiceTypes.HasForm(FemaleMir)
  36. DefaultNPCVoiceTypes.RemoveAddedForm(FemaleMir)
  37. endif
  38. if VoicesNPCs.HasForm(FemaleMir)
  39. VoicesNPCs.RemoveAddedForm(FemaleMir)
  40. endif
  41. if VoicesFollowerNeutral.HasForm(FemaleMir)
  42. VoicesFollowerNeutral.RemoveAddedForm(FemaleMir)
  43. endif
  44. if VoicesMarriageNeutral.HasForm(FemaleMir)
  45. VoicesMarriageNeutral.RemoveAddedForm(FemaleMir)
  46. endif
  47. if VoicesMarriageAll.HasForm(FemaleMir)
  48. VoicesMarriageAll.RemoveAddedForm(FemaleMir)
  49. endif
  50. Game.GetPlayer().UnequipSpell(bsUninstallMirSpl,1)
  51. Game.GetPlayer().RemoveSpell(bsUninstallMirSpl)
  52. bsMirUninstalledMsg.show()
  53. endfunction
  54.  
  55. Event OnEffectStart(Actor akTarget, Actor akCaster)
  56. UninstallMir()
  57. endevent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement