Game Design
Game Design Indonesia .. Forum Untuk Bersama Membuat Game Berkreasi Bersama Bukan Untuk Menyombongkan Diri Saling Berbagi bersama Selebihnya Silahkan Login,Forum
TERIMAKASIH
Lead Forum

Join the forum, it's quick and easy

Game Design
Game Design Indonesia .. Forum Untuk Bersama Membuat Game Berkreasi Bersama Bukan Untuk Menyombongkan Diri Saling Berbagi bersama Selebihnya Silahkan Login,Forum
TERIMAKASIH
Lead Forum
Game Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Latest topics
» Perkenalan member qornanali
Dynamic Class Changer EmptyTue Nov 12, 2013 8:11 am by A|L|F|DGI|Wibie Sultan

» perkenalan
Dynamic Class Changer EmptySun Oct 06, 2013 1:39 pm by A|L|F|DGI|Wibie Sultan

» Apasih Keunggulan Forum Ini
Dynamic Class Changer EmptyTue Sep 10, 2013 3:54 pm by Rudy pangabean

» Perkenalan member Bima
Dynamic Class Changer EmptyTue Sep 10, 2013 3:52 pm by Rudy pangabean

» Scared 1 Topic
Dynamic Class Changer EmptyTue Sep 10, 2013 3:51 pm by Rudy pangabean

» Dynamic Class Changer
Dynamic Class Changer EmptyThu Aug 29, 2013 8:26 pm by A|L|F|DGI|Wibie Sultan

» Cache Optimasi
Dynamic Class Changer EmptyThu Aug 29, 2013 8:26 pm by A|L|F|DGI|Wibie Sultan

» Miscellaneous Options
Dynamic Class Changer EmptyThu Aug 29, 2013 8:25 pm by A|L|F|DGI|Wibie Sultan

» XS battle audio
Dynamic Class Changer EmptyThu Aug 29, 2013 8:22 pm by A|L|F|DGI|Wibie Sultan

» Teleport free
Dynamic Class Changer EmptyThu Aug 29, 2013 8:20 pm by A|L|F|DGI|Wibie Sultan

» Interacting System
Dynamic Class Changer EmptyThu Aug 29, 2013 8:15 pm by A|L|F|DGI|Wibie Sultan

» NEO MENU SYSTEM V1.04
Dynamic Class Changer EmptyThu Aug 29, 2013 8:10 pm by A|L|F|DGI|Wibie Sultan

» Rules update script
Dynamic Class Changer EmptyThu Aug 29, 2013 7:57 pm by A|L|F|DGI|Wibie Sultan

» VX ace (Tikus system)
Dynamic Class Changer EmptyThu Aug 29, 2013 7:52 pm by A|L|F|DGI|Wibie Sultan

» Ask update script RPG maker
Dynamic Class Changer EmptyTue Aug 27, 2013 9:08 pm by AssJikom

March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031

Calendar Calendar

Who is online?
In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests

None

Most users ever online was 22 on Wed Jun 10, 2020 10:07 pm
Top posting users this week
No user

Social bookmarking

Social bookmarking reddit      

Bookmark and share the address of Game Design on your social bookmarking website

Twitter Forum

recently twittered on Forumotion


Dynamic Class Changer

Go down

rpg maker Dynamic Class Changer

Post by A|L|F|DGI|Wibie Sultan Thu Aug 29, 2013 8:26 pm

Keterangan:
# Potongan ini memungkinkan nama kelas aktor harus diubah sesuai dengan yang
# Menggunakan kelas. Misalnya, setup default di bawah perubahan "Magician" untuk
# "Wizard" untuk laki-laki, dan "penyihir" bagi perempuan, untuk pertama empat anggota partai.
# Ini dapat digunakan dalam berbagai cara, dari berbasis gender untuk berbasis Zodiac-tanda,
# Bahkan memiliki setiap kelas diberi nama sesuatu yang unik untuk setiap karakter dalam
# Game!


