Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [VXA] Mining
Victimize
post Jul 26 2012, 02:33 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 8
Type: Event Designer
RM Skill: Beginner




I found a mining script that worked with VX but it was really buggy and would mess up a lot so I decided to make it better.

Main Credits goto fenicearcana for the main script
Sub-Credits goto myself for editing the script and making it work properly

If you do not wish your pickaxe to break, skip Event page 2

Event Page 1

Priority: Same As Characters
Trigger: Action Button

Contents
CODE
@> Conditional Branch: [Pickaxe] in inventory
      @>Control Variables: [0001:Mining Exp] += 1
      @>Conditional Branch: Variable [0001:Mining Exp] >= 25
            @>Control Variables: [0002:Mining Level] += 1
            @>Text: -, -, Dark, Bottom
                        :Mining Level: \v[0002]
            @>Control Variables: [0001:Mining Exp] = 0
            @>
            Else
            @>
            Branch End
      @>Control Variables: [0003:Mining Rock] = Random No. (0...20)
      @>Control Variables: [0003:Mining Rock] += Variable [0002:Mining Level]
      @>Set Move Route: Player (Wait)
                                    : $>Turn 90 Right
                                    : $>Turn 90 Left
                                    : $>SE: 'Parry', 80, 150
                                    : $>Turn 90 Right
                                    : $>Turn 90 Left
                                    : $>SE: 'Parry', 80, 150
      @>Control Self Switch: A =ON
      @>
      Else
      @>Text: -, -, Dark, Bottom
      :           : You need a pickaxe.
      @>
      Branch End
@>

Event Page 2

Variable: 0003:Mining Rock is 1 or above
Self Switch A is ON
Priority: Same as Characters
Trigger: Parallel Process

Contents
CODE
@>Wait: 60 frame(s)
@>Play SE: 'Break', 80, 135
@>Text: -, -, Dark, Bottom
            : Your pickaxe broke.
@>Change Items: [Pickaxe], -1
@>Control Variables: [003:Mining Rock] = 0
@>Control Self Switch: A =OFF
@> Exit Event Processing

Event Page 3

Variable 0003:Mining Rock is 9 or above
Self Switch A is ON
Priority: Below or Same as Characters
Trigger: Parallel Process

Contents
CODE
@>Text: -, -, Dark, Bottom
            : All that was mined were pebbles...
@>Control Variables: [0003:Mining Rock] = 0
@>Control Self Switch: B =ON


Event Page 4

Variable: 0003:Mining Rock is 13 or above
Self Switch A is ON
Priority: Below or Same as Characters
Trigger: Parallel Process

Contents
CODE
@>Control Variables: [0004:Ore Obtained] = Random No. (1...2) //This can be random or not. Your Choice
@>Text: -, -, Dark, Bottom
            : Obtained \v[0004] ENTER-ITEM-NAME
@>Change Items: [ENTER-ITEM-NAME], + Variable [0004:Ore Obtained]
@>Control Variables: [0003:Mining Rock] = 0
@>Control Variables: [0004:Ore Obtained] = 0
@> Control Self Switch: B =ON

Event Page 5

Self Switch B is ON
Priority: Below or Same as Characters
Trigger: Parallel Process

Contents
// You can do this 2 ways, 1. Have it like how I'm about to show you which enables 10second reset for the ore
//or you can edit this part and make it so it doesn't reset
CODE
@>Wait: 600 frame(s)
@> Control Self Switch: A =OFF
@> Control Self Switch: B =OFF
@> Exit Event Processing


I also have an edit which has Iron ore needing Level 5 mining while Copper only needs Level 0


I will be putting up a demo soon
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Victimize   [VXA] Mining   Jul 26 2012, 02:33 AM
- - amerk   Overall, this looks pretty decent. I'm not big...   Aug 9 2012, 09:56 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 10:31 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker