Advertisement
Yoshin222

Mugen: Button Triggered Parry

Jun 24th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. ;A BUTTON TRIGGERED PARRY
  2.  
  3. ;------------------------------------------------------------
  4.  
  5. ---------------------------
  6. CMD SECTION OF CODE
  7. ;------------------------------------------------------------
  8.  
  9. ---------------------------
  10. [Command]
  11. name = "Parry Input"
  12. command = b+y
  13. time = 1
  14.  
  15.  
  16.  
  17. [State -1,Parry window]
  18. type = changestate
  19. value = 900
  20. triggerall = statetype != A && statetype != C
  21. triggerall = command = "Parry Input"
  22. trigger1 = ctrl
  23. trigger1 = statetype = S
  24. ;------------------------------------------------------------
  25.  
  26. ---------------------------
  27. ;CNS SECTION OF CODE
  28. ;------------------------------------------------------------
  29.  
  30. ---------------
  31. ;Parry window/Time in which you try to parry
  32. [Statedef 900]
  33. type = S
  34. movetype = A
  35. physics = S
  36. velset = 0.0
  37. ctrl = 0
  38. anim = 900
  39. facep2 = 1
  40. sprpriority = 0
  41.  
  42.  
  43. [State 900,reversaldef]
  44. type = reversaldef
  45. reversal.attr = SCA,AA,AP
  46. trigger1 = animelem = 1
  47. pausetime = 0,18
  48. p1stateno = 955
  49.  
  50.  
  51. [State 900,0]
  52. type = playsnd
  53. trigger1 = animelem =1
  54. value = 0,0
  55.  
  56.  
  57. [State 900,1]
  58. type = playsnd
  59. trigger1 = animelem = 1
  60. value = 0,0
  61.  
  62. [state 900,2]
  63. type = statetypeset
  64. trigger1= animelem = 2
  65. movetype = I
  66.  
  67.  
  68. [State 900,3]
  69. type = changestate
  70. trigger1 = time = 20
  71. value = 0
  72. ctrl = 1
  73.  
  74. ;------------------------------------------------------------
  75. ;Parry Success/Player is hit while the reversaldef is active
  76. [Statedef 955]
  77. type = S
  78. movetype = I
  79. physics = S
  80. velset = 0,0
  81. ctrl = 0
  82. anim = 955
  83. juggle = 0
  84. facep2 = 1
  85. sprpriority = 2
  86. poweradd = 50
  87.  
  88. ;Parry color flash
  89. [State 955,0]
  90. type = palfx
  91. trigger1 = time = 0
  92. color = 128
  93. add = 54,105,143
  94. time = 20
  95.  
  96. [State 955, Stop]
  97. type = posfreeze
  98. trigger1 = 1
  99. value = 1
  100.  
  101. [State 955,1]
  102. type = afterimage
  103. trigger1 = animelem = 1
  104. time = 20
  105. length = 20
  106.  
  107. [State 955,2]
  108. type = playsnd
  109. trigger1 = animelem = 1
  110. value = 0,0
  111.  
  112.  
  113. [State 955,3]
  114. type = playsnd
  115. trigger1 = animelem = 1
  116. value = 0,0
  117.  
  118. [State 955,4]
  119. type = ctrlset
  120. trigger1 = animelem =2
  121. value = 1
  122.  
  123.  
  124. [State 955]
  125. type = changestate
  126. trigger1 = animelem = 4
  127. value = 0
  128. ctrl = 1
  129.  
  130.  
  131. ;------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement