UltimaForum

Skrypty [VX] - Wybór postaci

Kable - Wto 29 Gru, 2009 20:52
Temat postu: Wybór postaci
Witam mam Dla was Skrypt na wybór postaci podczas Gry :P

AUTOR I AUTOR TŁUMACZENIA:
Autor: cr4200
Tłumaczenie: Deegi


INFORMACJE:

Obecne funkcje:
- Wybór jednego z 3 postaci
- Wyświetla HP, MP, str, def, SPI, agi, i nazwe klasy
- Naciśnij klawisz Shift w celu wyświetlenia postaci (lvl 1) umiejętności
- Nazwę można edytować po wyborze Postaci
- Mężczyzna i Kobieta w zestawie klas
- udaskonalone okno kobieta / mężczyzna w poleceniach (ikony)
- Element Klasy i stan wydajności
- Wsparcie dla kilku klas (więcej niż 3)
- Być może więcej

SCREEN




SKRYPT

Spoiler:

Kod:

WLH = 24

#=========================================================
=begin
Made by: cr4200
Tłumaczenie i Poprawki: Deegi

Stworzyłem ten skrypt dla siebie, ale pote zdecydowałem się go opublikować.
Nie jestem dobrym twórcą skryptów i więc mogą być błędy w skrypcie i sprawach kompatybilności i całość może też nie wyglądać tak estetycznie jak by mogło.
Ten skrypt powinien być użyty na początku gry, by wybrać klasę głównego bohatera.
Jak narazie możesz mieć max 3 klasy/postacie do wyboru. Sory.
To jest dopiero mój drugi skrypt stworzony przezemnie więc miej to na uwadze.

Mogę później dodać więcej funkcji jeśli będe miał ochotę.
#====Funkcje:====#
- Wybierz spośród 3 klas/postaci
- wyświetla hp, mp, str, def, spi, agi
- Naciśnij Shift by zobaczyć początkowe skille postaci(lvl 1)
- Imię zmieniasz po wyborze postaci

#====Instrukcja===#
Użyj opcji Script i wpisz "$scene = Scene_Charactermaker.new"
Najlepszym sposobem użycia tego, jest start postacią która nie ma charsetu na pustej mapie.
Potem zaznacz Trigger -> Autorun by rozpocząć event.
=end

#+++===Konfiguracja===+++#
# To są numery identyfikacyjne postaci które mogą być użyte w procesie wyboru postaci.
# Np.: $mslot1 = 5 wybiera postać nr 5 na pierwszym miejscu.

#Mężczyźni
$mslot1 = 3
$mslot2 = 6
$mslot3 = 8

#Kobiety
$fslot1 = 2
$fslot2 = 4
$fslot3 = 7

#+++===Końcowa konfiguracja===+++#
#=========================================================
# Window_Skilllist
#------------------------------------------------------------------------------
# To okno wyświetla skille dostępne dla postaci.
#=========================================================

class Window_Skilllist < Window_Selectable
def initialize(x, y, width, height, actor)
super(x, y, width, height)
@actor = actor
@column_max = 2
self.index = 0
refresh
end
# Get Skill
def skill
return @data[self.index]
end
# Refresh
def refresh
@data = []
for skill in @actor.skills
@data.push(skill)
if skill.id == @actor.last_skill_id
self.index = @data.size - 1
end
end
@item_max = @data.size
create_contents
for i in 0...@item_max
draw_item(i)
end
end
# Draw Item
def draw_item(index)
rect = item_rect(index)
self.contents.clear_rect(rect)
skill = @data[index]
if skill != nil
rect.width -= 4
draw_item_name(skill, rect.x, rect.y, true)
self.contents.draw_text(rect, @actor.calc_mp_cost(skill), 2)
end
end
# Update Help Text
def update_help
@help_window.set_text(skill == nil ? "" : skill.description)
end
end

#=========================================================
# Window_GenderChoose
#------------------------------------------------------------------------------
# This window deals with general command choices.
#=========================================================
class Window_GenderChoose < Window_Selectable
# Public Instance Variables
attr_reader :commands
def initialize(width, commands, column_max = 3, row_max = 1, spacing = 250 / commands.size / 2 + 20)
@spacingspace = (commands.size / 3)
if row_max == 0
row_max = (commands.size + column_max - 1) / column_max
end
super(544 / 2 - (544 / 8) - 50, 10, 255, row_max * WLH + 32, 30)
@commands = commands
@item_max = commands.size
@column_max = column_max
refresh
self.index = 0
end
# Refresh
def refresh
self.contents.clear
for i in 0...@item_max
draw_item(i)
end
end
#--------------------------------------------------------------------------
# * Draw Item
# index : item number
# enabled : enabled flag. When false, draw semi-transparently.
#--------------------------------------------------------------------------
def draw_item(index, enabled = true)
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(index * 250 / @item_max + 5, -5, 70, 32, @commands[index])
end
def update_cursor
if @index < 0 # No cursor
self.cursor_rect.empty
elsif @index < @item_max # Normal
self.cursor_rect.set(@index * 250 / @item_max, 0, 250 / @item_max - 25, 25)
elsif @index >= 100 # Self
self.cursor_rect.set((@index - 100) * 96, 0, 25, 25)
else # All
self.cursor_rect.set(0, 0, 25, 25)
end
end
def update
super
if cursor_movable?
last_index = @index
if Input.repeat?(Input::RIGHT)
cursor_down(Input.trigger?(Input::RIGHT))
end
if Input.repeat?(Input::LEFT)
cursor_up(Input.trigger?(Input::LEFT))
end
if @index != last_index
Sound.play_cursor
end
end
end
end

#=========================================================
# ** Window_CharacterStatus
#------------------------------------------------------------------------------
# This window displays party member status on the menu screen.
#=========================================================
class Window_CharacterStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(width, commands, column_max = 3, row_max = 1, spacing = 545 / $game_party.members.size)


