Advertisement
BenArthur_7

Marth ai script, side-b (original)

Sep 6th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. var0 = 4
  2. If(special_s_custom(0)) {
  3. var1 = 15
  4. }
  5. Else If(special_s_custom(1)) {
  6. var1 = 20
  7. }
  8. Else {
  9. var1 = 30
  10. }
  11. SetResetFrames(20)
  12. Label(0x0)
  13. If(!ground_free() && !dashing()) {
  14. Return()
  15. }
  16. StickAbs(lr_tgt)
  17. Button(special)
  18. var0 -= 1
  19. var2 = var1
  20. SetResetFrames(40)
  21. Search(0x1)
  22. Return()
  23. Label(0x1)
  24. Jump(0x2)
  25. If(status(0x153)) {
  26. var2 -= 1
  27. If(leq(var2, 0)) {
  28. Stick(1)
  29. Button(special)
  30. var0 -= 1
  31. var2 = var1
  32. SetResetFrames(40)
  33. Search(0x3)
  34. }
  35. }
  36. Return()
  37. Label(0x3)
  38. var2 -= 1
  39. Jump(0x2)
  40. If(leq(var2, 0)) {
  41. Stick(1)
  42. Button(special)
  43. var0 -= 1
  44. var2 = var1
  45. If(leq(var0, 0)) {
  46. End()
  47. }
  48. SetResetFrames(40)
  49. Search(0x4)
  50. }
  51. Return()
  52. Label(0x4)
  53. var2 -= 1
  54. Jump(0x2)
  55. If(leq(var2, 0)) {
  56. var3 = randf
  57. var3 *= 40
  58. var3 += 30
  59. If(tgt_dmg_geq(var3)) {
  60. If(less(randf, 0.5)) {
  61. Stick(0, 0.7)
  62. }
  63. Else {
  64. Stick(1)
  65. }
  66. }
  67. Else If(less(randf, 0.5)) {
  68. Stick(0, -0.7)
  69. }
  70. Else {
  71. Stick(1)
  72. }
  73. Button(special)
  74. var0 -= 1
  75. var2 = var1
  76. If(leq(var0, 0)) {
  77. End()
  78. }
  79. SetResetFrames(40)
  80. }
  81. Return()
  82. Label(0x2)
  83. var3 = rank
  84. var3 *= 0.01, 2
  85. If(less(randf, var3)) {
  86. var4 = lr
  87. var4 *= lr_tgt
  88. If(less(var4, 0)) {
  89. End()
  90. }
  91. }
  92. If(off_stage()) {
  93. End()
  94. }
  95. Return()
  96. Return()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement