XP 스크립트

심심풀이로 5분동안 만들어본 스크립트

제가 자작한건 여러개있지만

다른건 중복이거나 별로 쓸모가 없는것들임;;

이게 가장쓸만한 자작스크립트..

공부용으로도 좋죠

참고로 제 게임에도 쓰일것입니다

#=================================================
# ■ 광물캐기 스크립트
#-------------------------------------------------
#  Author: kcss[imngofgh]
#  Desc: 광물을 캘수있습니다
#    http://rpgxp.zetyx.net (게임공작소)
#=================================================
class Mine
  def mine
    if id = 1 and actor = $game_party.actors[0] and actor.weapon_id == id #33번 무기를 착용해야 발동   
    mine = rand(100)+1   
      if mine == 1 # 1%확률로 드롭
      $game_player.animation_id = 1
      $game_party.gain_item(2, 1) #2번아이템, 개수
      간단메세지("다이아몬드 습득~!!")
      elsif 2 <= mine and mine <= 6 # 5%확률로 드롭
        $game_player.animation_id = 1
        $game_party.gain_item(3, 1) #3번아이템, 개수
        간단메세지("에메랄드 습득~!!")
      elsif 7 <= mine and mine <=  21# 15%확률로 드롭
        $game_player.animation_id = 1
        $game_party.gain_item(1, 1) #1번아이템, 개수
        간단메세지("철광석 습득~!!")
      end     
    end   
  end
end

#사용법#
이벤트 > 스크립트 >  mine = Mine.new
                                      mine.mine
이벤트에 애니메이션과 대기를 넣어주시면 됩니다
예제도 올려놨으니 참조하셈

그리고 심플액션에있는 간단메세지가 있어야 실행이 됩니다

Who's 백호

?

이상혁입니다.

http://elab.kr

Atachment
첨부 '1'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6203
254 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 614
253 기타 에어리어 설정 by RPG Advocate 백호 2009.02.22 710
252 기타 Boat Script 백호 2009.02.21 729
251 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 738
250 기타 Materia System file 백호 2009.02.21 749
249 기타 Real-Time Day Night 3 백호 2009.02.22 751
248 기타 killer님 요청하신 스크립트 두번째입니다. 나뚜루 2009.02.21 759
247 기타 Letter by Letter Message Window by slipknot@rmxp.org (SDK호환) 1 file 백호 2009.02.22 760
246 기타 Advanced Gold display by Dubealex 1 백호 2009.02.22 761
245 기타 Sphere Grid System file 백호 2009.02.21 765
244 기타 AMS-Advanced Message Script Edited by Dubleax 3 file 백호 2009.02.21 766
243 기타 Activation_system file 백호 2009.02.22 775
242 기타 Terrain Encounter Areas by SephirothSpawn 백호 2009.02.22 778
241 기타 Damage Reductions by SephirothSpawn (SDK호환) 1 백호 2009.02.22 779
240 기타 killer님 요청하신 스크립트입니다. 1 나뚜루 2009.02.21 784
239 기타 Selected phyolomortis.com scripts 1 file 백호 2009.02.22 789
238 기타 Hero Databass 4 file 백호 2009.02.22 797
237 기타 SG_Multiple Currencies v3 by sandgolem (SDK호환) 백호 2009.02.22 803
236 기타 SG_Call Script Fix by sandgolem (SDK호환) 백호 2009.02.22 804
235 기타 Weather Script 1.02 by ccoa 1 file 백호 2009.02.22 810
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13