Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=============================================================================
- # Kadafi - [Add On] TheoAllen - Namebox Window
- # Original Script: TheoAllen - Namebox Window
- # Version : 1.0
- # Contact : http://www.facebook.com/xandalfi
- # =============================================================================
- ($imported ||= {})[:Theo_Namebox_Add_On] = true
- # =============================================================================
- # CHANGE LOGS:
- # -----------------------------------------------------------------------------
- # 2014.12.31 - Finished script
- # =============================================================================
- =begin
- Perkenalan :
- Cuma Add-On tambahan buat yang males ngeset key. Sekarang jadi lebih flexibel
- dan support escape character juga.
- Cara penggunaan :
- \RNB[text] >> untuk nampilin namebox disisi kanan
- \LNB[text] >> untuk nampilin namebox disisi kiri
- Contoh:
- \RNB[\C[1]Kadafi] >> Nanti text didalem box berubah warnane~
- Terms of Use :
- Credit pemilik asline
- =end
- # =============================================================================
- #
- # =============================================================================
- if $imported[:Theo_Namebox]
- class Window_Message < Window_Base
- alias new_convert_namebox_char convert_namebox_char
- def convert_namebox_char(text)
- text.gsub!(/\eLNB\[\s*(.+)]/i) do
- name = $1.to_s
- @namebox.set_text(name, false, false)
- ""
- end
- text.gsub!(/\eRNB\[\s*(.+)]/i) do
- name = $1.to_s
- @namebox.set_text(name, true, false)
- ""
- end
- new_convert_namebox_char(text)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement