Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. Basic Idea:
  2. Keep track of incoming (and reactionary) spell/other requests when your character may not be ready to cast/perform them. Adds spells and targets to respective 'string lists' and uses global variable X to track casting/queue state: 0 = Not Casting/No Queue, 1 = Queued(Instant), 2 = Queued(Spell), 3 = Not Queued(Skip List Deletion Step), 4 = Chain-cast (Skip Queue process completely)
  3.  
  4. TRIGGER = You have completed casting *.
  5.  
  6. #IF (@X=4) {X=0;#AB all}
  7. {#IF (@X=3) {X=0}
  8. #IF (@X=2) {X=0;#VAR SpellTarget %delnitem(SpellTarget,1);#VAR SpellList %delnitem(SpellList,1)}
  9. #IF (%item(@SpellList,1)="destinations") {X=1;destinations;#AB all}
  10. {#IF (%item(@SpellList,1)="vigil") {X=1;vig;#AB all}
  11. {#IF (%item(@SpellList,1)="astral perception") {X=1;ast;#AB all}
  12. {#IF (%item(@SpellList,1)="portal") {X=1;conjure portal to %item(@SpellTarget,1);#AB all}
  13. {#IF (%item(@SpellList,1)="bloodlust") {X=1;concentrate on awakening bloodlust within %item(@SpellTarget,1);#AB all}
  14. {#IF (%item(@SpellList,1)="glandulae augendae") {X=1;concentrate on replenishing the glands of %item(@SpellTarget,1);#AB all}
  15. #IF (%numitems(@SpellList)<>0) {X=2;cast %item(@SpellList,1) on %item(@SpellTarget,1)} {X=0}
  16. #IF (@X=0) {meditate}}}}}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement