XP 스크립트

사용법은 저도 잘 몰라요^^

 

 

 

 

 

# ▼▲▼ XRXS36. 숍·변동시장 ▼▲▼
# by 앵아 재흙

#==============================================================================
# ■ Interpreter
#==============================================================================

class Interpreter
  #--------------------------------------------------------------------------
  # ◇ 아이템의 시세를 설정
  #--------------------------------------------------------------------------
  def command_item_quote(id, percent)
    $data_items[id].quotation_percent = percent
  end
  #--------------------------------------------------------------------------
  # ◇ 무기 의 시세를 설정
  #--------------------------------------------------------------------------
  def command_weapon_quote(id, percent)
    $data_weapons[id].quotation_percent = percent
  end
  #--------------------------------------------------------------------------
  # ◇ 방어구의 시세를 설정
  #--------------------------------------------------------------------------
  def command_armor_quote(id, percent)
    $data_armors[id].quotation_percent = percent
  end
end

module RPG
#==============================================================================
# ■ RPG::Item
#==============================================================================
class Item
  attr_accessor :quotation_percent
  #--------------------------------------------------------------------------
  # ● 가격
  #--------------------------------------------------------------------------
  def price
    # 초기화
    @quotation_percent = 100 if @quotation_percent.nil?
    # 값을 돌려준다
    return @price * @quotation_percent / 100
  end
end
#==============================================================================
# ■ RPG::Weapon
#==============================================================================
class Weapon
  attr_accessor :quotation_percent
  #--------------------------------------------------------------------------
  # ● 가격
  #--------------------------------------------------------------------------
  def price
    # 초기화
    @quotation_percent = 100 if @quotation_percent.nil?
    # 값을 돌려준다
    return @price * @quotation_percent / 100
  end
end
#==============================================================================
# ■ RPG::Armor
#==============================================================================
class Armor
  attr_accessor :quotation_percent
  #--------------------------------------------------------------------------
  # ● 가격
  #--------------------------------------------------------------------------
  def price
    # 초기화
    @quotation_percent = 100 if @quotation_percent.nil?
    # 값을 돌려준다
    return @price * @quotation_percent / 100
  end
end

end

 

Who's 캉쿤

?

배고파요ㅠㅜ

전 댓글을 먹고 살아요ㅠㅜ

댓글 하나만요ㅠㅜ

Comment '4'
  • ?
    겨울별 2011.12.10 11:16

    아이템의 경우 이벤트 스크립트로

    $data_items[아이템 번호].quotation_percent = 몇 %

    이렇게 설정하는거 같은데요?

    아무튼 감사합니다.

  • ?
    [아마추어] 2012.02.01 19:34

    사용법을 자신도 모른체 올리는건 좀그런데요..최소한의 신뢰를 주는게 좋다고생각하네요 ㅎ

  • ?
    게임애호가 2014.02.08 23:48
    사용법 알아내신분 댓글좀 올려주세요
  • ?
    게임애호가님 축하합니다.^^ 2014.02.08 23:48
    포인트 팡팡!에 당첨되셨습니다.
    게임애호가님은 2포인트를 보너스로 받으셨습니다.

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
101 메뉴 SG_Artifact Colors by sandgolem (SDK 호환) 1 백호 2009.02.22 1003
100 기타 Free Window Demo 1 file 백호 2009.02.22 1002
99 맵/타일 Map Loop Script 백호 2009.02.21 999
98 기타 특수효과 ElseEX 스크립트 file 백호 2009.02.21 995
97 키입력 No F1, F12 and Alt+Return (Kein F1, F12 und Alt+Eingabe) by cremno 습작 2013.04.19 995
96 기타 스크롤되는 파노라마(Autoscrolling Panorama) by RPG Advocate 백호 2009.02.22 993
95 기타 필드에서 마력을 출력합니다. 백호 2009.02.22 989
94 기타 Tetris Attack by trickster 1 file 백호 2009.02.22 986
93 그래픽 Bitmap update 2.0 by Linkin_T 1 백호 2009.02.22 985
92 메뉴 Event Spawner 1 file 백호 2009.02.22 980
91 스킬 랜덤 스킬 스크립트 2 file 백호 2009.02.21 979
90 저장 SG_Automatic Save 백호 2009.02.22 973
89 기타 ATS-Advanced Time System 1 file 백호 2009.02.21 964
88 기타 [All RGSS] File-Ex file Cheapmunk 2014.12.29 964
87 파티 Party & Class Changing script 1 file 백호 2009.02.21 962
86 키입력 Mouse Input Module v5 by Near Fantastica (SDK호환) 2 백호 2009.02.22 962
85 메뉴 1-Scene CMS 1.1 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 953
84 기타 Text Scroll by Dubealex (Release 3) 2 file 백호 2009.02.22 940
83 오디오 WinAMP 플러그인을 이용하여 RMXP에서 다른 사운드포맷 지원하기 v3 by Guillame777@rmxp.net 백호 2009.02.22 936
82 아이템 SG_Hide free item cose by sandgolem (SDK호환) 백호 2009.02.22 935
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52