Victory kỉu mí

  • Thread starter Thread starter y.r.p
  • Ngày gửi Ngày gửi

y.r.p

Youtube Master Race
Tham gia ngày
15/8/04
Bài viết
85
Reaction score
0
Mã:
# ¦ Window_Victory 
#------------------------------------------------------------------------------ 
# ?????????????????????? 
#============================================================================== 

class Window_Victory < Window_Base 
#-------------------------------------------------------------------------- 
# ? ????????? 
#-------------------------------------------------------------------------- 
def initialize 
super(0, 0, 160, 96) 
self.contents = Bitmap.new(width - 32, height - 32) 
self.contents.font.name = $defaultfonttype # "Number of Victorys" window font 
self.contents.font.size = $defaultfontsize 
refresh 
end 
#-------------------------------------------------------------------------- 
# ? ?????? 
#-------------------------------------------------------------------------- 
def refresh 
self.contents.font.color = system_color 
self.contents.draw_text(4, 0, 120, 32, "Victorys") 
self.contents.font.color = normal_color 
self.contents.draw_text(4, 32, 120, 32, $game_variables[2].to_s, 2) 
end 
end 




Then go to Scene_Menu and find line 45-48


CODE 

REPLACE 

# ?????????? 
@steps_window = Window_Steps.new 
@steps_window.x = 0 
@steps_window.y = 320 



WITH 

# Make victory window 
@victory_window = Window_Victory.new 
@victory_window.x = 0 
@victory_window.y = 320 




Still in Scene_Menu find line 77 

CODE 


REPLACE 

@steps_window.dispose 



WITH 

@victory_window.dispose 



Then find line 88 

CODE 


REPLACE 

@steps_window.update 


WITH 

@victory_window.update
chịu khó dịch nhe ;;)
CHÚC THÀNH CÔNG :D
 
Sao ko cho vào bảng Code hả em , để thế này dễ copy nhầm lắm á
 
Mà sao tui thấy ngoài kia có 1 bài như vậy rùi nhỉ, mà bài nói về nội dung gì nhỉ sao chẳng hiểu cái gì hết mà giúp được
:hug: :hug: :hug: :hug: :hug:
:whew: :whew: :whew: :whew:
 
Ngoài kia có bài rồi nhưng ko có khách. Ai dùng thử xong cho cái screen shot đê
 
cái này thay thế cho step đè lên mỗi lần thg/ nó cho 1 vậy đóa cũng như như step thui :D :cry: hix em ko bít để trong code là j`
 
Ờ , cố gắng cứ cho Screen Shot mỗi Script thì hay hơn :p
 
Bó tay câu hỏi không hiểu câu trả lời cũng không hiểu phải cho người ta cái gì mới biết được chứ chứ cái code không thì chụi giỏi lắm phải đọc code mắta cả buổi
 
y.r.p nói:
#==============================================================================
# ¦ Window_Victory
#------------------------------------------------------------------------------
# ??????????????????????
#==============================================================================

class Window_Victory < Window_Base
#--------------------------------------------------------------------------
# ? ?????????
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $defaultfonttype # "Number of Victorys" window font
self.contents.font.size = $defaultfontsize
refresh
end
#--------------------------------------------------------------------------
# ? ??????
#--------------------------------------------------------------------------
def refresh
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Victorys")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120, 32, $game_variables[2].to_s, 2)
end
end




Then go to Scene_Menu and find line 45-48


CODE

REPLACE

# ??????????
@steps_window = Window_Steps.new
@steps_window.x = 0
@steps_window.y = 320



WITH

# Make victory window
@victory_window = Window_Victory.new
@victory_window.x = 0
@victory_window.y = 320




Still in Scene_Menu find line 77

CODE


REPLACE

@steps_window.dispose



WITH

@victory_window.dispose



Then find line 88

CODE


REPLACE

@steps_window.update


WITH

@victory_window.update

chịu khó dịch nhe ;;)
CHÚC THÀNH CÔNG :D
ặc cái code này để làm gì zậy nhìn cũng đơn giản hình như là để thông báo 1 cái gì sau khi thắng trận thì phải :D
 
Đúng roài ! mỗi lần mấy pác thg trận nó sẽ ghi vào Victorys + 1 thg 2 + 2 vậy đóa tại máy em mất hết Sciprt nên ko có Screen Shot mong mấy pác thông cảm em sẽ tìm lại mấy Script đóa và cho Screen Shot sau Kupo~
 
Back
Top