RPGXP Script
2013.09.24 08:21

복권 스크립트

Views 1155 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
제작자 : 양키

에고;; 이거 만든다고 45분정도 걸렸내요 ㅠㅠ(공책에 쓰는시간까지..) 
맨첨엔 그냥 1<a<10 이래서 에러먹길래 그냥 and함수까지 넣어서 
1 < a and a < 10 이런 원리로 만들었어요; 
확률은 복권이라면서도 꽝이 잘 안걸리내요 -ㅅ-;; 
확률은 알아서 위의 숫자를 바꿔주시면 될거에요;;(그대로 하시면 4등 엄청 잘 당첨되죠;;) 
실행 방법 
이벤트->스크립트->bokgun = Bokgun.new 
                                    bokgun.Bokgun1 

이케 하시면 될겁니다. 자 이제 스크립트 본문으로 갑니다~!! 
-------------------------------------------------------------------------------------------------------------------------- 
#---------------------------------------------------------------------------------- 

#                                즉석 복권 스크립트 BY.스방 

#---------------------------------------------------------------------------------- 
class Bokgun 
  def Bokgun1 
    a = rand(100)+1 #1등(1/100)2등(10/100)3등(30/100)4등(40/100)꽝(50/100) 
    if a == 1 #1등 확률 
      p "축하합니다. 1등 당첨입니다. 상금 30만원입니다." 
      $game_party.gain_gold(300000) 
    end 
    if 2 < a and a < 11 #2등 확률 
      p "축하합니다. 2등 당첨입니다. 상금 10만원입니다." 
      $game_party.gain_gold(100000) 
    end 
    if 10 < a and a < 31 #3등 확률 
      p "축하합니다. 3등 당첨입니다. 상품으로 네크리스 오브 레지스트가 있겠습니다." 
      $game_party.gain_armer(88, 1) 
    end 
    if 39 < a and a < 51 
      p "축하합니다. 4등 당첨입니다. 상품으로 풀 파워 엘릭서 50개가 있겠습니다." 
      $game_party.gain_item(58, 50) 
    end 
    if 50 < a and a < 101 
      p "안타깝습니다. 꽝입니다. 다시 도전해보세요 ^^" 
    end 
  end 
end
?

  1. Mog_Battle_hud(MZ버전도 있습니다)

    Date2021.03.05 CategoryRPGMV Plugin By스트레이보우 Views2012 Votes0
    Read More
  2. 컷신 플러그인

    Date2020.10.30 CategoryRPGMV Plugin By스트레이보우 Views2694 Votes0
    Read More
  3. 업적플러그인

    Date2020.09.02 CategoryRPGMV Plugin By스트레이보우 Views2267 Votes0
    Read More
  4. 한글조합입력기(영어가능)

    Date2019.11.10 CategoryRPGXP Script By조규진1 Views1203 Votes0
    Read More
  5. 게임에서 제공해주는 노래가 아닌 외부에서 다운받고 안에 넣어쓰려면 어떻게 해야하나요?

    Date2019.07.26 CategoryRPGMV Plugin ByBigOrca Views1650 Votes0
    Read More
  6. Ghost Effect

    Date2019.01.20 CategoryRPGMV Plugin By러닝은빛 Views1324 Votes0
    Read More
  7. RPG XP Xas액알

    Date2018.10.30 CategoryRPGXP Script By심심치 Views1332 Votes0
    Read More
  8. 커스텀 숫자 입력 패드

    Date2018.10.19 CategoryRPGMV Plugin By러닝은빛 Views1399 Votes0
    Read More
  9. 9마리 이상의 몬스터 설정 | More Enemies

    Date2018.08.31 CategoryRPGMV Plugin By러닝은빛 Views1152 Votes0
    Read More
  10. 동적 맵 타일 수정 플러그인

    Date2018.07.17 CategoryRPGMV Plugin By베지테리안카카오 Views1252 Votes0
    Read More
  11. VXA에서 XBOX360 컨트롤러 사용 여부 체크

    Date2018.07.15 CategoryRPGVX Ace script By러닝은빛 Views1054 Votes0
    Read More
  12. RMMV 옵션 창에 메시지 속도 및 글자 크기 변경 기능 추가

    Date2018.07.15 CategoryRPGMV Plugin By러닝은빛 Views1799 Votes0
    Read More
  13. 한글 데미지 표시

    Date2018.07.09 CategoryRPGMV Plugin By러닝은빛 Views1618 Votes0
    Read More
  14. [ MV ] 심장[체력표시 하트] 플러그인

    Date2018.07.01 CategoryRPGMV Plugin By수성의물 Views2409 Votes0
    Read More
  15. [鳥小屋] 실적 플러그인(인게임 트로피 시스템)

    Date2017.10.31 CategoryRPGMV Plugin By이니군 Views1910 Votes0
    Read More
  16. LuD Script Package

    Date2017.08.16 CategoryRPGVX Ace script ByLuD Views1824 Votes0
    Read More
  17. [VXAce] 레이어 맵 <layer> 시스템

    Date2017.08.07 CategoryRPGVX Ace script ByLuD Views1479 Votes0
    Read More
  18. [RPG MV] 퀘스트 마커 지속 표시 플러그인

    Date2017.04.09 CategoryRPGMV Plugin Bylklslel Views1880 Votes0
    Read More
  19. Mirror Area - RPG Maker MV

    Date2017.01.03 CategoryRPGMV Plugin By러닝은빛 Views5182 Votes0
    Read More
  20. Keyboard Event - RPG Maker MV

    Date2017.01.03 CategoryRPGMV Plugin By러닝은빛 Views2457 Votes0
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15


[privacy statements] | [Terms of Use] | [Contact us] | [Sponsorship] | [Indiside History]

Copyright © 1999 - 2016 INdiSide.com/CL3D Co., Ltd. All Rights Reserved.
Owner : Chunmu(Jiseon Lee) | kernys(Wonbae Kim) | Sasinji(Byungkook Kim)