Vultraz

Untitled

Sep 12th, 2015
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #define APPLY_EXTRA_AMLA_EFFECT _AMLA_ID _ACTIONS
  2. [event]
  3. id="post_advance_ + {_AMLA_ID}"
  4. name=post advance
  5. first_time_only=no
  6. [filter]
  7. side=1
  8. role=hero
  9. [/filter]
  10.  
  11. [store_amlas]
  12. id=$unit.id
  13. variable=temp_advancements
  14. [/store_amlas]
  15.  
  16. {FOREACH temp_advancements.modifications.advance i}
  17. [if]
  18. {VARIABLE_LEXICAL_EQUALS temp_advancements.modifications.advance[$i].id {_AMLA_ID}}
  19. [then]
  20. {_ACTIONS}
  21.  
  22. {LOG_NX_DBG ("Post-advance commands applied for AMLA '" + {_AMLA_ID} + "'")}
  23. [/then]
  24. [/if]
  25. {NEXT i}
  26.  
  27. {CLEAR_VARIABLE temp_advancements}
  28. [/event]
  29. #enddef
Advertisement
Add Comment
Please, Sign In to add comment