RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
+[Quick Face Border]+

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 86
Quick Face Border
Version 1.5
by Woratana
Release Date: 22/02/2008


Introduction
 This script will add the border on Face,

The border will create from window skin you choose  ;)


Features
Version 1.5
- Edited Window_Message Bug
- You can use custom image for border

Version 1.0
- Add border on face
- Choose window skin you want for face's border
- Choose the window you want to use face border


Screenshot
Version 1.5
Spoiler for:

Custom image border!

The border image I use in screenshot~
Version 1.0
Spoiler for:











Script
Place it above main.
Spoiler for:
Code: [Select]
#============================================================
# ? [VX] ? Quick Face Border ?
#------------------------------------------------------------
# ? by Woratana [woratana@hotmail.com]
# ? Thaiware RPG Maker Community
# ? Released Date: 23/02/2008
#------------------------------------------------------------
# Version 1.5
# - Edited Window_Message Bug
# - You can use custom image for border
#------------------------------------------------------------
class Window_Base < Window
  #------------------------------
  # START SETUP SCRIPT
  #---------------------------
  BORDER_MODE = 0 # Choose Border Mode (0: Use Windowskin, 1:Use Image)
  BORDER_SKIN = "Window" # Name of Window Skin for Border (Mode 0)
  BORDER_IMAGE = "borderpic" # Custom Image for Border (Mode 1)
  # Custom image must be in folder "Graphics/Pictures" and size 96 x 96 pixel
 
  BORDER_OPACITY = 255 # Face Border's Opacity (0 - 255)
 
  # (true/false)
  USE_BORDER_IN_MENU = true
  USE_BORDER_IN_MESSAGE = true
  USE_BORDER_IN_STATUS_WINDOW = true
  USE_BORDER_IN_NAME_WINDOW = true
  #------------------------------
  # END SETUP SCRIPT
  #---------------------------
  alias wor_facbor_winbas_ini initialize
  alias wor_facbor_winbas_dis dispose
  alias wor_facbor_winbas_draf draw_face
 
  def initialize(x, y, width, height)
wor_facbor_winbas_ini(x, y, width, height)
@border = Array.new
  end

  def dispose
delete_border if @border != []
wor_facbor_winbas_dis
  end
 
  def draw_face(face_name, face_index, x, y, size = 96)
if ($scene.is_a?(Scene_Menu) and USE_BORDER_IN_MENU) or ($scene.is_a?(Scene_Map) and USE_BORDER_IN_MESSAGE) or ($scene.is_a?(Scene_Status) and USE_BORDER_IN_STATUS_WINDOW) or ($scene.is_a?(Scene_Name) and USE_BORDER_IN_NAME_WINDOW)
  if BORDER_MODE == 0
@border.push Window_Border.new(self.x + x + 16,self.y + y + 16,96,96)
  elsif BORDER_MODE == 1
id = @border.size
@border[id] = Sprite.new
@border[id].bitmap = Cache.picture(BORDER_IMAGE)
@border[id].x = self.x + x + 16
@border[id].y = self.y + y + 16
@border[id].z = 500
end
end
wor_facbor_winbas_draf(face_name, face_index, x, y, size)
  end
 
  def delete_border
  for i in 0..(@border.size - 1)
if BORDER_MODE == 0 and !@border[i].nil?
  @border[i].dispose
elsif BORDER_MODE == 1 and !@border[i].nil?
  @border[i].bitmap.dispose
  @border[i].dispose
end
  end
  @border = []
  end
 
end

  $worale = {} if !$worale
  $worale["FaceBorder"] = true
 
class Window_Border < Window_Base
 
  def initialize(x,y,width,height)
super(x,y,width,height)
self.windowskin = Cache.system(BORDER_SKIN)
self.opacity = BORDER_OPACITY
self.back_opacity = 0
self.z = 500
  end
 
end

class Window_Message < Window_Selectable
  alias wor_facbot_winmsg_upd update
  def update
wor_facbot_winmsg_upd
  if @closing and @border != []
delete_border
  end
  end
end

Instruction

Setup script here:

Code: [Select]
  #------------------------------
  # START SETUP SCRIPT
  #---------------------------
  BORDER_MODE = 0 # Choose Border Mode (0: Use Windowskin, 1:Use Image)
  BORDER_SKIN = "Window" # Name of Window Skin for Border (Mode 0)
  BORDER_IMAGE = "borderpic" # Custom Image for Border (Mode 1)
  # Custom image must be in folder "Graphics/Pictures" and size 96 x 96 pixel
 
  BORDER_OPACITY = 255 # Face Border's Opacity (0 - 255)
 
  # (true/false)
  USE_BORDER_IN_MENU = true
  USE_BORDER_IN_MESSAGE = true
  USE_BORDER_IN_STATUS_WINDOW = true
  USE_BORDER_IN_NAME_WINDOW = true
  #------------------------------
  # END SETUP SCRIPT
  #---------------------------

Author's Notes
Free for use in your non-commercial work if credit included. If your project is commercial, please contact me.

Please do not redistribute this script without permission. If you want to post it on any forum, please link to this topic.
« Last Edit: February 22, 2008, 07:00:44 PM by worale »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
That looks pretty neat. Nice Idea

**
Rep:
Level 86
UPDATED to version 1.5!

- Edited Window_Message Bug
- You can use custom image for border

Screenshot:
Spoiler for:



Script is in first post :)

**
Rep: +0/-0Level 84
^ lame xbox avatar is under 9000.
Yeah it works but the only problem is if you have a choice (Yes, No thing) the face border still appears.
Lol can u fix this?
You've just been obliteraped!

Currently Working On: One Day Salesman
http://rmrk.net/index.php/topic,33234.0.html