Advertisement
Dekita

MNT

Feb 7th, 2013
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. =begin =========================================================================
  2. Dekita's v1.0
  3. ★ Map Notebox Thing™ ★
  4.  
  5. ================================================================================
  6. Script Information:
  7. ====================
  8. This script simply allows for an elongated map notebox.
  9. It just pissed me off having to write shitty little notetags to fit in
  10. the map notebox..
  11. It does not overwrite the notebox, just add's to it, so all other notes
  12. within the map notebox will still be read.
  13.  
  14. NOTE : This should be palced ABOVE any script that uses map notes.
  15. NOTE 2 : I have only tested this with scripts of my own, there was no problems
  16. if you find an incompatability, make sure this script is above all
  17. other scripts, if the problem persists, contact me and i will try to
  18. make it compatable.
  19.  
  20. ================================================================================
  21. ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
  22. ================================================================================
  23. 1. You must give credit to "Dekita"
  24. 2. You are NOT allowed to repost this script.(or modified versions)
  25. 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
  26. 4. You are NOT allowed to use this script for Commercial games.
  27. 5. ENJOY!
  28.  
  29. "FINE PRINT"
  30. By using this script you hereby agree to the above terms and conditions,
  31. if any violation of the above terms occurs "legal action" may be taken.
  32. Not understanding the above terms and conditions does NOT mean that
  33. they do not apply to you.
  34. If you wish to discuss the terms and conditions in further detail you can
  35. contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
  36.  
  37. ================================================================================
  38. History:
  39. =========
  40. D /M /Y
  41. o3/o2/2o13 - started, finished,
  42.  
  43. ================================================================================
  44. INSTRUCTIONS:
  45. ==============
  46. Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
  47.  
  48. ================================================================================
  49. Notetags: (for maps)
  50. ==========
  51. <X notes>
  52. replace X with the hash name(id) for the notes you wish to add to this maps
  53. notebox,
  54. e.g
  55. <map1 notes>
  56. would add all notetags defined under
  57. ie.
  58. Notes['map1']="
  59. <random notetag>
  60. <random long notetag: this, that, and the other>
  61. "
  62. or whatever other notetags you add into the section.
  63.  
  64. You can add to the hash by putting
  65. Notes['your name here']="
  66. <your notes here>
  67. "
  68.  
  69. and then using the notetag
  70. <your name here notes>
  71.  
  72. =end #==========================================================================#
  73.  
  74. module Map_Notebox_Extension
  75.  
  76. Notes={}
  77. Notes['map1']="
  78. <no weather>
  79. <tint:-28,-28,-28,0>
  80. <LET: 0, 0, 0>
  81. <LET: 1, 2, 0>
  82. <LET: 3, 2, 0>
  83. <LET: 4, 2, 0>
  84. <L SIZE: 3, 32>
  85. <L SIZE: 4, 42>
  86. <LCOL: 3, 255, 1, 1, 250>
  87. <LOC: 3, 0, 0, 0, 250>
  88. <let font: 3, 1>
  89. <let font: 4, 2>
  90. <L Bol: 3, true>
  91. <L Ita: 3, true>
  92. <L FX: 0, 1>
  93. <L FX: 1, 0>
  94. <L FX: 3, 8>
  95. <L FX: 4, 9>
  96. <L SLI: 0, 10>
  97. <L SLI: 1, 20>
  98. <L SLI: 3, 80>
  99. <L SLI: 4, 90>
  100. " # Notes['map1'] end, notetag = <map1 notes>
  101.  
  102. end # end customization.
  103.  
  104. #===============================================================================#
  105. class RPG::Map
  106. #===============================================================================#
  107.  
  108. def get_extended_nbox
  109. self.note.split(/[\r\n]+/).each { |line|
  110. case line
  111. when /<(.*) notes>/i
  112. notetag = $1.to_s
  113. @note += Map_Notebox_Extension::Notes[notetag]
  114. #---
  115. end
  116. } # self.note.split
  117. end
  118.  
  119. end
  120.  
  121. #===============================================================================#
  122. class Game_Map
  123. #===============================================================================#
  124.  
  125. alias :map_notebox_extension :setup
  126. def setup(map_id)
  127. map_notebox_extension(map_id)
  128. @map.get_extended_nbox
  129. end
  130.  
  131. end
  132.  
  133. #===============================================================================#
  134. # - SCRIPT END - #
  135. #===============================================================================#
  136. # http://dekitarpg.wordpress.com/ #
  137. #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement