Advertisement
Dekita

$D13x Dev Slud v1.6

Jul 17th, 2013
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.20 KB | None | 0 0
  1. #===============================================================================
  2. #
  3. # ☆ $D13x - Statistic Level Up Distribution
  4. # -- Author : Dekita
  5. # -- Version : 1.6
  6. # -- Level : Easy / Normal
  7. # -- Requires : $D13x - Statistic Control
  8. # -- Engine : RPG Maker VX Ace.
  9. #
  10. #===============================================================================
  11. # ☆ Import
  12. #-------------------------------------------------------------------------------
  13. $D13x={}if$D13x==nil
  14. $D13x[:Dev_SLUD]=true
  15. #===============================================================================
  16. # ☆ Updates
  17. #-------------------------------------------------------------------------------
  18. # D /M /Y
  19. # 27/o5/2o13 - Compatability, ($D13x TP Control)
  20. # - Added "eval on level"
  21. # 21/o5/2o13 - Compatability, ($D13x ISPDS)
  22. # 2o/o5/2o13 - Compatability, ($D13x Atk & Def Lvs)
  23. # 17/o5/2o13 - Small Update,
  24. # 25/o3/2o13 - Compatibility, (Elements Control)
  25. # - Improved Efficiency,
  26. # 13/o3/2o13 - Improved Import Method,
  27. # 12/o3/2o13 - Finished,
  28. # 1o/o3/2o13 - Started
  29. #
  30. #===============================================================================
  31. # ☆ Introduction
  32. #-------------------------------------------------------------------------------
  33. # This Script allows for regular/x/s-Params to be increased by a set value
  34. # for each level, just like params are done in the database, but for x/s-params.
  35. # It Also offers a substantial increase in the control Dev's have over their
  36. # actors / classes statistic increases.
  37. #
  38. # Obviously you are able to set the params to go way above the normal
  39. # limits for each level, as well as provide ways to increase/decrease
  40. # stats that are not normally changable from level.
  41. #
  42. # You can also have all stats decrease upon level down. (not normally possible)
  43. #
  44. # The Database' Parameter curve feature will still be used, to turn this off
  45. # make all stats lv 1-99 the same value, ie. 1
  46. #
  47. # NOTICE :
  48. # v1.2+ allows for Elemental values to be increased / decreased upon level
  49. # (attack and defence values) IF used in conjunction with my
  50. # $D13x Elements Control Script :p
  51. #
  52. # Plug - Customise - Play
  53. #
  54. #===============================================================================
  55. # ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
  56. #===============================================================================
  57. # 1. You MUST give credit to "Dekita" !!
  58. # 2. You are NOT allowed to repost this script.(or modified versions)
  59. # 3. You are NOT allowed to convert this script.
  60. # 4. You are NOT allowed to use this script for Commercial games.
  61. # 5. ENJOY!
  62. #
  63. # "FINE PRINT"
  64. # By using this script you hereby agree to the above terms and conditions,
  65. # if any violation of the above terms occurs "legal action" may be taken.
  66. # Not understanding the above terms and conditions does NOT mean that
  67. # they do not apply to you.
  68. # If you wish to discuss the terms and conditions in further detail you can
  69. # contact me at http://dekitarpg.wordpress.com/
  70. #
  71. #===============================================================================
  72. # ☆ Instructions
  73. #-------------------------------------------------------------------------------
  74. # Place Below " ▼ Materials " and Above " ▼ Main " in your script editor.
  75. # Place Under My $D13x - Statistic Control Script.
  76. #
  77. #===============================================================================
  78. # ☆ Notetags ( default )
  79. # For use with Actors / Classes
  80. #-------------------------------------------------------------------------------
  81. # <stat set: ID>
  82. # <dyst set: ID>
  83. # ID = the id of the Stat_Set(or Dyst_Set) you wish to use for this
  84. # actor / class
  85. # All Stat_Set and Dyst_Set settings are defined below
  86. # Actor Notes will take priority over Class Notes !
  87. #
  88. #===============================================================================
  89. # ☆ HELP
  90. #-------------------------------------------------------------------------------
  91. # PARAMS : # XPARAMS : # SPARAMS : #
  92. # stat = id # stat = id # stat = id #
  93. # mhp = 0 # hit = 0 # tgr = 0 #
  94. # mmp = 1 # eva = 1 # grd = 1 #
  95. # atk = 2 # cri = 2 # rec = 2 #
  96. # def = 3 # cev = 3 # pha = 3 #
  97. # mat = 4 # mev = 4 # mcr = 4 #
  98. # mdf = 5 # mrf = 5 # tcr = 5 #
  99. # agi = 6 # cnt = 6 # pdr = 6 #
  100. # luk = 7 # hrg = 7 # mdr = 7 #
  101. # # mrg = 8 # fdr = 8 #
  102. # # trg = 9 # exr = 9 #
  103. #-------------------------------------------------------------------------------
  104. # Remember :
  105. # All Params work with integer values, eg. 1, 5, 123, 653, 198123
  106. # All x/s-Params work with float values, eg. 1.0, 0.5, 0.1, 0.05, 0.01
  107. # 1.0 = 100%, 0.01 = 1%,
  108. #
  109. #===============================================================================
  110. module Actor_Stat_Inc
  111. Stat_Set=[]# << Keep
  112. Dyst_Set=[]# << Keep
  113.  
  114. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  115. # ☆ General Settings
  116. #--------------------------------------------------------------------------
  117. Level_Down_Removes_Stats = true
  118. Norm_Notetag = /<stat set:(.*)>/i
  119. Dyst_Notetag = /<dyst set:(.*)>/i
  120.  
  121. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  122. # ☆ Stat increase Set - Settings
  123. #--------------------------------------------------------------------------
  124. # This is a fixed stat increase per level setting.
  125. # can be any of the following stat types :
  126. # [:param , id, change],
  127. # [:x_param , id, change],
  128. # [:s_param , id, change],
  129. # [:atk_ele , id, change],
  130. # [:def_ele , id, change],
  131. # [:spds_stat , id, change]
  132. # [:atk_lvl , change],
  133. # [:def_lvl , change],
  134. # [:max_tp , change],
  135. # [:do_eval , "code to eval" ]
  136. Stat_Set[0]=[
  137. [:param , 0, 20],
  138. [:param , 1, 20],
  139. [:param , 2, 2],
  140. [:param , 3, 2],
  141. [:param , 4, 2],
  142. [:param , 5, 2],
  143. [:param , 6, 2],
  144. [:param , 7, 2],
  145. [:x_param , 0, 0.01],
  146. [:x_param , 1, 0.01],
  147. [:x_param , 2, 0.01],
  148. [:atk_ele , 4, 0.01],
  149. [:def_ele , 4, -0.01],
  150. [:spds_stat, 0, 1],
  151. [:spds_stat, 1, 1],
  152. [:spds_stat, 2, 1],
  153. [:spds_stat, 3, 1],
  154. # [:atk_lvl , 10],
  155. # [:def_lvl , 10],
  156. [:max_tp , 10],
  157. # Insert other regular/x/s-param codes here (codes found above)
  158. # Rememer to put a comma , after each line.
  159. ]# << End Stat_Set[0]
  160.  
  161. Stat_Set[1]=[
  162. # [stat_type, id, change]
  163. [:param , 0, 20],
  164. [:param , 1, 20],
  165. [:param , 2, 2],
  166. [:param , 3, 2],
  167. [:param , 4, 2],
  168. [:param , 5, 2],
  169. [:param , 6, 2],
  170. [:param , 7, 2],
  171. [:x_param , 0, 0.01],
  172. [:x_param , 1, 0.01],
  173. [:x_param , 2, 0.01],
  174. [:atk_ele , 4, 0.01],
  175. [:def_ele , 4, -0.11],
  176. # Insert other x/s-param codes here (codes found above)
  177. # Rememer to put a comma , after each line.
  178. ]# << End Stat_Set[1]
  179.  
  180. # << Add more Stat_Set[id] By Following The Same Method As Above,
  181. # Remember [id] is The id Of The Stat Set The Actor/Class Will Have.
  182. # Also, You Can Change All Stats / Increases(or decreases)
  183. # Within the hash.
  184.  
  185. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  186. # ☆ Dynamic Stat Increase Settings
  187. #--------------------------------------------------------------------------
  188. # This is a more flexible stat set type, by allowing for each level
  189. # to have its own unique stat increase.
  190. # NOTE: I could not be bothered thinking up loads of various stat growth types,
  191. # so i barley filled out these settings, you should cusomtize these to suit
  192. # your needs before use.
  193. Dyst_Set[0]={ # << Initialize Dynamic Stat Set id [0]
  194. 1 =>[], # << End Lv 1 (inital level must be kept)
  195. 2 =>[
  196. [:param , 0, 5],
  197. [:param , 1, 5],
  198. [:param , 2, 1],
  199. [:param , 3, 1],
  200. [:param , 4, 1],
  201. [:param , 5, 1],
  202. [:param , 6, 1],
  203. [:atk_lvl , 1],
  204. [:def_lvl , 1],
  205. ], # << End Lv 2
  206. 3 =>[
  207. [:param , 0, 5],
  208. [:param , 1, 5],
  209. [:param , 2, 1],
  210. [:param , 3, 1],
  211. [:param , 4, 1],
  212. [:param , 5, 1],
  213. [:param , 6, 1],
  214. [:atk_lvl , 1],
  215. [:def_lvl , 1],
  216. ], # << End Lv 3
  217. 4 =>[
  218. [:param , 0, 5],
  219. [:param , 1, 5],
  220. [:param , 2, 1],
  221. [:param , 3, 1],
  222. [:param , 4, 1],
  223. [:param , 5, 1],
  224. [:param , 6, 1],
  225. [:atk_lvl , 1],
  226. [:def_lvl , 1],
  227. ],
  228. 5 =>[
  229. [:param , 0, 5],
  230. [:param , 1, 5],
  231. [:param , 2, 1],
  232. [:param , 3, 1],
  233. [:param , 4, 1],
  234. [:param , 5, 1],
  235. [:param , 6, 1],
  236. [:atk_lvl , 1],
  237. [:def_lvl , 1],
  238. ],
  239. 6 =>[
  240. [:param , 0, 5],
  241. [:param , 1, 5],
  242. [:param , 2, 1],
  243. [:param , 3, 1],
  244. [:param , 4, 1],
  245. [:param , 5, 1],
  246. [:param , 6, 1],
  247. [:atk_lvl , 1],
  248. [:def_lvl , 1],
  249. ],
  250. 7 =>[
  251. [:param , 0, 5],
  252. [:param , 1, 5],
  253. [:param , 2, 1],
  254. [:param , 3, 1],
  255. [:param , 4, 1],
  256. [:param , 5, 1],
  257. [:param , 6, 1],
  258. [:atk_lvl , 1],
  259. [:def_lvl , 1],
  260. ],
  261. 8 =>[
  262. [:param , 0, 5],
  263. [:param , 1, 5],
  264. [:param , 2, 1],
  265. [:param , 3, 1],
  266. [:param , 4, 1],
  267. [:param , 5, 1],
  268. [:param , 6, 1],
  269. [:atk_lvl , 1],
  270. [:def_lvl , 1],
  271. ],
  272. 9 =>[
  273. [:param , 0, 5],
  274. [:param , 1, 5],
  275. [:param , 2, 1],
  276. [:param , 3, 1],
  277. [:param , 4, 1],
  278. [:param , 5, 1],
  279. [:param , 6, 1],
  280. [:atk_lvl , 1],
  281. [:def_lvl , 1],
  282. [:max_tp , 99],
  283. [:do_eval , "$game_temp.reserve_common_event(6)" ]
  284. ],
  285. 10 =>[
  286. [:param , 0, 5],
  287. [:param , 1, 5],
  288. [:param , 2, 1],
  289. [:param , 3, 1],
  290. [:param , 4, 1],
  291. [:param , 5, 1],
  292. [:param , 6, 1],
  293. [:atk_lvl , 1],
  294. [:def_lvl , 1],
  295. ],
  296. 11 =>[
  297. [:param , 0, 5],
  298. [:param , 1, 5],
  299. [:param , 2, 1],
  300. [:param , 3, 1],
  301. [:param , 4, 1],
  302. [:param , 5, 1],
  303. [:param , 6, 1],
  304. [:atk_lvl , 1],
  305. [:def_lvl , 1],
  306. ],
  307. 12 =>[
  308. [:param , 0, 5],
  309. [:param , 1, 5],
  310. [:param , 2, 1],
  311. [:param , 3, 1],
  312. [:param , 4, 1],
  313. [:param , 5, 1],
  314. [:param , 6, 1],
  315. [:atk_lvl , 1],
  316. [:def_lvl , 1],
  317. ],
  318. 13 =>[
  319. [:param , 0, 5],
  320. [:param , 1, 5],
  321. [:param , 2, 1],
  322. [:param , 3, 1],
  323. [:param , 4, 1],
  324. [:param , 5, 1],
  325. [:param , 6, 1],
  326. [:atk_lvl , 1],
  327. [:def_lvl , 1],
  328. ],
  329. 14 =>[
  330. [:param , 0, 5],
  331. [:param , 1, 5],
  332. [:param , 2, 1],
  333. [:param , 3, 1],
  334. [:param , 4, 1],
  335. [:param , 5, 1],
  336. [:param , 6, 1],
  337. [:atk_lvl , 1],
  338. [:def_lvl , 1],
  339. ],
  340. 15 =>[
  341. [:param , 0, 5],
  342. [:param , 1, 5],
  343. [:param , 2, 1],
  344. [:param , 3, 1],
  345. [:param , 4, 1],
  346. [:param , 5, 1],
  347. [:param , 6, 1],
  348. [:atk_lvl , 1],
  349. [:def_lvl , 1],
  350. ],
  351. 16 =>[
  352. [:param , 0, 5],
  353. [:param , 1, 5],
  354. [:param , 2, 1],
  355. [:param , 3, 1],
  356. [:param , 4, 1],
  357. [:param , 5, 1],
  358. [:param , 6, 1],
  359. [:atk_lvl , 1],
  360. [:def_lvl , 1],
  361. ],
  362. 17 =>[
  363. [:param , 0, 5],
  364. [:param , 1, 5],
  365. [:param , 2, 1],
  366. [:param , 3, 1],
  367. [:param , 4, 1],
  368. [:param , 5, 1],
  369. [:param , 6, 1],
  370. [:atk_lvl , 1],
  371. [:def_lvl , 1],
  372. ],
  373. 18 =>[
  374. [:param , 0, 5],
  375. [:param , 1, 5],
  376. [:param , 2, 1],
  377. [:param , 3, 1],
  378. [:param , 4, 1],
  379. [:param , 5, 1],
  380. [:param , 6, 1],
  381. [:atk_lvl , 1],
  382. [:def_lvl , 1],
  383. ],
  384. 19 =>[
  385. [:param , 0, 5],
  386. [:param , 1, 5],
  387. [:param , 2, 1],
  388. [:param , 3, 1],
  389. [:param , 4, 1],
  390. [:param , 5, 1],
  391. [:param , 6, 1],
  392. [:atk_lvl , 1],
  393. [:def_lvl , 1],
  394. [:max_tp , 100],
  395. # [:do_eval , "$game_temp.reserve_common_event(6)" ]
  396. ],
  397. 20 =>[
  398. [:param , 0, 5],
  399. [:param , 1, 5],
  400. [:param , 2, 1],
  401. [:param , 3, 1],
  402. [:param , 4, 1],
  403. [:param , 5, 1],
  404. [:param , 6, 1],
  405. [:atk_lvl , 1],
  406. [:def_lvl , 1],
  407. ],
  408. 21 =>[
  409. [:param , 0, 5],
  410. [:param , 1, 5],
  411. [:param , 2, 1],
  412. [:param , 3, 1],
  413. [:param , 4, 1],
  414. [:param , 5, 1],
  415. [:param , 6, 1],
  416. [:atk_lvl , 1],
  417. [:def_lvl , 1],
  418. ],
  419. 22 =>[
  420. [:param , 0, 5],
  421. [:param , 1, 5],
  422. [:param , 2, 1],
  423. [:param , 3, 1],
  424. [:param , 4, 1],
  425. [:param , 5, 1],
  426. [:param , 6, 1],
  427. [:atk_lvl , 1],
  428. [:def_lvl , 1],
  429. ],
  430. 23 =>[
  431. [:param , 0, 5],
  432. [:param , 1, 5],
  433. [:param , 2, 1],
  434. [:param , 3, 1],
  435. [:param , 4, 1],
  436. [:param , 5, 1],
  437. [:param , 6, 1],
  438. [:atk_lvl , 1],
  439. [:def_lvl , 1],
  440. ],
  441. 24 =>[
  442. [:param , 0, 5],
  443. [:param , 1, 5],
  444. [:param , 2, 1],
  445. [:param , 3, 1],
  446. [:param , 4, 1],
  447. [:param , 5, 1],
  448. [:param , 6, 1],
  449. [:atk_lvl , 1],
  450. [:def_lvl , 1],
  451. ],
  452. 25 =>[
  453. [:param , 0, 5],
  454. [:param , 1, 5],
  455. [:param , 2, 1],
  456. [:param , 3, 1],
  457. [:param , 4, 1],
  458. [:param , 5, 1],
  459. [:param , 6, 1],
  460. [:atk_lvl , 1],
  461. [:def_lvl , 1],
  462. ],
  463. 26 =>[
  464. [:param , 0, 5],
  465. [:param , 1, 5],
  466. [:param , 2, 1],
  467. [:param , 3, 1],
  468. [:param , 4, 1],
  469. [:param , 5, 1],
  470. [:param , 6, 1],
  471. [:atk_lvl , 1],
  472. [:def_lvl , 1],
  473. ],
  474. 27 =>[
  475. [:param , 0, 5],
  476. [:param , 1, 5],
  477. [:param , 2, 1],
  478. [:param , 3, 1],
  479. [:param , 4, 1],
  480. [:param , 5, 1],
  481. [:param , 6, 1],
  482. [:atk_lvl , 1],
  483. [:def_lvl , 1],
  484. ],
  485. 28 =>[
  486. [:param , 0, 5],
  487. [:param , 1, 5],
  488. [:param , 2, 1],
  489. [:param , 3, 1],
  490. [:param , 4, 1],
  491. [:param , 5, 1],
  492. [:param , 6, 1],
  493. [:atk_lvl , 1],
  494. [:def_lvl , 1],
  495. ],
  496. 29 =>[
  497. [:param , 0, 5],
  498. [:param , 1, 5],
  499. [:param , 2, 1],
  500. [:param , 3, 1],
  501. [:param , 4, 1],
  502. [:param , 5, 1],
  503. [:param , 6, 1],
  504. [:atk_lvl , 1],
  505. [:def_lvl , 1],
  506. ],
  507. 30 =>[
  508. [:param , 0, 5],
  509. [:param , 1, 5],
  510. [:param , 2, 1],
  511. [:param , 3, 1],
  512. [:param , 4, 1],
  513. [:param , 5, 1],
  514. [:param , 6, 1],
  515. [:atk_lvl , 1],
  516. [:def_lvl , 1],
  517. ],
  518. 31 =>[
  519. [:param , 0, 5],
  520. [:param , 1, 5],
  521. [:param , 2, 1],
  522. [:param , 3, 1],
  523. [:param , 4, 1],
  524. [:param , 5, 1],
  525. [:param , 6, 1],
  526. [:atk_lvl , 1],
  527. [:def_lvl , 1],
  528. ],
  529. 32 =>[
  530. [:param , 0, 5],
  531. [:param , 1, 5],
  532. [:param , 2, 1],
  533. [:param , 3, 1],
  534. [:param , 4, 1],
  535. [:param , 5, 1],
  536. [:param , 6, 1],
  537. [:atk_lvl , 1],
  538. [:def_lvl , 1],
  539. ],
  540. 33 =>[
  541. [:param , 0, 5],
  542. [:param , 1, 5],
  543. [:param , 2, 1],
  544. [:param , 3, 1],
  545. [:param , 4, 1],
  546. [:param , 5, 1],
  547. [:param , 6, 1],
  548. [:atk_lvl , 1],
  549. [:def_lvl , 1],
  550. ],
  551. 34 =>[
  552. [:param , 0, 5],
  553. [:param , 1, 5],
  554. [:param , 2, 1],
  555. [:param , 3, 1],
  556. [:param , 4, 1],
  557. [:param , 5, 1],
  558. [:param , 6, 1],
  559. [:atk_lvl , 1],
  560. [:def_lvl , 1],
  561. ],
  562. 35 =>[
  563. [:param , 0, 5],
  564. [:param , 1, 5],
  565. [:param , 2, 1],
  566. [:param , 3, 1],
  567. [:param , 4, 1],
  568. [:param , 5, 1],
  569. [:param , 6, 1],
  570. [:atk_lvl , 1],
  571. [:def_lvl , 1],
  572. ],
  573. 36 =>[
  574. [:param , 0, 5],
  575. [:param , 1, 5],
  576. [:param , 2, 1],
  577. [:param , 3, 1],
  578. [:param , 4, 1],
  579. [:param , 5, 1],
  580. [:param , 6, 1],
  581. [:atk_lvl , 1],
  582. [:def_lvl , 1],
  583. ],
  584. 37 =>[
  585. [:param , 0, 5],
  586. [:param , 1, 5],
  587. [:param , 2, 1],
  588. [:param , 3, 1],
  589. [:param , 4, 1],
  590. [:param , 5, 1],
  591. [:param , 6, 1],
  592. [:atk_lvl , 1],
  593. [:def_lvl , 1],
  594. ],
  595. 38 =>[
  596. [:param , 0, 5],
  597. [:param , 1, 5],
  598. [:param , 2, 1],
  599. [:param , 3, 1],
  600. [:param , 4, 1],
  601. [:param , 5, 1],
  602. [:param , 6, 1],
  603. [:atk_lvl , 1],
  604. [:def_lvl , 1],
  605. ],
  606. 39 =>[
  607. [:param , 0, 5],
  608. [:param , 1, 5],
  609. [:param , 2, 1],
  610. [:param , 3, 1],
  611. [:param , 4, 1],
  612. [:param , 5, 1],
  613. [:param , 6, 1],
  614. [:atk_lvl , 1],
  615. [:def_lvl , 1],
  616. ],
  617. 40 =>[
  618. [:param , 0, 5],
  619. [:param , 1, 5],
  620. [:param , 2, 1],
  621. [:param , 3, 1],
  622. [:param , 4, 1],
  623. [:param , 5, 1],
  624. [:param , 6, 1],
  625. [:atk_lvl , 1],
  626. [:def_lvl , 1],
  627. ],
  628. 41 =>[
  629. [:param , 0, 5],
  630. [:param , 1, 5],
  631. [:param , 2, 1],
  632. [:param , 3, 1],
  633. [:param , 4, 1],
  634. [:param , 5, 1],
  635. [:param , 6, 1],
  636. [:atk_lvl , 1],
  637. [:def_lvl , 1],
  638. ],
  639. 42 =>[
  640. [:param , 0, 5],
  641. [:param , 1, 5],
  642. [:param , 2, 1],
  643. [:param , 3, 1],
  644. [:param , 4, 1],
  645. [:param , 5, 1],
  646. [:param , 6, 1],
  647. [:atk_lvl , 1],
  648. [:def_lvl , 1],
  649. ],
  650. 43 =>[
  651. [:param , 0, 5],
  652. [:param , 1, 5],
  653. [:param , 2, 1],
  654. [:param , 3, 1],
  655. [:param , 4, 1],
  656. [:param , 5, 1],
  657. [:param , 6, 1],
  658. [:atk_lvl , 1],
  659. [:def_lvl , 1],
  660. ],
  661. 44 =>[
  662. [:param , 0, 5],
  663. [:param , 1, 5],
  664. [:param , 2, 1],
  665. [:param , 3, 1],
  666. [:param , 4, 1],
  667. [:param , 5, 1],
  668. [:param , 6, 1],
  669. [:atk_lvl , 1],
  670. [:def_lvl , 1],
  671. ],
  672. 45 =>[
  673. [:param , 0, 5],
  674. [:param , 1, 5],
  675. [:param , 2, 1],
  676. [:param , 3, 1],
  677. [:param , 4, 1],
  678. [:param , 5, 1],
  679. [:param , 6, 1],
  680. [:atk_lvl , 1],
  681. [:def_lvl , 1],
  682. ],
  683. 46 =>[
  684. [:param , 0, 5],
  685. [:param , 1, 5],
  686. [:param , 2, 1],
  687. [:param , 3, 1],
  688. [:param , 4, 1],
  689. [:param , 5, 1],
  690. [:param , 6, 1],
  691. [:atk_lvl , 1],
  692. [:def_lvl , 1],
  693. ],
  694. 47 =>[
  695. [:param , 0, 5],
  696. [:param , 1, 5],
  697. [:param , 2, 1],
  698. [:param , 3, 1],
  699. [:param , 4, 1],
  700. [:param , 5, 1],
  701. [:param , 6, 1],
  702. [:atk_lvl , 1],
  703. [:def_lvl , 1],
  704. ],
  705. 48 =>[
  706. [:param , 0, 5],
  707. [:param , 1, 5],
  708. [:param , 2, 1],
  709. [:param , 3, 1],
  710. [:param , 4, 1],
  711. [:param , 5, 1],
  712. [:param , 6, 1],
  713. [:atk_lvl , 1],
  714. [:def_lvl , 1],
  715. ],
  716. 49 =>[
  717. [:param , 0, 5],
  718. [:param , 1, 5],
  719. [:param , 2, 1],
  720. [:param , 3, 1],
  721. [:param , 4, 1],
  722. [:param , 5, 1],
  723. [:param , 6, 1],
  724. [:atk_lvl , 1],
  725. [:def_lvl , 1],
  726. ],
  727. 50 =>[
  728. [:param , 0, 5],
  729. [:param , 1, 5],
  730. [:param , 2, 1],
  731. [:param , 3, 1],
  732. [:param , 4, 1],
  733. [:param , 5, 1],
  734. [:param , 6, 1],
  735. [:atk_lvl , 1],
  736. [:def_lvl , 1],
  737. ],
  738. 51 =>[
  739. [:atk_lvl , 1],
  740. [:def_lvl , 1],
  741. ],
  742. 52 =>[
  743. # Stats go here
  744. ],
  745. 53 =>[
  746. # Stats go here
  747. ],
  748. 54 =>[
  749. # Stats go here
  750. ],
  751. 55 =>[
  752. # Stats go here
  753. ],
  754. 56 =>[
  755. # Stats go here
  756. ],
  757. 57 =>[
  758. # Stats go here
  759. ],
  760. 58 =>[
  761. # Stats go here
  762. ],
  763. 59 =>[
  764. # Stats go here
  765. ],
  766. 60 =>[
  767. # [stat_type, id, change]
  768. [:param , 0, 20],
  769. [:x_param , 0, 0.01],
  770. [:s_param , 2, 0.01],
  771. [:atk_ele , 4, 0.01],
  772. [:def_ele , 4, -0.11],
  773. ],
  774. 61 =>[
  775. # Stats go here
  776. ],
  777. 62 =>[
  778. # Stats go here
  779. ],
  780. 63 =>[
  781. # Stats go here
  782. ],
  783. 64 =>[
  784. # Stats go here
  785. ],
  786. 65 =>[
  787. # Stats go here
  788. ],
  789. 66 =>[
  790. # Stats go here
  791. ],
  792. 67 =>[
  793. # Stats go here
  794. ],
  795. 68 =>[
  796. # Stats go here
  797. ],
  798. 69 =>[
  799. # Stats go here
  800. ],
  801. 70 =>[
  802. # [stat_type, id, change]
  803. [:param , 0, 20],
  804. [:x_param , 0, 0.01],
  805. [:s_param , 2, 0.01],
  806. [:atk_ele , 4, 0.01],
  807. [:def_ele , 4, -0.11],
  808. ],
  809. 71 =>[
  810. # Stats go here
  811. ],
  812. 72 =>[
  813. # Stats go here
  814. ],
  815. 73 =>[
  816. # Stats go here
  817. ],
  818. 74 =>[
  819. # Stats go here
  820. ],
  821. 75 =>[
  822. # Stats go here
  823. ],
  824. 76 =>[
  825. # Stats go here
  826. ],
  827. 77 =>[
  828. # Stats go here
  829. ],
  830. 78 =>[
  831. # Stats go here
  832. ],
  833. 79 =>[
  834. # Stats go here
  835. ],
  836. 80 =>[
  837. # [stat_type, id, change]
  838. [:param , 0, 20],
  839. [:x_param , 0, 0.01],
  840. [:s_param , 2, 0.01],
  841. [:atk_ele , 4, 0.01],
  842. [:def_ele , 4, -0.11],
  843. ],
  844. 81 =>[
  845. # Stats go here
  846. ],
  847. 82 =>[
  848. # Stats go here
  849. ],
  850. 83 =>[
  851. # Stats go here
  852. ],
  853. 84 =>[
  854. # Stats go here
  855. ],
  856. 85 =>[
  857. # Stats go here
  858. ],
  859. 86 =>[
  860. # Stats go here
  861. ],
  862. 87 =>[
  863. # Stats go here
  864. ],
  865. 88 =>[
  866. # Stats go here
  867. ],
  868. 89 =>[
  869. # Stats go here
  870. ],
  871. 90 =>[
  872. # [stat_type, id, change]
  873. [:param , 0, 20],
  874. [:x_param , 0, 0.01],
  875. [:s_param , 2, 0.01],
  876. [:atk_ele , 4, 0.01],
  877. [:def_ele , 4, -0.11],
  878. ],
  879. 91 =>[
  880. # Stats go here
  881. ],
  882. 92 =>[
  883. # Stats go here
  884. ],
  885. 93 =>[
  886. # Stats go here
  887. ],
  888. 94 =>[
  889. # Stats go here
  890. ],
  891. 95 =>[
  892. # Stats go here
  893. ],
  894. 96 =>[
  895. # Stats go here
  896. ],
  897. 97 =>[
  898. # Stats go here
  899. ],
  900. 98 =>[
  901. # Stats go here
  902. ],
  903. 99 =>[
  904. # Stats go here
  905. ],
  906. 100 =>[
  907. # [stat_type, id, change]
  908. [:param , 0, 20],
  909. [:x_param , 0, 0.01],
  910. [:s_param , 2, 0.01],
  911. [:atk_ele , 4, 0.01],
  912. [:def_ele , 4, -0.11],
  913. ],
  914. # If for some reason you can reach more than level 100
  915. # insert more stat changes for each possible level to avoid errors.
  916. } # << End Dynamic Stat Set id [0] << KEEP !!
  917.  
  918. # << Add More Dynamic Stat Sets Below This Point.
  919. # Simply Copy The Code From Above And Change The
  920. # Id Number And Stats To Suit Your Needs.
  921.  
  922. #####################
  923. # CUSTOMISATION END #
  924. end #####################
  925. #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
  926. # #
  927. # http://dekitarpg.wordpress.com/ #
  928. # #
  929. #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
  930. # The following code is protected under the 2013 Dekita Data Protection Act. #
  931. # Ie. The “Do Not Fucking Look” Law. #
  932. # Breaking This One And Only Rule WILL Result in ERECTILE DYSFUNCTION. #
  933. # That is all ! #
  934. #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
  935. #===============================================================================#
  936. module DataManager
  937. #===============================================================================
  938. #---------------------------------------------------------------------------
  939. # Alias List
  940. #---------------------------------------------------------------------------
  941. class << self
  942. alias :lbd_unique_lv_up_stat :load_database
  943. end
  944. #---------------------------------------------------------------------------
  945. # Load Database (alias)
  946. #---------------------------------------------------------------------------
  947. def self.load_database
  948. lbd_unique_lv_up_stat
  949. loa_unique_lv_up_stat
  950. end
  951. #---------------------------------------------------------------------------
  952. # Load Unique Shit
  953. #---------------------------------------------------------------------------
  954. def self.loa_unique_lv_up_stat
  955. gr = [$data_actors,$data_classes]
  956. for g in gr
  957. for o in g
  958. next if o == nil
  959. o.load__lv_up_stat
  960. end
  961. end
  962. end
  963.  
  964. end # DataManager
  965.  
  966. #===============================================================================
  967. class RPG::Actor < RPG::BaseItem
  968. #===============================================================================
  969. #---------------------------------------------------------------------------
  970. # Pi Variables
  971. #---------------------------------------------------------------------------
  972. attr_accessor :stat_set_id
  973. #---------------------------------------------------------------------------
  974. # Load Level Stat Notes
  975. #---------------------------------------------------------------------------
  976. def load__lv_up_stat
  977. @stat_set_id = [ nil , nil ]
  978. self.note.split(/[\r\n]+/).each do |line|
  979. case line
  980. when Actor_Stat_Inc::Norm_Notetag then @stat_set_id = [:steady , $1.to_i]
  981. when Actor_Stat_Inc::Dyst_Notetag then @stat_set_id = [:dynamic, $1.to_i]
  982. end
  983. end
  984. end
  985.  
  986. end
  987.  
  988. #===============================================================================
  989. class RPG::Class < RPG::BaseItem
  990. #===============================================================================
  991. #---------------------------------------------------------------------------
  992. # Pi Variables
  993. #---------------------------------------------------------------------------
  994. attr_accessor :stat_set_id
  995. #---------------------------------------------------------------------------
  996. # Load Level Stat Notes
  997. #---------------------------------------------------------------------------
  998. def load__lv_up_stat
  999. @stat_set_id = [ nil , nil ]
  1000. self.note.split(/[\r\n]+/).each do |line|
  1001. case line
  1002. when Actor_Stat_Inc::Norm_Notetag then @stat_set_id = [:steady , $1.to_i]
  1003. when Actor_Stat_Inc::Dyst_Notetag then @stat_set_id = [:dynamic, $1.to_i]
  1004. end
  1005. end
  1006. end
  1007.  
  1008. end
  1009.  
  1010. #===============================================================================
  1011. class Game_Actor < Game_Battler
  1012. #===============================================================================
  1013. #---------------------------------------------------------------------------
  1014. # Alias List
  1015. #---------------------------------------------------------------------------
  1016. alias :lv_down_rem_stats_sD13x :lv_down_extra
  1017. #---------------------------------------------------------------------------
  1018. # Get Stat Increase Type (and do it)
  1019. #---------------------------------------------------------------------------
  1020. def determine_stat_inc_type
  1021. type = stat_set_type
  1022. id = stat_set_id
  1023. case type
  1024. when :steady then doda_stat_inc(Actor_Stat_Inc::Stat_Set[id])
  1025. when :dynamic then doda_stat_inc(Actor_Stat_Inc::Dyst_Set[id][@level])
  1026. end
  1027. end
  1028. #---------------------------------------------------------------------------
  1029. # Do Stat Increase
  1030. #---------------------------------------------------------------------------
  1031. def doda_stat_inc(type)
  1032. return if type == nil
  1033. type.each do |stat|
  1034. case stat[0]
  1035. when :param ;add_param( stat[1],stat[2],false) if $D13x[:Stats_Control]
  1036. when :x_param ;add_xparam( stat[1],stat[2],false) if $D13x[:Stats_Control]
  1037. when :s_param ;add_sparam( stat[1],stat[2],false) if $D13x[:Stats_Control]
  1038. when :atk_ele ;add_atk_ele(stat[1],stat[2],false) if $D13x[:Elems_Control]
  1039. when :def_ele ;add_def_ele(stat[1],stat[2],false) if $D13x[:Elems_Control]
  1040. when :atk_lvl ;add_atl( stat[1] ,false) if $D13x[:Atk_Def_Lvs]
  1041. when :def_lvl ;add_dfl( stat[1], false) if $D13x[:Atk_Def_Lvs]
  1042. when :max_tp ;add_max_tp( stat[1], false) if $D13x[:TP_Control]
  1043. when :spds_stat ;add_spds_stats(stat[1],stat[2],false) if $D13x[:ISPDS]
  1044. when :do_eval ; eval(stat[1])
  1045. end
  1046. end
  1047. refresh
  1048. end
  1049. #--------------------------------------------------------------------------
  1050. # Level Down Extra Shit
  1051. #--------------------------------------------------------------------------
  1052. def lv_down_extra
  1053. lv_down_rem_stats_sD13x
  1054. determine_stat_dec_type
  1055. end
  1056. #---------------------------------------------------------------------------
  1057. # Get Stat Increase Type (and do it)
  1058. #---------------------------------------------------------------------------
  1059. def determine_stat_dec_type
  1060. return unless Actor_Stat_Inc::Level_Down_Removes_Stats
  1061. type = stat_set_type
  1062. id = stat_set_id
  1063. case type
  1064. when :steady then doda_stat_dec(Actor_Stat_Inc::Stat_Set[id])
  1065. when :dynamic then doda_stat_dec(Actor_Stat_Inc::Dyst_Set[id][@level])
  1066. end
  1067. end
  1068. #---------------------------------------------------------------------------
  1069. # Do Stat Decrease
  1070. #---------------------------------------------------------------------------
  1071. def doda_stat_dec(type)
  1072. return if type == nil
  1073. type.each do |stat|
  1074. case stat[0]
  1075. when :param ;sub_param( stat[1],stat[2],false) if $D13x[:Stats_Control]
  1076. when :x_param ;sub_xparam( stat[1],stat[2],false) if $D13x[:Stats_Control]
  1077. when :s_param ;sub_sparam( stat[1],stat[2],false) if $D13x[:Stats_Control]
  1078. when :atk_ele ;sub_atk_ele(stat[1],stat[2],false) if $D13x[:Elems_Control]
  1079. when :def_ele ;sub_def_ele(stat[1],stat[2],false) if $D13x[:Elems_Control]
  1080. when :atk_lvl ;sub_atl( stat[1] ,false) if $D13x[:Atk_Def_Lvs]
  1081. when :def_lvl ;sub_dfl( stat[1], false) if $D13x[:Atk_Def_Lvs]
  1082. when :max_tp ;sub_max_tp( stat[1], false) if $D13x[:TP_Control]
  1083. when :spds_stat ;sub_spds_stats(stat[1],stat[2],false) if $D13x[:ISPDS]
  1084. end
  1085. end
  1086. refresh
  1087. end
  1088. #---------------------------------------------------------------------------
  1089. # Get Stat Increase Type
  1090. #---------------------------------------------------------------------------
  1091. def stat_set_type
  1092. set = self.class.stat_set_id[0]
  1093. if actor.stat_set_id[0] != nil
  1094. set = actor.stat_set_id[0]
  1095. end
  1096. set
  1097. end
  1098. #---------------------------------------------------------------------------
  1099. # Get Stat Increase ID
  1100. #---------------------------------------------------------------------------
  1101. def stat_set_id
  1102. set = self.class.stat_set_id[1]
  1103. if actor.stat_set_id[1] != nil
  1104. set = actor.stat_set_id[1]
  1105. end
  1106. set
  1107. end
  1108.  
  1109. end
  1110.  
  1111. #==============================================================================#
  1112. # http://dekitarpg.wordpress.com/ #
  1113. #==============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement