Henrybk

Macros

Jul 11th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. automacro HighMaxHP {
  2. MaxHP > 1000
  3. priority 2
  4. exclusive 1
  5. call HighHP
  6. }
  7.  
  8. automacro LowMaxHP {
  9. MaxHP < 1000
  10. priority 1
  11. exclusive 1
  12. call LowHP
  13. }
  14.  
  15. macro HighHP {
  16. do c I have high max hp
  17. }
  18.  
  19. macro LowHP {
  20. do c I have low max hp
  21. }
  22.  
  23.  
  24. automacro base_>_25_&_job_>_10 {
  25. BaseLevel > 25
  26. JobLevel > 10
  27. priority 4
  28. call dizoi
  29. }
  30.  
  31. automacro 24_>_base_>_22_&_2_<_job_<_5 {
  32. BaseLevel < 24
  33. BaseLevel > 22
  34. JobLevel < 5
  35. JobLevel > 2
  36. priority 5
  37. call dizoi
  38. }
  39.  
  40. automacro base_<_15_&_job_<_5 {
  41. BaseLevel < 15
  42. JobLevel < 5
  43. priority 9
  44. run-once 1
  45. call dizoi
  46. }
  47.  
  48. automacro base_<_10_&_job_<_3 {
  49. BaseLevel < $levelvar1
  50. JobLevel < $levelvar2
  51. priority 1
  52. run-once 1
  53. call newmacro
  54. }
  55.  
  56. macro dizoi {
  57. do c hey
  58. do c hi
  59. do c this macro is working
  60. do c YEAAH!!
  61. do sit
  62. do c Now i am sitting
  63. do stand
  64. do c Not anymore
  65. do c Now I will change vars value 10 and 3
  66. $levelvar1 = 10
  67. $levelvar2 = 2
  68. release base_<_10_&_job_<_3
  69. do c It should never get here
  70. do c end
  71. }
  72.  
  73. macro newmacro {
  74. do c Yeah
  75. do c It works
  76. do c Now lets undef those vars again and restart the cycle
  77. $levelvar1 = undef
  78. $levelvar2 = undef
  79. release base_<_15_&_job_<_5
  80. do c It should never get here
  81. do c end
  82. }
Advertisement
Add Comment
Please, Sign In to add comment