RPGXP rpgxp 스크립트 에러 질문
2008.02.16 17:35
#==============================================================================
# ■ Window_EquipLeft
#------------------------------------------------------------------------------
# 장비 화면에서, 액터의 파라미터 변화를 표시하는 윈도우입니다.
#==============================================================================
class Window_EquipLeft < Window_Base
#--------------------------------------------------------------------------
# ● 오브젝트 초기화
# actor : 액터
#--------------------------------------------------------------------------
def initialize(actor)
super(0, 64, 272, 192)
self.contents = Bitmap.new(width - 32, height - 32)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# ● 리프레쉬
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_name(@actor, 4, 0)
draw_actor_level(@actor, 4, 28)
draw_actor_parameter(@actor, 4, 56, 0)
draw_actor_parameter(@actor, 4, 80, 1)
draw_actor_parameter(@actor, 4, 104, 2)
draw_actor_parameter(@actor, 4, 128, 3)
draw_actor_parameter(@actor, 4, 152, 4)
draw_actor_parameter(@actor, 4, 176, 5)
draw_actor_parameter(@actor, 4, 200, 6)
if @new_atk != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 56, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 56, 36, 32, @new_atk.to_s, 2)
end
if @new_pdef != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 80, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 80, 36, 32, @new_pdef.to_s, 2)
end
if @new_mdef != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 104, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 104, 36, 32, @new_mdef.to_s, 2)
end
if @new_str != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 128, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 128, 36, 32, @new_str.to_s, 2)
if @new_dex != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 152, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 152, 36, 32, @new_dex.to_s, 2)
if @new_agi != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 176, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 176, 36, 32, @new_agi.to_s, 2)
if @new_int != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 200, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 200, 36, 32, @new_int.to_s, 2)
end
end
#--------------------------------------------------------------------------
# ● 장비 변경 후의 파라미터 설정
# new_atk : 장비 변경 후의 공격력
# new_pdef : 장비 변경 후의 물리 방어
# new_mdef : 장비 변경 후의 마법 방어
#--------------------------------------------------------------------------
def set_new_parameters(new_atk, new_pdef, new_mdef, new_str, new_dex, new_agi, new_int)
if @new_atk != new_atk or @new_pdef != new_pdef or @new_mdef != new_mdef or @new_str != new_str or @new_dex != new_dex or @new_agi != new_agi or @new_int != new_int ← ↑이건 원래 한줄임
@new_atk = new_atk
@new_pdef = new_pdef
@new_mdef = new_mdef
@new_str = new_str
@new_dex = new_dex
@new_agi = new_agi
@new_int = new_int
refresh
end
end
end ← 90
일반 Window_Equipleft
에 해당하는 부분인데요.
저기 90에 해당하는 부분에서
Syntax Error 가 난다고 하네요..
스크립트 잘 아시는분들 어떻게 해야하는지 답변좀 부탁드립니다.
댓글 3
-
DJMAX
2008.02.21 06:46
-
엔젤레기온
2008.02.21 08:22
아, 근데 디제이맥스님의 스크립트를 다시 자세히 보니깐요.
if구문에서 마지막에 end가 생략된 곳이 몇군데 있네요.
제가 알기로는 if구문 마지막에 반드시 end를 해줘야 하는걸로 아는데
혹시 이건 잘못된것이 아닌지 의아해서 적어보겠습니다 ^^;|+rp2+|5095|+rp3+|qna -
DJMAX
2008.02.21 16:32
그거 고치니까 더이상 오류가 안뜨더군요!
캄사캄사!|+rp2+|5097|+rp3+|qna
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
479 | 숨겨진 선택지, 맵칩셋 연동 [1] | 아카치 | 2008.11.27 | 678 |
478 | RPGXP에서 "양손검" 스크립트가 필요합니다. | 안다미로 | 2007.01.19 | 643 |
477 | 퀘스트목록 만들기 [2] | 자크 | 2007.08.08 | 628 |
476 | RPGXP 게임을 실행하는데 화면이 ; [1] | 쪼리기 | 2007.01.31 | 625 |
475 | RPG XP 조작키 변경에 대해 가르쳐주세요 [1] | Raview | 2007.09.19 | 617 |
» | rpgxp 스크립트 에러 질문 [3] | DJMAX | 2008.02.16 | 614 |
473 | RPGXP 동영상 재생방법 | rkskekfk | 2007.04.02 | 613 |
472 | RPG XP 전투 애니메이션에 대해서 질문드립니다. [3] | 카샤 | 2007.02.12 | 596 |
471 | RPGxp 게임실행 오류 | 농쉼너구리 | 2007.02.20 | 596 |
470 | RPG XP액알 스크립트에 대한 문제인데요 [1] | 크뤼스챤 | 2006.10.10 | 595 |
469 | RPG만들기XP 스크립트 질문이요 | 네이트리버 | 2006.12.19 | 594 |
468 | RPGXP 게임오류!! [1] | RPG질문 전문가 | 2006.12.01 | 582 |
467 | RPGXP에서 사용한 캐릭칩은 순수제작했는데... [1] | chaiko | 2006.12.24 | 582 |
466 | rpgxp 스크립트에서 스프라이트 충돌 검사는 못하나요? | 창공의곰팅이 | 2006.12.07 | 581 |
465 | rpg만들기를 처음 접하는사람 입니다. | 정의로운녀석! | 2009.07.28 | 579 |
464 | XP에선 문장의표시에서 글자색이나 글자속도를.. | 오조 | 2007.07.16 | 565 |
463 | 다만들고 시작할때 지형설정까지다했는데 캐릭터가 안움직여요 | ◈ÐÆЯΚ◈찰드 | 2009.07.26 | 554 |
462 | 타이틀 화면에서 타이틀메뉴 어떻게 바꾸나요? [2] | 해햄 | 2006.12.27 | 551 |
461 | 런타임 에러가 발생했습니다. [2] | 아카치 | 2008.12.28 | 551 |
460 | 천무님글중에 게이지바요 (초고속) [1] | 이토요스케 | 2006.12.10 | 550 |
에러가 났네요.
end를 추가하면 추가한줄에서 에러가
빼면 그 전줄에서 에러가 납니다. 글에 [숫자]이게 답변인줄 알고 아무도 답변 안한줄알았는데
코멘트수였군요..|+rp2+|5094|+rp3+|qna