Advertisement
Farbjodr

wesnoth wml +tag example

Aug 14th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #textdomain wesnoth-Ageless_Era
  2.  
  3. #define WEAPON_SPECIAL_AE_LATCH
  4. [dummy]
  5. id=AE_mrc_latch
  6. name= _ "latch"
  7. description=_"When this unit kills an enemy when it latches onto it, it can burrow inside the body to make a Cadaver. This doesn't work on nonliving."
  8. [/dummy]
  9. [/specials]
  10. [/attack]
  11. # this takes us back to [unit_type], where events are allowed
  12. [event]
  13. name=die
  14. first_time_only=no
  15. id=AE_mrc_latch_event
  16. [filter_second_attack]
  17. special=AE_mrc_latch
  18. [/filter_second_attack]
  19. [filter]
  20. [not]
  21. [filter_wml]
  22. [status]
  23. not_living=yes
  24. [/status]
  25. [/filter_wml]
  26. [/not]
  27. [/filter]
  28. {ADVANCE_UNIT (id=$second_unit.id) (AE_mrc_Blight_Cadaver)}
  29. {MODIFY_UNIT (id=$second_unit.id) experience 0}
  30. [/event]
  31. [+attack]
  32. [+specials]
  33. # and +tag puts us back to specials tag
  34. #enddef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement