shadowm

Untitled

Jun 11th, 2016
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. #define MAKE_TIMED_LOYAL _SUF
  2. [store_unit]
  3. [filter]
  4. {_SUF}
  5. [/filter]
  6. variable=temp_MAKE_TIMED_LOYAL_store
  7. kill=no
  8. [/store_unit]
  9.  
  10. [if]
  11. [not]
  12. {VARIABLE_LEXICAL_EQUALS temp_MAKE_TIMED_LOYAL_store.upkeep loyal}
  13. [or]
  14. {VARIABLE_LEXICAL_EQUALS temp_MAKE_TIMED_LOYAL_store.upkeep free }
  15. [/or]
  16. [/not]
  17.  
  18. [then]
  19. [modify_unit]
  20. [filter]
  21. id=$temp_MAKE_TIMED_LOYAL_store.id
  22. [/filter]
  23. upkeep=loyal
  24. [/modify_unit]
  25.  
  26. [event]
  27. delayed_variable_substitution=no
  28. name=victory
  29.  
  30. [modify_unit]
  31. [filter]
  32. id=$temp_MAKE_TIMED_LOYAL_store.id
  33. [/filter]
  34. upkeep=full
  35. [/modify_unit]
  36. [/event]
  37. [/then]
  38. [/if]
  39.  
  40. {CLEAR_VARIABLE temp_MAKE_TIMED_LOYAL_store}
  41. #enddef
Advertisement
Add Comment
Please, Sign In to add comment