Degreezy

Boost + Attack Buff

May 22nd, 2021 (edited)
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. SpellEffect_Attack:
  2.  
  3. move.b (a5),d0
  4. jsr GetStatusEffects
  5. move.w d1,d3
  6. ori.w #STATUSEFFECT_ATTACK,d1
  7. jsr SetStatusEffects
  8. andi.w #STATUSEFFECT_ATTACK,d3
  9. ori.w #STATUSEFFECT_BOOST,d1
  10. jsr SetStatusEffects
  11. andi.w #STATUSEFFECT_BOOST,d3
  12. beq.s @WriteScriptCommands
  13. moveq #8,d2
  14. bsr.w ApplyRandomEffectiveness
  15. @WriteScriptCommands:
  16.  
  17. btst #COMBATANT_BIT_ENEMY,d0
  18. bne.s @EnemyReaction
  19. executeAllyReaction #0,#0,d1,#2
  20. bra.s @BattleMessage
  21. @EnemyReaction:
  22.  
  23. executeEnemyReaction #0,#0,d1,#2
  24.  
  25. @BattleMessage:
  26.  
  27. bsr.w GiveStatusEffectSpellsEXP
  28. jsr GetBaseATT
  29. mulu.w #3,d1
  30. lsr.l #3,d1
  31. displayMessage #MESSAGE_BATTLE_ATTACK_SPELL_EFFECT,d0,#0,d1
  32.  
  33. jsr GetBaseAGI
  34. mulu.w #3,d1
  35. lsr.l #3,d1
  36. displayMessage #MESSAGE_BATTLE_BOOST_SPELL_AGI_INCREASE,d0,#0,d1
  37.  
  38. jsr GetBaseDEF
  39. mulu.w #3,d1
  40. lsr.l #3,d1
  41. displayMessage #MESSAGE_BATTLE_BOOST_SPELL_DEF_INCREASE,d0,#0,d1
  42. rts
Advertisement
Add Comment
Please, Sign In to add comment