super(0, 45, 545, WLH + 342)
refresh
self.active = true
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.members.size
for actor in $game_party.members
draw_actor_face(actor, actor.index * 545 / @item_max + 5, 10, 96)
x = actor.index * 545 / @item_max + 5
y = 106
draw_actor_class(actor, x, y)
draw_actor_graphic(actor, actor.index * 545 / @item_max + 130, 80)
draw_actor_hp(actor, x, y + 20)
draw_actor_mp(actor, x, y + 40)
draw_actor_parameter(actor, x, y + 60, 0)
draw_actor_parameter(actor, x, y + 80, 1)
draw_actor_parameter(actor, x, y + 100, 2)
draw_actor_parameter(actor, x, y + 120, 3)
end
end
#--------------------------------------------------------------------------
# * Update cursor
#--------------------------------------------------------------------------
def update_cursor
if @index < 0 # No cursor
self.cursor_rect.empty
elsif @index < @item_max # Normal
self.cursor_rect.set(@index * 545 / @item_max + 0, 0, 545 / @item_max - 30, 337)
elsif @index >= 100 # Self
self.cursor_rect.set((@index - 100) * 96, 0, 25, 25)
else # All
self.cursor_rect.set(0, 0, 25, 25)
end
end
def update
super
if cursor_movable?
last_index = @index
if Input.repeat?(Input::RIGHT)
cursor_down(Input.trigger?(Input::RIGHT))
end
if Input.repeat?(Input::LEFT)
cursor_up(Input.trigger?(Input::LEFT))
end
if @index != last_index
Sound.play_cursor
end
end
update_cursor
call_update_help
end
def update_help
@help_window.set_text("Pick a starting class (Press SHIFT to view skills)", 1)
end
def draw_actor_parameter(actor, x, y, type)
case type
when 0
parameter_name = Vocab::atk
parameter_value = actor.atk
when 1
parameter_name = Vocab::def
parameter_value = actor.def
when 2
parameter_name = Vocab::spi
parameter_value = actor.spi
when 3
parameter_name = Vocab::agi
parameter_value = actor.agi
end
self.contents.font.color = system_color
self.contents.draw_text(x, y, 120, WLH, parameter_name)
self.contents.font.color = normal_color
self.contents.draw_text(x + 100, y, 36, WLH, parameter_value, 2)
end
end




#----------------------------
#Gender Choose Scene
#----------------------------
class Scene_Charactermaker < Scene_Base
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_menu_background
create_command_window
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
@command_window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
@command_window.update
if @command_window.active
update_command_selection
end
end
#Create Command Window
def create_command_window
s1 = 'Male'
s2 = 'Female'
@command_window = Window_GenderChoose.new (160, [s1, s2])
@command_window.index = @menu_index
$menu_index = @menu_index
end
#Update Command Window
def update_command_selection
if Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0 # Male
$genderfemale = false
$scene = Scene_ClassChoose.new
when 1 #Female
$genderfemale = true
$scene = Scene_ClassChoose.new
end
end
end
end
#---------------------------
#Choose and view class scene
#---------------------------
class Scene_ClassChoose < Scene_Base
#--------------------------------
#Initialize, Start, and Terminate
#--------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
if $genderfemale != true
$slot1 = $mslot1
$slot2 = $mslot2
$slot3 = $mslot3
$game_party.add_actor($mslot1)
$game_party.add_actor($mslot2)
$game_party.add_actor($mslot3)
elsif $genderfemale = true
$slot1 = $fslot1
$slot2 = $fslot2
$slot3 = $fslot3
$game_party.add_actor($fslot1)
$game_party.add_actor($fslot2)
$game_party.add_actor($fslot3)
end
$startchara = $game_party.members[0].id
$game_party.remove_actor($startchara)
end
def start
super
create_command_window
@help_window = Window_Help.new
@help_window.viewport = @viewport
@command_window.help_window = @help_window
@input_window = Window_NameInput.new
@input_window.active = false
@input_window.visible = false

