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.
[VXA] TheoAllen's Face Graphics on Save Menu

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 63
オ・マイ・ゴッド ・㉨・
<TheoAllen's Face Graphics on Save Menu>
Version: <1.0>
Author: <TheoAllen>
Translator: <AbsoluteIce>
Date: <July>, <20>, <2013>

Version History


  • <Version 1.0b> 06.06.2013 - Public release by TheoAllen in Indonesian.
  • <Version 1.0b> 20.07.2013 - English release by AbsoluteIce.

Planned Future Versions

  • For now, none, unless TheoAllen updates this script.

Description


This script gives the ability to see faces on the save menu

Features

  • Faces on the save menu

Screenshots



Instructions

Put this script below materials, and above main in the script section.

Script


Code: [Select]
# =============================================================================
# TheoAllen - Face Graphics on Save Menu
# Version : 1.1
# Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
# (This script is translated by AbsoluteIce)
# =============================================================================
($imported ||= {})[:Theo_SaveMenuFace] = true
# =============================================================================
# CHANGE LOGS:
# -----------------------------------------------------------------------------
# 2013.06.03 - Include map name as save header
# 2013.06.02 - Started and finished script
# =============================================================================
=begin

  Introduction :
  This script gives the ability to see faces on the save menu
 
  How to use :
  Put below material and above main
 
  Terms of use :
  This script has a special condition, Feel free to use it.
 
  Note :
  This script lets you handle the look of the save menu. If you use another
  persons script that changes the way/design of the save menu, its highly
  possible that this script is compatible with it.

=end
# =============================================================================
Include_Mapname = true # Set true / false to not include mapname
# =============================================================================
module DataManager

  def self.make_save_header
    header = {}
    header[:characters] = $game_party.characters_for_savefile
    header[:playtime_s] = $game_system.playtime_s
    header[:faces] = $game_party.faces_for_savefile
    header[:map_name] = $game_map.display_name
    header
  end
 
end

class Window_SaveFile
 
  def refresh
    contents.clear
    change_color(normal_color)
    name = Vocab::File + " #{@file_index + 1}"
    draw_text(4, 0, 200, line_height, name)
    @name_width = text_size(name).width
    #draw_party_characters(152, 58)
    draw_party_faces(80, 0)
    draw_mapname(0,0,contents.width,2)
    draw_playtime(0, contents.height - line_height, contents.width - 4, 2)
  end
 
  def draw_mapname(x,y,width,align)
    return unless Include_Mapname
    header = DataManager.load_header(@file_index)
    return unless header
    draw_text(x,y,width,line_height,header[:map_name],align)
  end

  def draw_party_faces(x, y)
    header = DataManager.load_header(@file_index)
    return unless header && header[:faces]
    puts header[:faces].size
    header[:faces].each_with_index do |data, i|
      draw_face(data[0], data[1], x + i * 96, y)
    end
  end
 
end

class Game_Party < Game_Unit
 
  def faces_for_savefile
    battle_members.collect do |actor|
      [actor.face_name,actor.face_index]
    end
  end
 
end
    Credits


    • <TheoAllen>
    • <AbsoluteIce>

    Thanks

    • I'd like to thank TheoAllen for giving me permission to translate this script. I'll be sure to translate more if I have the time. :)

    Support


    Either post on this thread, or pm TheoAllen on RMRK.

    Known Compatibility Issues

    None that I know of as of now.

    Demo

    Unavaliable yet as of now.

    Author's Notes


    I've been pumping out quite alot of Theo's scripts this month. I wonder how I got so hardworking  :V
    Nevertheless, enjoy the scripts!

    Questions

    None at the moment.



    Terms of Use


    Credit the creator, TheoAllen. Do not claim as your own. If you want to use for a commercial project, share the profit with him. And don't forget to give him a free copy of the game.
      [/list]
      « Last Edit: July 20, 2013, 03:47:28 AM by AbsoluteIce »
      なんでやねん

      *
      &&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      Rep:
      Level 96
      &&&&&&&&&&&&&&&&&&&&&&&&&&&
      GIAW 14: 2nd Place (Hard Mode)2013 Biggest Drama Whore2013 Zero to HeroParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
      Slight error, you forgot a "=begin" on line 88, so it gives an undefined error.

      Code: [Select]
        Introduction :
        This script will display a polygon parameter in the status menu
       
        How to use :
        Put this script below material and above main.
       
        Terms of use :
        This script has a special condition, Feel free to use it.

        Note :
        This script will only change the look of the RTP status menu.
       
      =end
      &&&&&&&&&&&&&&&&

      ****
      Rep:
      Level 63
      オ・マイ・ゴッド ・㉨・
      @LordStark
      Oops, my mistake. I mistakenly copied the polygon script along together with the face graphic script.
      My bad, people. I'll fix that right away  :V
      « Last Edit: July 20, 2013, 03:48:22 AM by AbsoluteIce »
      なんでやねん