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 7317
101 키입력 No F1, F12 and Alt+Return (Kein F1, F12 und Alt+Eingabe) by cremno 습작 2013.04.19 1018
100 전투 랜덤 전투음악 by Fomar0153@rmxp.org 1 백호 2009.02.22 1018
99 기타 프레임 적용 스크립트 1 file 백호 2009.02.21 1017
98 스킬 Equipment Skills 2.0 by SephirothSpawn file 백호 2009.02.22 1016
97 기타 특수효과 ElseEX 스크립트 file 백호 2009.02.21 1012
96 기타 [All RGSS] File-Ex file Cheapmunk 2014.12.29 1011
95 기타 Free Window Demo 1 file 백호 2009.02.22 1005
94 기타 스크롤되는 파노라마(Autoscrolling Panorama) by RPG Advocate 백호 2009.02.22 1000
93 저장 SG_Automatic Save 백호 2009.02.22 997
92 기타 Tetris Attack by trickster 1 file 백호 2009.02.22 997
91 기타 필드에서 마력을 출력합니다. 백호 2009.02.22 996
90 파티 Party & Class Changing script 1 file 백호 2009.02.21 996
89 메뉴 Event Spawner 1 file 백호 2009.02.22 991
88 스킬 랜덤 스킬 스크립트 2 file 백호 2009.02.21 986
87 키입력 Mouse Input Module v5 by Near Fantastica (SDK호환) 2 백호 2009.02.22 980
86 기타 ATS-Advanced Time System 1 file 백호 2009.02.21 977
85 아이템 SG_Hide free item cose by sandgolem (SDK호환) 백호 2009.02.22 969
84 메뉴 1-Scene CMS 1.1 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 967
83 아이템 SG_Item Break by sandgolem (SDK호환) 백호 2009.02.22 965
82 오디오 WinAMP 플러그인을 이용하여 RMXP에서 다른 사운드포맷 지원하기 v3 by Guillame777@rmxp.net 백호 2009.02.22 951
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