end
def terminate
super
@command_window.dispose
@input_window.dispose
if @edit_window != nil
@edit_window.dispose
end
@help_window.dispose
end
def update
super
$menu_indexy = @menu_index
if @input_window.active
update_nameinput
elsif @command_window.active
@command_window.update
update_command_selection
elsif @skill_window.active
updateskills
@skill_window.update
end
@help_window.update
end
def updateskills
if Input.trigger?(Input::B)
Sound.play_cancel
@skill_window.active = false
@skill_window.visible = false
@command_window.active = true
end
end
def update_nameinput
if $edit_window_active != true
@edit_window = Window_NameEdit.new(@actor, 9)
$edit_window_active = true
end
update_menu_background
@edit_window.update
@input_window.update
if Input.repeat?(Input::B)
if @edit_window.index > 0
Sound.play_cancel
@edit_window.back
end
elsif Input.trigger?(Input::C)
if @input_window.is_decision
if @edit_window.name == ""
@edit_window.restore_default
if @edit_window.name == ""
Sound.play_buzzer
else
Sound.play_decision
end
else
Sound.play_decision
@actor.name = @edit_window.name
$edit_window_active = false
$scene = Scene_Map.new
end
elsif @input_window.character != ""
if @edit_window.index == @edit_window.max_char
Sound.play_buzzer
else
Sound.play_decision
@edit_window.add(@input_window.character)
end
end
end
end
#------------
#create_items
#------------
def create_command_window
s1 = 'Apprentice'
s2 = 'Foot Soldier'
s3 = 'Pickpocket'
@command_window = Window_CharacterStatus.new(160, [s2, s1 ,s3])
@command_window.index = @menu_index
@commandthing = @menu_index
end
def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot1)
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot2)
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot3)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot1)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot2)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot3)
$game_party.add_actor($startchara)
if $genderfemale != true
$scene = Scene_Charactermaker.new(0)
elsif $genderfemale = true
$scene = Scene_Charactermaker.new(1)
end
end
if Input.trigger?(Input::C)
Sound.play_decision
case @command_window.index
when 0 # Slot 1
$game_party.remove_actor($slot3)
$game_party.remove_actor($slot2)
@actor = $game_actors[$slot1]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
when 1 #Slot 2
$game_party.remove_actor($slot1)
$game_party.remove_actor($slot3)
@actor = $game_actors[$slot2]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
when 2 #Slot 3
$game_party.remove_actor($slot1)
$game_party.remove_actor($slot2)
@actor = $game_actors[$slot3]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
end
end
if Input.trigger?(Input::SHIFT)
Sound.play_decision
case @command_window.index
when 0
@actor = $game_actors[$mslot1]
@skill_window = Window_Skilllist.new((545 - 3 * (545 / 4)), @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
when 1
@actor = $game_actors[$mslot2]
@skill_window = Window_Skilllist.new(545 / 8, @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
when 2
@actor = $game_actors[$mslot3]
@skill_window = Window_Skilllist.new(0, @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
end
end
end
end


Na prośbę Ayene.

bionicl - Wto 29 Gru, 2009 21:04

Mam problem: Gdy włączam skrypt wyskakuje:


Pomocy! ;-(

Ayene - Wto 29 Gru, 2009 21:51

Skrypt wywołaj za pomocą:
Kod:
$scene = Scene_Charactermaker.new

bionicl - Wto 29 Gru, 2009 22:48

Działa! dzięki!
Jeszcze jedno pytanie: jak zrobić, aby były tylko dziewczyny?

Ayene - Wto 29 Gru, 2009 23:02

Po wywołaniu skryptu masz do wybory 'Male' i 'Female', gdzie 'Male' to mężczyźni, a 'Female' to kobiety.
bionicl - Sro 30 Gru, 2009 00:17

Coś się nie zrozumieliśmy:
chodzi mi, czy da się wyeliminować jedną grupę aby były (w moim przypadku) tylko dziewczyny?

Ayene - Sro 30 Gru, 2009 00:42

Żeby nie było wyboru male/female tylko od razu przechodziło do okna z wyborem kobiet?
bionicl - Sro 30 Gru, 2009 11:10

Dokładnie...
dawidos989 - Pią 08 Sty, 2010 19:19

jak to dodać bo ta skrypa jakaś dziwna gdzie tu jest początek
Unnamed - Pią 08 Sty, 2010 19:41

Po rozwinieciu spoilera (przycisk pokaz) skopiuj wszystko to co jest w ramce.
dawidos989 - Pią 08 Sty, 2010 20:53

a gdzie dać kod
Unnamed - Pią 08 Sty, 2010 20:58

http://www.ultimateam.pl/...der=asc&start=0
Dodaj go tak samo jak inne skrypty.

dawidos989 - Sob 09 Sty, 2010 15:28

a jak to uruchomić
Unnamed - Sob 09 Sty, 2010 15:47

Masz przeciez w tresci instrukcji:
Kod:
#====Instrukcja===#
Użyj opcji Script i wpisz "$scene = Scene_Charactermaker.new"
Najlepszym sposobem użycia tego, jest start postacią która nie ma charsetu na pustej mapie.
Potem zaznacz Trigger -> Autorun by rozpocząć event.

dawidos989 - Sob 09 Sty, 2010 16:12

jak to uruchomić
Unnamed - Sob 09 Sty, 2010 16:14

Użyj opcji Script i wpisz "$scene = Scene_Charactermaker.new
radek02 - Pią 19 Lut, 2010 18:47

a jak ja skopiowałem skrypt , zmieniłem $scene = Scene_Charactermaker.new to i pokazuje mi się takie coś . Co dalej :?:
Ayene - Pią 19 Lut, 2010 18:51

Cytat:
zmieniłem $scene = Scene_Charactermaker.new

Gdzie zmieniłeś? Wywołałeś skrypt za pomocą polecenia 'Skrypt' w edycji zdarzeń?

radek02 - Pią 19 Lut, 2010 18:54

Ayene :
możesz łatwiej ? coś tak zbytnio nierozumiem :-/ ....

Ayene - Pią 19 Lut, 2010 19:21

Kod:
$scene = Scene_Charactermaker.new

Musisz wpisać tutaj:
Spoiler:


radek02 - Sob 20 Lut, 2010 06:44

ahaaaaa ja myślałem , że w skryptach .....
Tym3k - Pon 07 Cze, 2010 18:39

A u mnie jak kliknę Male lub Female to pisze tak:

Script 'Main' line 169: ZeroDivisionError occured.

divided by 0

Ayene - Czw 10 Cze, 2010 10:27

Tym3k, widocznie nie masz nikogo w drużynie. Daj chociaż jedną postać.
CreeperCrisis - Pią 11 Cze, 2010 15:22

Ładne, zgrabne okno i świetne funkcje wybierana rasy: zamiast Male i Female można wstawić np. człowiek i troll.
Parunu - Sro 23 Cze, 2010 13:46

A mi w Male daje do wyboru mieszane płcie... I jak Female to też.
Ayene - Sro 23 Cze, 2010 21:29

Parunu, to dlatego, że masz w drużynie więcej niż jedną postać. Zostaw tylko jakiegoś 'faceta' i powinno być dobrze.
Gepardis - Nie 11 Lip, 2010 18:00

Mógłby ktoś przerobić tak żeby do wyboru były 2 postacie i tylko mężczyźni?
Agumon - Sro 14 Lip, 2010 13:22

Mam pytanie. Da się zrobić takie coś żeby było takie coś "Ogr, Człowiek, Ork, Krasnolud, Elf" Zamiast tego Mężczyźni i Kobiety???
FireBlade - Pią 06 Sie, 2010 17:15

Aby zmienić nazwy : male i female
W linijce 292 i 293 masz coś takiego :
s1 = 'Male'
s2 = 'Female'

chyba wszystko jasne ? :>

MistrzZen - Pią 06 Sie, 2010 18:46

A spróbujcie podmienić to z tymi od 31-39 linijki:

Kod:

Mężczyźni
$mslot1 = 1
$mslot2 = 3
$mslot3 = 5

#Kobiety
$fslot1 = 2
$fslot2 = 4
$fslot3 = 6

FireBlade - Pią 06 Sie, 2010 18:51

MistrzZen napisał/a:
A spróbujcie podmienić to z tymi od 31-39 linijki:

Kod:

Mężczyźni
$mslot1 = 1
$mslot2 = 3
$mslot3 = 5

#Kobiety
$fslot1 = 2
$fslot2 = 4
$fslot3 = 6


Nie wiem co tym wskórać planowałeś ale nic nie zmienia ...

Killerczyc - Pią 06 Sie, 2010 19:03

Hej, FireBlade to id bohaterów w bazie danych
Nie podawaj nr "1" bo to główny bohater i nim zaczynasz gre
więc, to jest tak jak byś go wybrała...
I jest niedostępny...
Czy coś.... :P

FireBlade - Pią 06 Sie, 2010 19:07

Wiem :P ameryki nie odkryłeś .... :kable: nieważne ... to informacja dla wszystkich że po 1 :
nie może być w grupie więcej niż 1 członek żeby działało
po 2 :
nie wolno wpisywać id głównego bohatera bo się nie pojawi

Killerczyc - Pią 06 Sie, 2010 19:46

Sorry, nie wiedzałem ale wytłumaczyłem to nowicjuszom...
sokol32 - Wto 05 Paź, 2010 12:36

Mam poroblem mianowicie po wyborze klasy nadal wyskakuje okienko z wyborami klas tak jakby chcialo mi wybrac wiecej niz 1 postac :?:
Ayene - Wto 05 Paź, 2010 20:17

A co dokładnie robisz? Może nie wyłączasz zdarzenia z poleceniem "script". Najlepiej wklej screenshota z pierwszej strony zdarzenia.
Czeliosss - Wto 05 Paź, 2010 20:29

Pewnie ustawiłeś na Autorun lub Parael Process i nie usunąłeś zdarzenia.
sokol32 - Sro 06 Paź, 2010 09:27

tak ustawilem na autorun i mam tylko wklejony ten skryp do zdarzen "$scene = Scene_Charactermaker.new'
Czeliosss - Sro 06 Paź, 2010 14:41

No to nie usuwasz zdarzenia. Zrób Earse Event. A jak to jest mapka do chodzenia i zawsze dostępna to daj Set Self Switches i dalej A is On i nowa karta jak Self A is On.
bionicl - Pią 05 Lis, 2010 17:07

Mam takie pytanie "na fakturę mojej gry":

Czy da się, aby ta postać, którą wybierasz, była drugą? Dobra dokładniej:
Czy da się zrobić tak, że gdy masz już dawno swojego 1 bohatera, a nie masz jeszcze drugiego, to ten skrypt powoduje że po wybraniu odpowiedniej postaci [ w skrypcie ], ta postać idzie jako 2... Rozumiecie?

keil12 - Wto 30 Lis, 2010 17:43

Przeczytałem u was co nieco i natrafiłem na ten skrypt.
Padały pytania czy da się zrobić aby tylko wyświetlane były dziewczyny/chłopcy.
Pobawiłem się trochę i udało mnie się rozwiązać ten problem wystarczyło usunąć parę linijek ze slotem
dziewczyn/chłopców.
Skrypt z samymi chłopcami
Spoiler:


Kod:

WLH = 24

#=========================================================
=begin
Made by: cr4200
Tłumaczenie i Poprawki: Deegi

Stworzyłem ten skrypt dla siebie, ale pote zdecydowałem się go opublikować.
Nie jestem dobrym twórcą skryptów i więc mogą być błędy w skrypcie i sprawach kompatybilności i całość może też nie wyglądać tak estetycznie jak by mogło.
Ten skrypt powinien być użyty na początku gry, by wybrać klasę głównego bohatera.
Jak narazie możesz mieć max 3 klasy/postacie do wyboru. Sory.
To jest dopiero mój drugi skrypt stworzony przezemnie więc miej to na uwadze.

Mogę później dodać więcej funkcji jeśli będe miał ochotę.
#====Funkcje:====#
- Wybierz spośród 3 klas/postaci
- wyświetla hp, mp, str, def, spi, agi
- Naciśnij Shift by zobaczyć początkowe skille postaci(lvl 1)
- Imię zmieniasz po wyborze postaci

#====Instrukcja===#
Użyj opcji Script i wpisz "$scene = Scene_Charactermaker.new"
Najlepszym sposobem użycia tego, jest start postacią która nie ma charsetu na pustej mapie.
Potem zaznacz Trigger -> Autorun by rozpocząć event.
=end

#+++===Konfiguracja===+++#
# To są numery identyfikacyjne postaci które mogą być użyte w procesie wyboru postaci.
# Np.: $mslot1 = 5 wybiera postać nr 5 na pierwszym miejscu.

#Mężczyźni
$mslot1 = 3
$mslot2 = 5
$mslot3 = 7


#+++===Końcowa konfiguracja===+++#
#=========================================================
# Window_Skilllist
#------------------------------------------------------------------------------
# To okno wyświetla skille dostępne dla postaci.
#=========================================================

class Window_Skilllist < Window_Selectable
def initialize(x, y, width, height, actor)
super(x, y, width, height)
@actor = actor
@column_max = 2
self.index = 0
refresh
end
# Get Skill
def skill
return @data[self.index]
end
# Refresh
def refresh
@data = []
for skill in @actor.skills
@data.push(skill)
if skill.id == @actor.last_skill_id
self.index = @data.size - 1
end
end
@item_max = @data.size
create_contents
for i in 0...@item_max
draw_item(i)
end
end
# Draw Item
def draw_item(index)
rect = item_rect(index)
self.contents.clear_rect(rect)
skill = @data[index]
if skill != nil
rect.width -= 4
draw_item_name(skill, rect.x, rect.y, true)
self.contents.draw_text(rect, @actor.calc_mp_cost(skill), 2)
end
end
# Update Help Text
def update_help
@help_window.set_text(skill == nil ? "" : skill.description)
end
end

#=========================================================
# Window_GenderChoose
#------------------------------------------------------------------------------
# This window deals with general command choices.
#=========================================================
class Window_GenderChoose < Window_Selectable
# Public Instance Variables
attr_reader :commands
def initialize(width, commands, column_max = 3, row_max = 1, spacing = 250 / commands.size / 2 + 20)
@spacingspace = (commands.size / 3)
if row_max == 0
row_max = (commands.size + column_max - 1) / column_max
end
super(544 / 2 - (544 / 8) - 50, 10, 255, row_max * WLH + 32, 30)
@commands = commands
@item_max = commands.size
@column_max = column_max
refresh
self.index = 0
end
# Refresh
def refresh
self.contents.clear
for i in 0...@item_max
draw_item(i)
end
end
#--------------------------------------------------------------------------
# * Draw Item
# index : item number
# enabled : enabled flag. When false, draw semi-transparently.
#--------------------------------------------------------------------------
def draw_item(index, enabled = true)
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(index * 250 / @item_max + 5, -5, 70, 32, @commands[index])
end
def update_cursor
if @index < 0 # No cursor
self.cursor_rect.empty
elsif @index < @item_max # Normal
self.cursor_rect.set(@index * 250 / @item_max, 0, 250 / @item_max - 25, 25)
elsif @index >= 100 # Self
self.cursor_rect.set((@index - 100) * 96, 0, 25, 25)
else # All
self.cursor_rect.set(0, 0, 25, 25)
end
end
def update
super
if cursor_movable?
last_index = @index
if Input.repeat?(Input::RIGHT)
cursor_down(Input.trigger?(Input::RIGHT))
end
if Input.repeat?(Input::LEFT)
cursor_up(Input.trigger?(Input::LEFT))
end
if @index != last_index
Sound.play_cursor
end
end
end
end

#=========================================================
# ** Window_CharacterStatus
#------------------------------------------------------------------------------
# This window displays party member status on the menu screen.
#=========================================================
class Window_CharacterStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(width, commands, column_max = 3, row_max = 1, spacing = 545 / $game_party.members.size)


super(0, 45, 545, WLH + 342)
refresh
self.active = true
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.members.size
for actor in $game_party.members
draw_actor_face(actor, actor.index * 545 / @item_max + 5, 10, 96)
x = actor.index * 545 / @item_max + 5
y = 106
draw_actor_class(actor, x, y)
draw_actor_graphic(actor, actor.index * 545 / @item_max + 130, 80)
draw_actor_hp(actor, x, y + 20)
draw_actor_mp(actor, x, y + 40)
draw_actor_parameter(actor, x, y + 60, 0)
draw_actor_parameter(actor, x, y + 80, 1)
draw_actor_parameter(actor, x, y + 100, 2)
draw_actor_parameter(actor, x, y + 120, 3)
end
end
#--------------------------------------------------------------------------
# * Update cursor
#--------------------------------------------------------------------------
def update_cursor
if @index < 0 # No cursor
self.cursor_rect.empty
elsif @index < @item_max # Normal
self.cursor_rect.set(@index * 545 / @item_max + 0, 0, 545 / @item_max - 30, 337)
elsif @index >= 100 # Self
self.cursor_rect.set((@index - 100) * 96, 0, 25, 25)
else # All
self.cursor_rect.set(0, 0, 25, 25)
end
end
def update
super
if cursor_movable?
last_index = @index
if Input.repeat?(Input::RIGHT)
cursor_down(Input.trigger?(Input::RIGHT))
end
if Input.repeat?(Input::LEFT)
cursor_up(Input.trigger?(Input::LEFT))
end
if @index != last_index
Sound.play_cursor
end
end
update_cursor
call_update_help
end
def update_help
@help_window.set_text("Pick a starting class (Press SHIFT to view skills)", 1)
end
def draw_actor_parameter(actor, x, y, type)
case type
when 0
parameter_name = Vocab::atk
parameter_value = actor.atk
when 1
parameter_name = Vocab::def
parameter_value = actor.def
when 2
parameter_name = Vocab::spi
parameter_value = actor.spi
when 3
parameter_name = Vocab::agi
parameter_value = actor.agi
end
self.contents.font.color = system_color
self.contents.draw_text(x, y, 120, WLH, parameter_name)
self.contents.font.color = normal_color
self.contents.draw_text(x + 100, y, 36, WLH, parameter_value, 2)
end
end




#----------------------------
#Gender Choose Scene
#----------------------------
class Scene_Charactermaker < Scene_Base
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_menu_background
create_command_window
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
@command_window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
@command_window.update
if @command_window.active
update_command_selection
end
end
#Create Command Window
def create_command_window
s1 = 'Male'
@command_window = Window_GenderChoose.new (160, [s1])
@command_window.index = @menu_index
$menu_index = @menu_index
end
#Update Command Window
def update_command_selection
if Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0 # Male
$genderfemale = false
$scene = Scene_ClassChoose.new
end
end
end
end
#---------------------------
#Choose and view class scene
#---------------------------
class Scene_ClassChoose < Scene_Base
#--------------------------------
#Initialize, Start, and Terminate
#--------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
if $genderfemale != true
$slot1 = $mslot1
$slot2 = $mslot2
$slot3 = $mslot3
$game_party.add_actor($mslot1)
$game_party.add_actor($mslot2)
$game_party.add_actor($mslot3)
elsif $genderfemale = true
$slot1 = $fslot1
$slot2 = $fslot2
$slot3 = $fslot3
$game_party.add_actor($fslot1)
$game_party.add_actor($fslot2)
$game_party.add_actor($fslot3)
end
$startchara = $game_party.members[0].id
$game_party.remove_actor($startchara)
end
def start
super
create_command_window
@help_window = Window_Help.new
@help_window.viewport = @viewport
@command_window.help_window = @help_window
@input_window = Window_NameInput.new
@input_window.active = false
@input_window.visible = false

end
def terminate
super
@command_window.dispose
@input_window.dispose
if @edit_window != nil
@edit_window.dispose
end
@help_window.dispose
end
def update
super
$menu_indexy = @menu_index
if @input_window.active
update_nameinput
elsif @command_window.active
@command_window.update
update_command_selection
elsif @skill_window.active
updateskills
@skill_window.update
end
@help_window.update
end
def updateskills
if Input.trigger?(Input::B)
Sound.play_cancel
@skill_window.active = false
@skill_window.visible = false
@command_window.active = true
end
end
def update_nameinput
if $edit_window_active != true
@edit_window = Window_NameEdit.new(@actor, 9)
$edit_window_active = true
end
update_menu_background
@edit_window.update
@input_window.update
if Input.repeat?(Input::B)
if @edit_window.index > 0
Sound.play_cancel
@edit_window.back
end
elsif Input.trigger?(Input::C)
if @input_window.is_decision
if @edit_window.name == ""
@edit_window.restore_default
if @edit_window.name == ""
Sound.play_buzzer
else
Sound.play_decision
end
else
Sound.play_decision
@actor.name = @edit_window.name
$edit_window_active = false
$scene = Scene_Map.new
end
elsif @input_window.character != ""
if @edit_window.index == @edit_window.max_char
Sound.play_buzzer
else
Sound.play_decision
@edit_window.add(@input_window.character)
end
end
end
end
#------------
#create_items
#------------
def create_command_window
s1 = 'Apprentice'
s2 = 'Foot Soldier'
s3 = 'Pickpocket'
@command_window = Window_CharacterStatus.new(160, [s2, s1 ,s3])
@command_window.index = @menu_index
@commandthing = @menu_index
end
def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot1)
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot2)
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot3)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot1)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot2)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot3)
$game_party.add_actor($startchara)
if $genderfemale != true
$scene = Scene_Charactermaker.new(0)
elsif $genderfemale = true
$scene = Scene_Charactermaker.new(1)
end
end
if Input.trigger?(Input::C)
Sound.play_decision
case @command_window.index
when 0 # Slot 1
$game_party.remove_actor($slot3)
$game_party.remove_actor($slot2)
@actor = $game_actors[$slot1]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
when 1 #Slot 2
$game_party.remove_actor($slot1)
$game_party.remove_actor($slot3)
@actor = $game_actors[$slot2]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
when 2 #Slot 3
$game_party.remove_actor($slot1)
$game_party.remove_actor($slot2)
@actor = $game_actors[$slot3]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
end
end
if Input.trigger?(Input::SHIFT)
Sound.play_decision
case @command_window.index
when 0
@actor = $game_actors[$mslot1]
@skill_window = Window_Skilllist.new((545 - 3 * (545 / 4)), @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
when 1
@actor = $game_actors[$mslot2]
@skill_window = Window_Skilllist.new(545 / 8, @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
when 2
@actor = $game_actors[$mslot3]
@skill_window = Window_Skilllist.new(0, @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
end
end
end
end



Skrypt z samymi dziewczynami
Spoiler:


Kod:

WLH = 24

#=========================================================
=begin
Made by: cr4200
Tłumaczenie i Poprawki: Deegi

Stworzyłem ten skrypt dla siebie, ale pote zdecydowałem się go opublikować.
Nie jestem dobrym twórcą skryptów i więc mogą być błędy w skrypcie i sprawach kompatybilności i całość może też nie wyglądać tak estetycznie jak by mogło.
Ten skrypt powinien być użyty na początku gry, by wybrać klasę głównego bohatera.
Jak narazie możesz mieć max 3 klasy/postacie do wyboru. Sory.
To jest dopiero mój drugi skrypt stworzony przezemnie więc miej to na uwadze.

Mogę później dodać więcej funkcji jeśli będe miał ochotę.
#====Funkcje:====#
- Wybierz spośród 3 klas/postaci
- wyświetla hp, mp, str, def, spi, agi
- Naciśnij Shift by zobaczyć początkowe skille postaci(lvl 1)
- Imię zmieniasz po wyborze postaci

#====Instrukcja===#
Użyj opcji Script i wpisz "$scene = Scene_Charactermaker.new"
Najlepszym sposobem użycia tego, jest start postacią która nie ma charsetu na pustej mapie.
Potem zaznacz Trigger -> Autorun by rozpocząć event.
=end

#+++===Konfiguracja===+++#
# To są numery identyfikacyjne postaci które mogą być użyte w procesie wyboru postaci.
# Np.: $mslot1 = 5 wybiera postać nr 5 na pierwszym miejscu.

#Kobiety
$mslot1 = 2
$mslot2 = 6
$mslot3 = 8


#+++===Końcowa konfiguracja===+++#
#=========================================================
# Window_Skilllist
#------------------------------------------------------------------------------
# To okno wyświetla skille dostępne dla postaci.
#=========================================================

class Window_Skilllist < Window_Selectable
def initialize(x, y, width, height, actor)
super(x, y, width, height)
@actor = actor
@column_max = 2
self.index = 0
refresh
end
# Get Skill
def skill
return @data[self.index]
end
# Refresh
def refresh
@data = []
for skill in @actor.skills
@data.push(skill)
if skill.id == @actor.last_skill_id
self.index = @data.size - 1
end
end
@item_max = @data.size
create_contents
for i in 0...@item_max
draw_item(i)
end
end
# Draw Item
def draw_item(index)
rect = item_rect(index)
self.contents.clear_rect(rect)
skill = @data[index]
if skill != nil
rect.width -= 4
draw_item_name(skill, rect.x, rect.y, true)
self.contents.draw_text(rect, @actor.calc_mp_cost(skill), 2)
end
end
# Update Help Text
def update_help
@help_window.set_text(skill == nil ? "" : skill.description)
end
end

#=========================================================
# Window_GenderChoose
#------------------------------------------------------------------------------
# This window deals with general command choices.
#=========================================================
class Window_GenderChoose < Window_Selectable
# Public Instance Variables
attr_reader :commands
def initialize(width, commands, column_max = 3, row_max = 1, spacing = 250 / commands.size / 2 + 20)
@spacingspace = (commands.size / 3)
if row_max == 0
row_max = (commands.size + column_max - 1) / column_max
end
super(544 / 2 - (544 / 8) - 50, 10, 255, row_max * WLH + 32, 30)
@commands = commands
@item_max = commands.size
@column_max = column_max
refresh
self.index = 0
end
# Refresh
def refresh
self.contents.clear
for i in 0...@item_max
draw_item(i)
end
end
#--------------------------------------------------------------------------
# * Draw Item
# index : item number
# enabled : enabled flag. When false, draw semi-transparently.
#--------------------------------------------------------------------------
def draw_item(index, enabled = true)
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(index * 250 / @item_max + 5, -5, 70, 32, @commands[index])
end
def update_cursor
if @index < 0 # No cursor
self.cursor_rect.empty
elsif @index < @item_max # Normal
self.cursor_rect.set(@index * 250 / @item_max, 0, 250 / @item_max - 25, 25)
elsif @index >= 100 # Self
self.cursor_rect.set((@index - 100) * 96, 0, 25, 25)
else # All
self.cursor_rect.set(0, 0, 25, 25)
end
end
def update
super
if cursor_movable?
last_index = @index
if Input.repeat?(Input::RIGHT)
cursor_down(Input.trigger?(Input::RIGHT))
end
if Input.repeat?(Input::LEFT)
cursor_up(Input.trigger?(Input::LEFT))
end
if @index != last_index
Sound.play_cursor
end
end
end
end

#=========================================================
# ** Window_CharacterStatus
#------------------------------------------------------------------------------
# This window displays party member status on the menu screen.
#=========================================================
class Window_CharacterStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(width, commands, column_max = 3, row_max = 1, spacing = 545 / $game_party.members.size)


super(0, 45, 545, WLH + 342)
refresh
self.active = true
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.members.size
for actor in $game_party.members
draw_actor_face(actor, actor.index * 545 / @item_max + 5, 10, 96)
x = actor.index * 545 / @item_max + 5
y = 106
draw_actor_class(actor, x, y)
draw_actor_graphic(actor, actor.index * 545 / @item_max + 130, 80)
draw_actor_hp(actor, x, y + 20)
draw_actor_mp(actor, x, y + 40)
draw_actor_parameter(actor, x, y + 60, 0)
draw_actor_parameter(actor, x, y + 80, 1)
draw_actor_parameter(actor, x, y + 100, 2)
draw_actor_parameter(actor, x, y + 120, 3)
end
end
#--------------------------------------------------------------------------
# * Update cursor
#--------------------------------------------------------------------------
def update_cursor
if @index < 0 # No cursor
self.cursor_rect.empty
elsif @index < @item_max # Normal
self.cursor_rect.set(@index * 545 / @item_max + 0, 0, 545 / @item_max - 30, 337)
elsif @index >= 100 # Self
self.cursor_rect.set((@index - 100) * 96, 0, 25, 25)
else # All
self.cursor_rect.set(0, 0, 25, 25)
end
end
def update
super
if cursor_movable?
last_index = @index
if Input.repeat?(Input::RIGHT)
cursor_down(Input.trigger?(Input::RIGHT))
end
if Input.repeat?(Input::LEFT)
cursor_up(Input.trigger?(Input::LEFT))
end
if @index != last_index
Sound.play_cursor
end
end
update_cursor
call_update_help
end
def update_help
@help_window.set_text("Pick a starting class (Press SHIFT to view skills)", 1)
end
def draw_actor_parameter(actor, x, y, type)
case type
when 0
parameter_name = Vocab::atk
parameter_value = actor.atk
when 1
parameter_name = Vocab::def
parameter_value = actor.def
when 2
parameter_name = Vocab::spi
parameter_value = actor.spi
when 3
parameter_name = Vocab::agi
parameter_value = actor.agi
end
self.contents.font.color = system_color
self.contents.draw_text(x, y, 120, WLH, parameter_name)
self.contents.font.color = normal_color
self.contents.draw_text(x + 100, y, 36, WLH, parameter_value, 2)
end
end




#----------------------------
#Gender Choose Scene
#----------------------------
class Scene_Charactermaker < Scene_Base
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_menu_background
create_command_window
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
@command_window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
@command_window.update
if @command_window.active
update_command_selection
end
end
#Create Command Window
def create_command_window
s1 = 'Female'
@command_window = Window_GenderChoose.new (160, [s1])
@command_window.index = @menu_index
$menu_index = @menu_index
end
#Update Command Window
def update_command_selection
if Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0 # Female
$genderfemale = false
$scene = Scene_ClassChoose.new
end
end
end
end
#---------------------------
#Choose and view class scene
#---------------------------
class Scene_ClassChoose < Scene_Base
#--------------------------------
#Initialize, Start, and Terminate
#--------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
if $genderfemale != true
$slot1 = $mslot1
$slot2 = $mslot2
$slot3 = $mslot3
$game_party.add_actor($mslot1)
$game_party.add_actor($mslot2)
$game_party.add_actor($mslot3)
elsif $genderfemale = true
$slot1 = $fslot1
$slot2 = $fslot2
$slot3 = $fslot3
$game_party.add_actor($fslot1)
$game_party.add_actor($fslot2)
$game_party.add_actor($fslot3)
end
$startchara = $game_party.members[0].id
$game_party.remove_actor($startchara)
end
def start
super
create_command_window
@help_window = Window_Help.new
@help_window.viewport = @viewport
@command_window.help_window = @help_window
@input_window = Window_NameInput.new
@input_window.active = false
@input_window.visible = false

end
def terminate
super
@command_window.dispose
@input_window.dispose
if @edit_window != nil
@edit_window.dispose
end
@help_window.dispose
end
def update
super
$menu_indexy = @menu_index
if @input_window.active
update_nameinput
elsif @command_window.active
@command_window.update
update_command_selection
elsif @skill_window.active
updateskills
@skill_window.update
end
@help_window.update
end
def updateskills
if Input.trigger?(Input::B)
Sound.play_cancel
@skill_window.active = false
@skill_window.visible = false
@command_window.active = true
end
end
def update_nameinput
if $edit_window_active != true
@edit_window = Window_NameEdit.new(@actor, 9)
$edit_window_active = true
end
update_menu_background
@edit_window.update
@input_window.update
if Input.repeat?(Input::B)
if @edit_window.index > 0
Sound.play_cancel
@edit_window.back
end
elsif Input.trigger?(Input::C)
if @input_window.is_decision
if @edit_window.name == ""
@edit_window.restore_default
if @edit_window.name == ""
Sound.play_buzzer
else
Sound.play_decision
end
else
Sound.play_decision
@actor.name = @edit_window.name
$edit_window_active = false
$scene = Scene_Map.new
end
elsif @input_window.character != ""
if @edit_window.index == @edit_window.max_char
Sound.play_buzzer
else
Sound.play_decision
@edit_window.add(@input_window.character)
end
end
end
end
#------------
#create_items
#------------
def create_command_window
s1 = 'Apprentice'
s2 = 'Foot Soldier'
s3 = 'Pickpocket'
@command_window = Window_CharacterStatus.new(160, [s2, s1 ,s3])
@command_window.index = @menu_index
@commandthing = @menu_index
end
def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot1)
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot2)
$game_party.add_actor($startchara)
$game_party.remove_actor($mslot3)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot1)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot2)
$game_party.add_actor($startchara)
$game_party.remove_actor($fslot3)
$game_party.add_actor($startchara)
if $genderfemale != true
$scene = Scene_Charactermaker.new(0)
elsif $genderfemale = true
$scene = Scene_Charactermaker.new(1)
end
end
if Input.trigger?(Input::C)
Sound.play_decision
case @command_window.index
when 0 # Slot 1
$game_party.remove_actor($slot3)
$game_party.remove_actor($slot2)
@actor = $game_actors[$slot1]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
when 1 #Slot 2
$game_party.remove_actor($slot1)
$game_party.remove_actor($slot3)
@actor = $game_actors[$slot2]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
when 2 #Slot 3
$game_party.remove_actor($slot1)
$game_party.remove_actor($slot2)
@actor = $game_actors[$slot3]
@input_window.active = true
@input_window.visible = true
@command_window.active = false
end
end
if Input.trigger?(Input::SHIFT)
Sound.play_decision
case @command_window.index
when 0
@actor = $game_actors[$mslot1]
@skill_window = Window_Skilllist.new((545 - 3 * (545 / 4)), @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
when 1
@actor = $game_actors[$mslot2]
@skill_window = Window_Skilllist.new(545 / 8, @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
when 2
@actor = $game_actors[$mslot3]
@skill_window = Window_Skilllist.new(0, @help_window.height, 545 - (545 / 4), 416 - @help_window.height, @actor)
@command_window.active = false
@skill_window.active = true
@skill_window.visible = true
end
end
end
end


Nie mówię, że będzie w 100% działać, ponieważ mam polską wersje makera.
W razie problemów piszcie. ;-)

@Edit
A tu macie dema : ;-)
Z chłopcami:
Spoiler:

