XP 스크립트

MP 가 0 이 되면 못달리게 하는겁니다. 겁내 쉽더군요. 제가 몰랐다는게 창피할 따름....

# 新(?)대쉬기능 스크립트 (달리기라고해야하나?)
# 수정자: Tenard, KIN
# 기능: 달릴때마다 HP깎기
#==============================================================================
# ■ Game_Player
#==============================================================================
        Con_sp = 2 # 달릴때 SP를 1깎는다.. SP를 몇 깎을지는 알아서..
class Game_Player
  alias xrxs25_update update
  def update
    # 이동중 , 이벤트 실행중 , 이동 루트 강제중 ,
    # 메세지 윈도우 표시중의 머지않아도 아닌 경우
    unless moving? or $game_system.map_interpreter.running? or
          @move_route_forcing or $game_temp.message_window_showing
      if Input.press?(Input::X) and $game_party.actors[0].sp >0#조건분기: D 가 눌렸을때, 그리고 sp 가 0 이상일때
        $game_party.actors[0].sp -= Con_sp
        @move_speed = 5.5#속도를 변경함

      else
        @move_speed = 4#기존 플레이어의속도
      end
    end
    xrxs25_update #귀환시킴
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 7305
361 이동 및 탈것 Super Simple Vehicle System Enhanced 8.0 by DerVVulfman 1 Alkaid 2010.12.12 1982
360 저장 StupidStormy36's Custom Save System 2010-10-06(05?) Edition 1 Alkaid 2010.10.07 1272
359 저장 StupidStormy36's Custom Save System 3 Alkaid 2010.10.05 1233
358 메뉴 Stormtronics CMS 5.39b - Hybrid Edition by Blizzard 4 file Alkaid 2010.09.06 1768
357 전투 Stealing/Mugging/Scanning 6.0 Final by Trickster (SDK호환) file 백호 2009.02.22 898
356 전투 Steal Script 5.5 by trickster@rmxp.net (SDK호환) file 백호 2009.02.22 1212
355 기타 Steal Script (SDK Required) file 백호 2009.02.21 1189
354 전투 Star Ocean Battle System 3 file 백호 2009.02.22 1233
353 메뉴 Star Ocean 3 형식으로 스테이터스 화면 변경 1 file 백호 2009.02.21 1597
352 전투 srpg용 스크립트라는데 4 세죠 2010.03.26 3534
351 전투 SRPGコンバータⅡ by AD.Bank 1 습작 2013.05.13 1802
350 기타 Sphere Grid System file 백호 2009.02.21 785
349 스킬 Skills_Consume_Hp[By: Gando] - HP를 소비하는 스킬 스크립트 4 쉴더 2009.02.21 1401
348 스킬 Skill Shop by Trickster@rmxp.org file 백호 2009.02.22 1088
347 스킬 Skill Shop by SephirothSpawn file 백호 2009.02.22 829
346 스킬 Skill Requirements by SephirothSpawn (SDK호환) file 백호 2009.02.22 780
345 기타 Sized Events 0.1 by Toby@rmxp.org file 백호 2009.02.22 856
344 전투 Single/All Target Switching by RPG Advocate 백호 2009.02.22 827
343 전투 SimpleAction (출처 -RPGXP 포럼 비밀소년님의 자작품) 1 file 백호 2009.02.21 1200
342 장비 SIBruno's Advanced Equip Screen v2 file 백호 2009.02.22 1265
Board Pagination Prev 1 ... 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 ... 52 Next
/ 52