Advertisement
CtelinAjira

Runic Blade on Steroids

Jul 13th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #Source State Notetags
  2. <Help Description>
  3. Unit's enemies' magic is nullified
  4. Enemies' MP costs are still paid
  5. </Help Description>
  6. <Hide Turns>
  7. <State Motion: Guard>
  8. <Foe Aura: effect_state_id> //the state id of your effect state
  9. =======================================================
  10. #Effect State Notetags
  11. <Custom Action Start Effect>
  12. //check if the user's current action belongs to one of your 'magic' skill types
  13. if (user.currentAction() && user.currentAction().isSkill() && [state1, state2, state3...].contains(user.currentAction().item().stypeId)) {
  14.  
  15. //play a fitting animation
  16. user.startAnimation(anim_id);
  17.  
  18. //if it's not an item, consume resources for the spell
  19. if (user.currentAction()) {
  20. user.useItem(user.currentAction().item());
  21. }
  22.  
  23. //clear the action from the queue
  24. user.clearActions();
  25.  
  26. //show user that something is preventing their spell from casting
  27. var logWindow = SceneManager._scene._logWindow;
  28. var msg = '<CENTER>Blocked by Anti-Magic';
  29. logWindow.addText(msg);
  30.  
  31. //wait for animation to resolve
  32. BattleManager.actionWaitForAnimation();
  33. //clear the log window
  34. logWindow.push('clear');
  35. }
  36. </Custom Action Start Effect>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement