Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # TheoAllen - Right Side Face
- # Version : 1.0
- # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
- # (This script documentation is written in informal indonesian language)
- # =============================================================================
- ($imported ||= {})[:Theo_RightSideFace] = true
- # =============================================================================
- # CHANGE LOGS:
- # -----------------------------------------------------------------------------
- # 2013.10.05 - Finished script
- # =============================================================================
- =begin
- Perkenalan :
- Script ini ngebikin kamu bisa ngedraw gambar face pada kanan message box
- Cara penggunaan :
- Pasang dibawah material namun dibawah main
- Gunakan tag <rface> pada message untuk penggunaannya
- Terms of use :
- Credit gw, TheoAllen. Kalo semisal u bisa ngedit2 script gw trus jadi lebih
- keren, terserah. Ane bebasin. Asal ngga ngeklaim aja. Kalo semisal mau
- dipake buat komersil, jangan lupa, gw dibagi gratisannya.
- =end
- # =============================================================================
- # Tidak ada konfigurasi
- # =============================================================================
- class Game_Message
- attr_accessor :rface
- alias theo_rface_clear clear
- def clear
- theo_rface_clear
- @rface = false
- end
- alias theo_rface_add add
- def add(text)
- @rface = !(text =~ /<rface>/i).nil?
- theo_rface_add(text.gsub(/<rface>/i){""})
- end
- end
- class Window_Message < Window_Base
- alias theo_rface_draw_face draw_face
- def draw_face(face_name, face_index, x, y, enabled = true)
- x = contents.width - 96 if $game_message.rface
- theo_rface_draw_face(face_name, face_index, x, y, enabled = true)
- end
- def new_line_x
- $game_message.face_name.empty? || $game_message.rface ? 0 : 112
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment