Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin =========================================================================
- Dekita's v1.0
- ★ Map Notebox Thing™ ★
- ================================================================================
- Script Information:
- ====================
- This script simply allows for an elongated map notebox.
- It just pissed me off having to write shitty little notetags to fit in
- the map notebox..
- It does not overwrite the notebox, just add's to it, so all other notes
- within the map notebox will still be read.
- NOTE : This should be palced ABOVE any script that uses map notes.
- NOTE 2 : I have only tested this with scripts of my own, there was no problems
- if you find an incompatability, make sure this script is above all
- other scripts, if the problem persists, contact me and i will try to
- make it compatable.
- ================================================================================
- ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
- ================================================================================
- 1. You must give credit to "Dekita"
- 2. You are NOT allowed to repost this script.(or modified versions)
- 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
- 4. You are NOT allowed to use this script for Commercial games.
- 5. ENJOY!
- "FINE PRINT"
- By using this script you hereby agree to the above terms and conditions,
- if any violation of the above terms occurs "legal action" may be taken.
- Not understanding the above terms and conditions does NOT mean that
- they do not apply to you.
- If you wish to discuss the terms and conditions in further detail you can
- contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
- ================================================================================
- History:
- =========
- D /M /Y
- o3/o2/2o13 - started, finished,
- ================================================================================
- INSTRUCTIONS:
- ==============
- Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
- ================================================================================
- Notetags: (for maps)
- ==========
- <X notes>
- replace X with the hash name(id) for the notes you wish to add to this maps
- notebox,
- e.g
- <map1 notes>
- would add all notetags defined under
- ie.
- Notes['map1']="
- <random notetag>
- <random long notetag: this, that, and the other>
- "
- or whatever other notetags you add into the section.
- You can add to the hash by putting
- Notes['your name here']="
- <your notes here>
- "
- and then using the notetag
- <your name here notes>
- =end #==========================================================================#
- module Map_Notebox_Extension
- Notes={}
- Notes['map1']="
- <no weather>
- <tint:-28,-28,-28,0>
- <LET: 0, 0, 0>
- <LET: 1, 2, 0>
- <LET: 3, 2, 0>
- <LET: 4, 2, 0>
- <L SIZE: 3, 32>
- <L SIZE: 4, 42>
- <LCOL: 3, 255, 1, 1, 250>
- <LOC: 3, 0, 0, 0, 250>
- <let font: 3, 1>
- <let font: 4, 2>
- <L Bol: 3, true>
- <L Ita: 3, true>
- <L FX: 0, 1>
- <L FX: 1, 0>
- <L FX: 3, 8>
- <L FX: 4, 9>
- <L SLI: 0, 10>
- <L SLI: 1, 20>
- <L SLI: 3, 80>
- <L SLI: 4, 90>
- " # Notes['map1'] end, notetag = <map1 notes>
- end # end customization.
- #===============================================================================#
- class RPG::Map
- #===============================================================================#
- def get_extended_nbox
- self.note.split(/[\r\n]+/).each { |line|
- case line
- when /<(.*) notes>/i
- notetag = $1.to_s
- @note += Map_Notebox_Extension::Notes[notetag]
- #---
- end
- } # self.note.split
- end
- end
- #===============================================================================#
- class Game_Map
- #===============================================================================#
- alias :map_notebox_extension :setup
- def setup(map_id)
- map_notebox_extension(map_id)
- @map.get_extended_nbox
- end
- end
- #===============================================================================#
- # - SCRIPT END - #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement