XP 스크립트

이동 및 탈것
2009.02.22 18:08

마나 소비 텔레포트

조회 수 1155 추천 수 0 댓글 2
#=================================================
# ■ 텔레포트 스크립트
#-------------------------------------------------
#   기존 대쉬 스크립트를 플레이어를
#    순간이동 시키도록 만들었습니다
#    움직이는동안 D키를 누르면 됩니다
#    수정:kcss
#=================================================

Animation = 1
Con_sp = 10

class Game_Player #클래스 지정 입니다.
alias teleport_update update
def update #업데이트
if Input.trigger?(Input::Z) #Z버튼을 눌렀을때 시작
unless $game_party.actors[0].sp < Con_sp
case @direction
when 2  # 하
if Input.press?(Input::DOWN)
$game_player.animation_id = Animation
$game_party.actors[0].sp -= Con_sp
moveto($game_player.x, $game_player.y+2)
else
moveto($game_player.x, $game_player.y)
end
when 4  # 왼쪽
if Input.press?(Input::LEFT)
$game_player.animation_id = Animation
$game_party.actors[0].sp -= Con_sp
moveto($game_player.x-2, $game_player.y)
else
moveto($game_player.x, $game_player.y)
end
when 6  # 오른쪽
if Input.press?(Input::RIGHT)
$game_player.animation_id = Animation
$game_party.actors[0].sp -= Con_sp
moveto($game_player.x+2, $game_player.y) 
else
moveto($game_player.x, $game_player.y)
end
when 8  # 상
if Input.press?(Input::UP)
$game_player.animation_id = Animation 
$game_party.actors[0].sp -= Con_sp
moveto($game_player.x, $game_player.y-2) 
else
moveto($game_player.x, $game_player.y)
end
end
end
end
teleport_update
end
end

===============================================================
움직이면서 D키를 누르면 작동이 됩니다

Con_sp = 10

이걸 수정하면 소비하는 SP가 다릅니다

Who's 백호

?

이상혁입니다.

http://elab.kr

Comment '2'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
441 전투 중복일지도 모르는 ATB 전투 11 file 백호 2009.02.22 4057
440 전투 Active Time Battle 2.57 by パラ犬 6 file 백호 2009.02.22 2371
439 전투 [신기술 체험] Tactical Battle System 9 file 백호 2009.02.22 2034
438 전투 Battle Report 1.6 by Raziel@rmxp.org 1 file 백호 2009.02.22 1672
437 전투 Prize Point System 2.0 by Dark Ruby@rmxp.org 3 file 백호 2009.02.22 1742
436 상태/속성 BattleStatus Modification 1.1 for RTAB by DerVVulfman@rmxp.org 2 file 백호 2009.02.22 1788
435 스킬 Conditional+Conbo Skills 2.0 by trickster 2 file 백호 2009.02.22 1637
434 메뉴 Trickster's Plug 'n' Play Gradient Bar 2.0 1 file 백호 2009.02.22 2051
433 이동 및 탈것 플레이어 텔레포트 시키기 1 백호 2009.02.22 1375
432 기타 Difficulty Options by SephirothSpawn 백호 2009.02.22 869
431 기타 Free Window Demo 1 file 백호 2009.02.22 1002
430 기타 Tax Script 1.2 by The Darklord@rmxp.org 2 file 백호 2009.02.22 1130
429 HUD HUD Menu 1.2 by Raziel 6 file 백호 2009.02.22 2390
» 이동 및 탈것 마나 소비 텔레포트 2 백호 2009.02.22 1155
427 이동 및 탈것 [통합] 텔레포트 통합 수정편 1 백호 2009.02.22 1143
426 이동 및 탈것 SG_Wait for Move Completion Fix by sandgolem (SDK호환) 백호 2009.02.22 860
425 미니맵 Passability Minimap by squall@rmxp.org 백호 2009.02.22 1125
424 기타 Shift Puzzles by SephirothSpawn (SDK호환) 1 file 백호 2009.02.22 1389
423 스킬 [KGC]시간차스킬 스크립트 -일종의 죽음의 선고?- 1 file 백호 2009.02.22 1666
422 이동 및 탈것 자동으로 장애물을 피해가는 스크립트 13 file 백호 2009.02.22 1929
Board Pagination Prev 1 ... 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 ... 52 Next
/ 52