Guest User

Untitled

a guest
Aug 19th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DEF SLIME_HP  EQU 35
  2. DEF SLIME_ATK EQU 15
  3. DEF SLIME_DEF EQU 26
  4. DEF MIMIC_HP  EQU 20
  5. DEF MIMIC_ATK EQU 21
  6. DEF MIMIC_DEF EQU 28
  7.  
  8. DEF STAT$0 EQUS "HP"
  9. DEF STAT$1 EQUS "ATK"
  10. DEF STAT$2 EQUS "DEF"
  11. DEF NB_STATS EQU 3
  12.  
  13. for stat, NB_STATS
  14.     println STRFMT("Average {STAT{stat}} is %d", (SLIME_{STAT{stat}} + MIMIC_{STAT{stat}}) / 2)
  15. endr
  16.  
  17. MACRO buff_monster
  18.     REDEF monster EQUS STRUPR(STRSLICE("\1", 0, 1)) ++ STRLWR(STRSLICE("\1", 1))
  19.     for stat, NB_STATS
  20.         DEF buffed = \1_{STAT{stat}} * 120 / 100
  21.         println "{monster}'s {STAT{stat}} went from {d:\1_{STAT{stat}}} to {d:buffed}!"
  22.     endr
  23. ENDM
  24.  
  25. buff_monster MIMIC
  26. buff_monster SLIME
  27.  
Advertisement
Add Comment
Please, Sign In to add comment