kredit:
# Semua script saya atau potongan atau apa pun yang Anda ingin menyebutnya, bebas untuk digunakan dalam proyek-proyek non-komersial. Jika Anda ingin pergi
# Komersial, PM saya.
#
# -??? Tidak ada???

Code:
#===============================================================================
# Dynamic Class Changer v1.1 (RGSS3)
# by ???nOBodY???
# Last Updated: 12/12/2011
#
# Version 1.1
#
#===============================================================================
#
# Update History:
# - Version 1.1  - Actors' noteboxes implemented /w notetag support
# - Version 1.0  - Initial release; RGSS2 => RGSS3
#
#===============================================================================
#
# This snippet allows an actor's class name to be changed according to who is
# using the class. For example, the default setup below changes "Magician" to
# "Wizard" for males, and "Witch" for females, for the first four party members.
# This can be used in a variety of ways, from gender-based to Zodiac-sign-based,
# to even having every class be named something unique for every character in the
# game! Slightly modified for RMVX Ace.
#
# New to RMVXA's v1.1, is the ability to use the new editor's built-in noteboxes
# for actors:
#
#  <class name: ID New Name>
#
# Ex.
#
#  <class name: 3 Wizard>
#  <class name: 4 Priest>
#  <class name: 5 » Super Hero! «>
#
#===============================================================================
# Credits:
#
# -???nOBodY??? (aka sUBzeR_0)
# -Special Thanks to Victor Sant
#===============================================================================
#
# Overwrites:
# - Window_Base: draw_actor_class
#
#===============================================================================

$imported = {} if $imported == nil
$imported["DynamicClassChanger"] = true

module SUBZERO_MODULE
  #only include the class ids you wish to have their names changed
  INITIAL_CLASS_NAMES = {
    # actor id => [ [class id,name],[class id,name],[class id,name] ]
    0 => 0, # DO NOT REMOVE
    1 => [ [3,"Wizard"],[4,"Priest"] ],
    2 => [ [3,"Witch"],[4,"Cleric"], ],
    3 => [ [3,"Wizard"],[4,"Priest"] ],
    4 => [ [3,"Witch"],[4,"Cleric"] ],
    5 => [  ],
    6 => [  ],
    7 => [  ],
    8 => [  ],
  }

  # <class name: ID New Name>
  CLASS_NAME = /<CLASS[ _]*NAME:?[ ]*(\d+)[ ]*(.*)>/i
end

#===============================================================================
# CUSTOMIZATION END. FURTHER EDITTING IS DONE AT YOUR OWN RISK. YOU HAVE BEEN WARNED.
#===============================================================================

#===============================================================================
# Window_Base
#===============================================================================
class Window_Base < Window
  #--------------------------------------------------------------------------
    # * Draw Class
    #    actor : actor
    #    x    : draw spot x-coordinate
    #    y    : draw spot y-coordinate
    #--------------------------------------------------------------------------
    def draw_actor_class(actor, x, y, width = 112)
      change_color(normal_color)
      #sUBzeR_0 Patch
      text = actor.class.name

      i = 0
      until i == SUBZERO_MODULE::INITIAL_CLASS_NAMES[actor.id].size
        if SUBZERO_MODULE::INITIAL_CLASS_NAMES[actor.id][i].include?(actor.class.id)
          text = SUBZERO_MODULE::INITIAL_CLASS_NAMES[actor.id][i][1]
          break
        end
        i += 1
      end

      note = $data_actors[actor.id].note
      note.scan(SUBZERO_MODULE::CLASS_NAME).each do |id, name|
        text = name if actor.class_id == id.to_i
      end

      draw_text(x, y, width, line_height, text)
      #sUBzeR_0 Patch
    end
end #class Window_Base < Window
A|L|F|DGI|Wibie Sultan
A|L|F|DGI|Wibie Sultan
Administrator
Administrator

Gemini Jumlah posting : 236
Thanks/Like Post : 31
Join date : 2013-06-26
Lokasi : Indonesia,bandung
Humor : We All Work Together

https://designgameindonesia.indonesianforum.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum