Advertisement
Guest User

tts

a guest
Apr 5th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. //////////////////////////////////////////////////////////////////////////
  2. //// Trap the Soul
  3. /////////////////////////////////////////////////////////////////////////
  4.  
  5. IF TRIGGER
  6. IgnoreBlock(SafeImprisonment)
  7. !GlobalTimerNotExpired("trapsoul","LOCALS")
  8. TargetBlock(PCsInOrder)
  9. TargetBlock(Celestials)
  10. !GlobalTimerNotExpired("DMWWTimestopRunning","GLOBAL")
  11. !GlobalTimerNotExpired("timestop","LOCALS")
  12. TriggerBlock(SpellTurn|Enemy|Helpless)
  13. OR(2)
  14. GlobalTimerNotExpired("seeabjuration","LOCALS")
  15. !CheckStat(scstarget,1,WIZARD_SPELL_IMMUNITY)
  16. OR(2)
  17. GlobalTimerNotExpired("seeabjuration","LOCALS")
  18. CheckStatGT(scstarget,0,SAVEVSDEATH)
  19. OR(2)
  20. !InPartySlot(scstarget,0) // isn't Player 1
  21. Global("DMWWImprisonPlayer","GLOBAL",1)
  22. THEN DO
  23. Combine()
  24. SetGlobalTimer("trapsoul","LOCALS",6)
  25. Action(ReallyForceSpell,DEMILICH_TRAP_SOUL)
  26. END
  27.  
  28. IF TRIGGER
  29. IgnoreBlock(SafeImprisonment)
  30. !GlobalTimerNotExpired("trapsoul","LOCALS")
  31. TargetBlock(PCsInOrder)
  32. TargetBlock(Celestials)
  33. !GlobalTimerNotExpired("DMWWTimestopRunning","GLOBAL")
  34. !GlobalTimerNotExpired("timestop","LOCALS")
  35. TriggerBlock(SpellTurn|Enemy|Helpless)
  36. OR(2)
  37. GlobalTimerNotExpired("seeabjuration","LOCALS")
  38. !CheckStat(scstarget,1,WIZARD_SPELL_IMMUNITY)
  39. OR(2)
  40. !InPartySlot(scstarget,0) // isn't Player 1
  41. Global("DMWWImprisonPlayer","GLOBAL",1)
  42. THEN DO
  43. Combine()
  44. SetGlobalTimer("trapsoul","LOCALS",6)
  45. Action(ReallyForceSpell,DEMILICH_TRAP_SOUL)
  46. END
  47.  
  48. IF TRIGGER
  49. RequireBlock(SafeImprisonment)
  50. !GlobalTimerNotExpired("trapsoul","LOCALS")
  51. TargetBlock(PCsInOrder)
  52. TargetBlock(Celestials)
  53. !GlobalTimerNotExpired("DMWWTimestopRunning","GLOBAL")
  54. !GlobalTimerNotExpired("timestop","LOCALS")
  55. TriggerBlock(SpellTurn|Enemy|Helpless)
  56. OR(2)
  57. GlobalTimerNotExpired("seeabjuration","LOCALS")
  58. !CheckStat(scstarget,1,WIZARD_SPELL_IMMUNITY)
  59. OR(2)
  60. GlobalTimerNotExpired("seeabjuration","LOCALS")
  61. CheckStatGT(scstarget,0,SAVEVSDEATH)
  62. THEN DO
  63. Combine()
  64. SetGlobalTimer("trapsoul","LOCALS",6)
  65. Action(ReallyForceSpell,DEMILICH_TRAP_SOUL)
  66. END
  67.  
  68. IF TRIGGER
  69. RequireBlock(SafeImprisonment)
  70. !GlobalTimerNotExpired("trapsoul","LOCALS")
  71. TargetBlock(PCsInOrder)
  72. TargetBlock(Celestials)
  73. !GlobalTimerNotExpired("DMWWTimestopRunning","GLOBAL")
  74. !GlobalTimerNotExpired("timestop","LOCALS")
  75. TriggerBlock(SpellTurn|Enemy|Helpless)
  76. OR(2)
  77. GlobalTimerNotExpired("seeabjuration","LOCALS")
  78. !CheckStat(scstarget,1,WIZARD_SPELL_IMMUNITY)
  79. THEN DO
  80. Combine()
  81. SetGlobalTimer("trapsoul","LOCALS",6)
  82. Action(ReallyForceSpell,DEMILICH_TRAP_SOUL)
  83. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement