Latest topics
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 |
Most active topic starters
A|L|F|DGI|Wibie Sultan | ||||
Rudy pangabean | ||||
Maman anim | ||||
Adji Satya W | ||||
A|L|F|DGI|Rifki A | ||||
Daniez_Pro | ||||
Yardy Sohei Matri | ||||
AssJikom | ||||
Rock Bima | ||||
Sagay |
Dynamic Class Changer
Game Design :: Engine :: RPG Maker :: Script RPG Maker IND :: RPG VX ACE
Page 1 of 1
Dynamic Class Changer
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???
# 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
Game Design :: Engine :: RPG Maker :: Script RPG Maker IND :: RPG VX ACE
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Nov 12, 2013 8:11 am by A|L|F|DGI|Wibie Sultan
» perkenalan
Sun Oct 06, 2013 1:39 pm by A|L|F|DGI|Wibie Sultan
» Apasih Keunggulan Forum Ini
Tue Sep 10, 2013 3:54 pm by Rudy pangabean
» Perkenalan member Bima
Tue Sep 10, 2013 3:52 pm by Rudy pangabean
» Scared 1 Topic
Tue Sep 10, 2013 3:51 pm by Rudy pangabean
» Dynamic Class Changer
Thu Aug 29, 2013 8:26 pm by A|L|F|DGI|Wibie Sultan
» Cache Optimasi
Thu Aug 29, 2013 8:26 pm by A|L|F|DGI|Wibie Sultan
» Miscellaneous Options
Thu Aug 29, 2013 8:25 pm by A|L|F|DGI|Wibie Sultan
» XS battle audio
Thu Aug 29, 2013 8:22 pm by A|L|F|DGI|Wibie Sultan
» Teleport free
Thu Aug 29, 2013 8:20 pm by A|L|F|DGI|Wibie Sultan
» Interacting System
Thu Aug 29, 2013 8:15 pm by A|L|F|DGI|Wibie Sultan
» NEO MENU SYSTEM V1.04
Thu Aug 29, 2013 8:10 pm by A|L|F|DGI|Wibie Sultan
» Rules update script
Thu Aug 29, 2013 7:57 pm by A|L|F|DGI|Wibie Sultan
» VX ace (Tikus system)
Thu Aug 29, 2013 7:52 pm by A|L|F|DGI|Wibie Sultan
» Ask update script RPG maker
Tue Aug 27, 2013 9:08 pm by AssJikom