Kod:
http://www.sendspace.pl/file/e59ae2b277cf258410b335d


Z dziewczynami:
Spoiler:

Kod:
http://www.sendspace.pl/file/21560e188a90701de3539d9


Christo - Sro 13 Kwi, 2011 10:50

Wrzuci ktos na nowo te demko z chłopakami??? Plis.
Aruka21 - Pon 18 Kwi, 2011 09:14

Ale czy jest możliwość aby w skrypcie z chłopcami nie było na początku wyboru "male" tylko od razu wybór klasy ?
kzk992 - Sob 29 Paź, 2011 22:45

Czemu nie można mieć drużyny ????? Jak to zrobić żeby ją mieć :?: jeśli jest taka możliwość oczywiście
Angius - Sob 29 Paź, 2011 23:59

Co? Jak to nie można mieć drużyny?
wojtelos - Pon 28 Lis, 2011 17:01

A da się zrobić ,żeby nie było wpisywania imienia??
tracersgta - Pon 28 Lis, 2011 17:13

Nie ma żadnego wpisywania imienia... Po prostu wybierasz jedną z trzech postaci...
Vrona - Pon 28 Lis, 2011 17:16

Cytat:
- Nazwę można edytować po wyborze Postaci


trejser czytaj. ^.^

XarXs - Czw 05 Kwi, 2012 14:33

Mam takie pytanie, jak zrobić, żeby po wyborze postaci nie włączało się okienko z zmianą imienia tylko od razu przechodziło się do gry :?: :?:
Ayene - Czw 05 Kwi, 2012 20:03

XarXs, może sprawdź ten skrypt? :arrow: http://www.ultimateam.pl/viewtopic.php?t=6837
tobi 145 - Sob 08 Wrz, 2012 22:36

możesz po polsku

Powered by phpBB modified by Przemo © 2003 phpBB Group