Advertisement
khanhdu

Kaduki Default Move 2

Jul 20th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 5.06 KB | None | 0 0
  1. # =============================================================================
  2. # Theolized Sideview Battle System (TSBS)
  3. # Version : 1.3
  4. # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
  5. # (English Language)
  6. # -----------------------------------------------------------------------------
  7. # Requires : Theo - Basic Modules v1.5b
  8. # >> Basic Functions
  9. # >> Movement    
  10. # >> Core Result
  11. # >> Core Fade
  12. # >> Clone Image
  13. # >> Rotate Image
  14. # >> Smooth Move
  15. # =============================================================================
  16. =begin
  17.  
  18.   Introduction :
  19.   Move addons is a trick to split action sequence in different script slot to
  20.   gain more control on you sequences
  21.  
  22.   How to make move addon :
  23.   - Insert a new script below TSBS
  24.   - Start with "module TSBS"
  25.   - End it with keyword "end"
  26.   - Insert any constant name you want between "module TSBS" and "end". Start
  27.     it with capital letter. For example "Stella_Moves"
  28.   - Add = {} symbol after the name you just typed
  29.   - Define new action sequences inside {}
  30.   - Adds AnimLoop.merge!(Your_Inputed_Name) in the end of line
  31.  
  32.   The simple example would be like this
  33. -------------------------------------------------------------------------------  
  34. =end
  35. module TSBS
  36.  
  37.   MoveAddon = {
  38.     "New_Action" => [
  39.     [],
  40.     [:pose, 1,3,4],
  41.     [:pose, 1,3,4],
  42.     [:pose, 1,3,4],
  43.     [:target_damage],
  44.     # IT JUST SAMPLE!
  45.     ],
  46.   }
  47.  
  48.   AnimLoop.merge!(MoveAddon) # <-- closure
  49.  
  50. end
  51. =begin
  52. -------------------------------------------------------------------------------  
  53.   Or you could see the example below
  54. -------------------------------------------------------------------------------  
  55. =end
  56. module TSBS
  57.  
  58.   # Constant name
  59.   Kaduki_Standard = { # <-- adds {
  60.  
  61.   # Define new action sequence between {}
  62.  
  63.   # ---------------------------------------------------------------------------
  64.   # Idle sequence
  65.   # ---------------------------------------------------------------------------
  66.   "K-idle" => [
  67.   [true,false,false],
  68.   [:icon, "Clear"],
  69.   [:pose, 1, 0, 15],
  70.   [:pose, 1, 1, 15],
  71.   [:pose, 1, 2, 15],
  72.   [:pose, 1, 1, 15],
  73.   ],
  74.   # ---------------------------------------------------------------------------
  75.   # Hurt sequence
  76.   # ---------------------------------------------------------------------------
  77.   "K-hurt" => [
  78.   [false,false,false],
  79.   [:pose, 1, 3, 10],
  80.   [:pose, 1, 4, 10],
  81.   [:pose, 1, 5, 10],
  82.   ],
  83.   # ---------------------------------------------------------------------------
  84.   # Critical sequence
  85.   # ---------------------------------------------------------------------------
  86.   "K-pinch" => [
  87.   [true,false,false],
  88.   [:pose, 1, 6, 15],
  89.   [:pose, 1, 7, 15],
  90.   [:pose, 1, 8, 15],
  91.   [:pose, 1, 7, 15],
  92.   ],
  93.   # ---------------------------------------------------------------------------
  94.   # Move sequence (Not used)
  95.   # ---------------------------------------------------------------------------
  96.   "K-move" => [
  97.   [false,false,false],
  98.   [:pose, 1, 9, 5],
  99.   [:pose, 1, 10, 5],
  100.   [:pose, 1, 11, 5],
  101.   ],
  102.   # ---------------------------------------------------------------------------
  103.   # Victory sequence
  104.   # ---------------------------------------------------------------------------
  105.   "K-victory" => [
  106.   [false,false,false],
  107.   [:pose, 2, 0, 30],
  108.   [:pose, 2, 1, 8],
  109.   [:pose, 2, 2, 60],
  110.   ],
  111.   # ---------------------------------------------------------------------------
  112.   # Evade sequence
  113.   # ---------------------------------------------------------------------------
  114.   "K-evade" => [
  115.   [false,false,false],
  116.   [:slide, 25, 0, 7, 20],
  117.   [:pose, 2, 3, 2],
  118.   [:pose, 2, 4, 2],
  119.   [:pose, 2, 5, 3],
  120.   [:pose, 1, 0, 10],
  121.   [:goto_oripost, 5, 0],
  122.   ],
  123.   # ---------------------------------------------------------------------------
  124.   # Dead sequence
  125.   # ---------------------------------------------------------------------------
  126.   "K-dead" => [
  127.   [true,false,false],
  128.   [:pose, 2, 9, 10],
  129.   [:pose, 2, 10, 10],
  130.   [:pose, 2, 11, 10],
  131.   ],
  132.   # ---------------------------------------------------------------------------
  133.   # In (bad) state sequence
  134.   # ---------------------------------------------------------------------------
  135.   "K-state" => [
  136.   [false,false,nil],
  137.   [:pose, 1, 7, 10],
  138.   ],
  139.   # ---------------------------------------------------------------------------
  140.   # Item Use
  141.   # ---------------------------------------------------------------------------
  142.   "K-Item" => [
  143.   [],
  144.   [:slide, -45, 0, 7, 10],
  145.   [:pose, 1,0,30],
  146.   [:flip, true],
  147.   [:pose, 3, 6, 4],
  148.   [:pose, 3, 7, 4],
  149.   [:sound, "Evasion1", 80, 100],
  150.   [:projectile, 0, 20, 10, "item_in_use.icon_index", 90],
  151.   [:pose, 3, 8, 4],
  152.   [:wait, 30],
  153.   [:flip, false],
  154.   ],
  155.   # ---------------------------------------------------------------------------
  156.   # Kaduki Cast Pose
  157.   # ---------------------------------------------------------------------------
  158.   "K-Cast" => [
  159.   [:pose, 3, 9, 6],
  160.   [:pose, 3, 10, 6],
  161.   [:pose, 3, 11, 6],
  162.   [:pose, 3, 10, 6],
  163.   ],
  164.  
  165.   } # <-- end "}"
  166.  
  167.   AnimLoop.merge!(Kaduki_Standard) # <-- Add this line as closure
  168.  
  169. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement