자유게시판

#==================================================
# ** Stamina
# By onidsouza
# Version 1.2
# 02/26/09
#-------------------------------------------------
module OniStamina

 Initial = 100 # Initial stamina value
 
  EvolutionRate = 1.3 #Float value representing the level up evolution rate.
                      # Leave 1.0 for none
 
  InitialRecoverFrames = 15 # Recover Frames Rate
 
  RecoverEvolutionRate = 3 #Float value representing the level up recover time
                             # evolution rate. Leave 1.0 for none.
 
  ActorMember = 0# Number from 0 to 3, representing the actor in the party.

end

class Game_Actor
 
  alias onistamina_init initialize
  alias onistamina_lvlup level_up
 
  attr_reader :stamina
  attr_accessor :maxsta
  attr_reader :recover
 
  def initialize(actor_id)
    onistamina_init(actor_id)
    @stamina = OniStamina::Initial
    @maxsta = @stamina
    @recover = OniStamina::InitialRecoverFrames
  end
 
  def level_up
    @maxsta = @maxsta * OniStamina::EvolutionRate
    @recover = @recover / OniStamina::RecoverEvolutionRate
    @maxsta = @maxsta.to_i
    @recover = @recover.to_i
    onistamina_lvlup
  end
 
  def stamina_text
    (@stamina).to_s + '/' + (@maxsta).to_s
  end
 
  def lose_sta(x)
    if ((@stamina - x) >= 0)
    @stamina = @stamina - x
    else
    @stamina = 0
    end
  end
 
  def gain_sta(x)
    if ((@stamina + x) <= @maxsta)
    @stamina = @stamina + x
    end
  end
 
end

class Window_Stamina < Window_Base
 
  def initialize(x, y, wid, hei)
    super(x, y, wid, hei)
    @stamina = $game_party.members[OniStamina::ActorMember].stamina
    @maxsta = $game_party.members[OniStamina::ActorMember].stamina
    self.opacity = 0
  end
 
  def refresh
    self.contents.clear
    draw_stamina(0, 0)
  end
 
  def draw_stamina(x, y, width = 100)
    wd = width * $game_party.members[OniStamina::ActorMember].stamina / $game_party.members[OniStamina::ActorMember].maxsta
    self.contents.fill_rect(x, y, width, 10, Color.new(0, 0, 0))
    self.contents.fill_rect(x, y, wd, 10, Color.new(255, 255, 119))
    text_wid = contents.text_size($game_party.members[OniStamina::ActorMember].stamina_text).width
    self.contents.draw_text(x + 0, y + 15, text_wid, 20, $game_party.members[OniStamina::ActorMember].stamina_text)
  end
 
end

class Scene_Map
 
  alias onista_start start
  alias onista_terminate terminate
  alias onista_update update
  attr_reader :winsta
 
  def start
    onista_start
    @waiting_sta = 0
    @winsta = Window_Stamina.new(-10, 1, 150, 80)
  end
 
  def terminate
    onista_terminate
    @winsta.dispose
  end
 
  def update
    onista_update
    if $game_player.moving? and $game_player.dash?
      $game_party.members[OniStamina::ActorMember].lose_sta(1)
    end
    if $game_system.waiting_sta == $game_party.members[OniStamina::ActorMember].recover
      $game_party.members[OniStamina::ActorMember].gain_sta(1)
    end
    @winsta.refresh
  end
 
end

class Game_Player < Game_Character
 
  alias sta_dash? dash?
 
  def dash?
    return false if $game_party.members[OniStamina::ActorMember].stamina == 0
    sta_dash?
  end
 
end

class Game_System
 
  attr_reader :waiting_sta
 
  alias onista_update update
  alias onista_initialize initialize
 
  def initialize
    @waiting_sta = 0
    onista_initialize
  end
 
  def update
    @waiting_sta = @waiting_sta + 1
    @waiting_sta = 0 if @waiting_sta > $game_party.members[OniStamina::ActorMember].recover
    onista_update
  end
end

TAG •

Who's 라이네크

?

작품연대기

XP - 아인 스토리 (만들다가 어려워서 포기)

VX - 타르타로스 -운명의검- (모든것을 쏟아부엇지만 아버님이 삭제하셔서 멸망)

2003 - 타르타로스 -운명의검- Again (다시 2003으로 도전하지만 몇달만에 컴터를다시키니 자료증발)

XP - 엘티어즈 ~고대의병기~ (현재만드는중 이건 완성한다 ... 젠장..)

 

으으 자료복구할방법은 업는겝니까 ㅠㅠ

지금만드는건 완성시킨다 젠장

Comment '2'
  • profile
    시옷전사 2009.09.29 19:11
    질문을 좀 자세히 해주셧으면 하는 소박한 소망이 있습니다.
  • ?
    TOFUMAN 2009.09.30 00:29

    윈도우를 뜨게 만들지 않는 방법 말씀 하시는 거죠? 그럴거면 간단하게 draw_stamina 펑션 부분을 지워주면 되구요. 그 펑션을 이용하는 (그냥 간단하게 말해 ctrl + f로 draw_stamina)모든 곳을 찾아내서 draw_stamina를 지워보세요. 아마 될 듯?


List of Articles
분류 제목 글쓴이 날짜 조회 수
공지 아방스 게시물 · 댓글 작성 규칙 (최근 수정일 2015.11.25) 17 file 완폐남™ 2012.07.17 47400
제작 일지 열심히 제작중인 MMORPG The Caine 입니다! TheCaine 2025.06.27 61
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.26 30
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.26 25
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.25 31
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.25 19
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.24 20
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.24 11
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.23 13
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.23 19
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.22 20
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.22 12
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.21 17
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.21 14
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.20 12
잡담 ⭐신규 반놀자 PDR 신서버 환생시스템,흑월탑,봉래산,구현 신서버 뉴비 우대템지급중 신 서버로오세요⭐ 쿄카 2025.06.20 18
잡담 ✅ 찍먹하러오세요 패자+불멸+백호환령부+극진무기(기간제) 지급중 단체이주시 캐시포인트와 각종혜택 지급중! 아야더랴 2025.06.17 23
막장 안하면 안오는 걸까? 무명시절 2025.05.02 103
잡담 바람의나라 새로운서버 시아서버, 신규 반놀자 신서버 환생시스템, 같이놀아요! 지삼1 2025.04.22 94
가입 안녕하세요 政兜 2025.02.27 171
가입 가입인사 망녕 2025.02.19 68
목록
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 756 Next
/ 756