shadowm

Untitled

Feb 15th, 2012
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. [event]
  2. name=moveto,attack end
  3. first_time_only=no
  4. [filter_condition]
  5. # Check that we *don't* have units which are not...
  6. [not]
  7. [have_unit]
  8. side=$side_number
  9. [not]
  10. # Units without remaining moves...
  11. [filter_wml]
  12. moves=0
  13. [/filter_wml]
  14. [and]
  15. # ... that are either not adjacent to enemies...
  16. [filter_adjacent]
  17. is_enemy=no
  18. [/filter_adjacent]
  19. [or]
  20. # ... or adjacent to enemies but without attacks left.
  21. [filter_adjacent]
  22. is_enemy=yes
  23. [/filter_adjacent]
  24. [filter_wml]
  25. attacks_left=0
  26. [/filter_wml]
  27. [/or]
  28. [/and]
  29. [/not]
  30. [/have_unit]
  31. [/not]
  32. [/filter_condition]
  33.  
  34. [end_turn][/end_turn]
  35. [/event]
Advertisement
Add Comment
Please, Sign In to add comment