XP 스크립트

이동 및 탈것
2009.02.22 18:08

마나 소비 텔레포트

조회 수 1168 추천 수 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 7314
861 기타 Tax Script 1.2 by The Darklord@rmxp.org 2 file 백호 2009.02.22 1149
860 오디오 음악감상 스크립트 3 file 백호 2009.02.21 1153
859 전투 FF10 전투 대미지 공식 by hydro@rmxp.org 백호 2009.02.22 1153
858 기타 메세지창의 위치 변동 자동화 file 백호 2009.02.21 1154
857 스킬 스킬 도감 1 백호 2009.02.21 1154
856 기타 스테이터스 표시 플러스 1.00ver 백호 2009.02.22 1155
855 이동 및 탈것 [통합] 텔레포트 통합 수정편 1 백호 2009.02.22 1155
854 기타 Drago - Custom Resolution by LiTTleDRAgo Alkaid 2014.02.13 1155
853 기타 맵처리를 가볍게 1 백호 2009.02.21 1160
852 오디오 음악 재생 스크립트 3 file 백호 2009.02.21 1162
851 기타 레벨9999스크립트 4 백호 2009.02.21 1165
850 기타 전투 승리 BGM+페이드아웃 스크립트 1 file 백호 2009.02.21 1166
849 아이템 아이템 사용 클래스 한정 스크립트! 2 백호 2009.02.22 1166
848 이동 및 탈것 KGC_Teleport file 백호 2009.02.22 1167
» 이동 및 탈것 마나 소비 텔레포트 2 백호 2009.02.22 1168
846 기타 Encounter Control by SephirothSpawn (SDK호환) 4 file 백호 2009.02.22 1168
845 이동 및 탈것 World Map & Teleporter by SephirothSpawn 2 file 백호 2009.02.22 1172
844 맵/타일 Map Event Large Make 2 백호 2009.02.22 1172
843 전투 데미지마루 백호 2009.02.21 1176
842 키입력 Key Simulator by Fantasist 4 습작 2013.05.01 1176
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52