Advertisement
invention8

Muh Script

Mar 20th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. Scriptname SAM_AldousDeathScript extends ObjectReference
  2.  
  3. Event OnCombatStateChanged(Actor akTarget, int aeCombatState)
  4.  
  5. if SAM_AldousQuest03.GetStage() >= 20
  6. if (SAM_AldousRef.IsInInterior() == 1)
  7. debug.notification("Aldous Lost Lift Other")
  8. SAM_AldousRef.RemoveSpell(SAM_LiftOtherNew)
  9. SAM_AldousRef.AddSpell(LightningBolt)
  10. SAM_AldousRef.AddSpell(ThunderBolt)
  11. else
  12. Utility.Wait(0.5)
  13. if (SAM_AldousRef.GetCombatTarget().HasKeyword(ImmuneParalysis) == 0)
  14. if (SAM_AldousRef.GetCombatTarget().HasKeyword(ActorTypeDragon) == 0)
  15. if (SAM_AldousRef.GetCombatTarget().HasKeyword(MagicNoReanimate) == 0)
  16.  
  17. debug.notification("Aldous Has Lift Other")
  18.  
  19. SAM_AldousRef.RemoveSpell(LightningBolt)
  20. SAM_AldousRef.RemoveSpell(ThunderBolt)
  21. SAM_AldousRef.AddSpell(SAM_LiftOtherNew)
  22.  
  23. endif
  24. endif
  25. endif
  26. endif
  27. else
  28. debug.notification("Aldous Has Shock Spells")
  29. SAM_AldousRef.AddSpell(LightningBolt)
  30. SAM_AldousRef.AddSpell(ThunderBolt)
  31. endif
  32.  
  33. endEvent
  34.  
  35.  
  36.  
  37. Quest Property SAM_AldousQuest01 Auto
  38.  
  39. Quest Property SAM_AldousQuest02 Auto
  40.  
  41. Quest Property SAM_AldousQuest03 Auto
  42.  
  43. Quest Property SAM_AldousDialogue Auto
  44.  
  45. GlobalVariable Property SAM_01FollowerVariable Auto
  46.  
  47. GlobalVariable Property SAM_ALDQ02MorkgatenPackageGlobal Auto
  48.  
  49. GlobalVariable Property SAM_ALDQ02AldousAlone Auto
  50.  
  51. Actor Property SAM_zGhost Auto
  52.  
  53. SPELL Property SAM_FrenzyGhost Auto
  54.  
  55. SPELL Property SAM_LiftOtherNew Auto
  56.  
  57. SPELL Property LightningBolt Auto
  58.  
  59. SPELL Property ThunderBolt Auto
  60.  
  61. Actor Property SAM_AldousRef Auto
  62.  
  63. Keyword Property ImmuneParalysis Auto
  64.  
  65. Keyword Property ActorTypeDragon Auto
  66.  
  67. Keyword Property MagicNoReanimate Auto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement