Jump to content

Resource Skill Mining


Worldofjimmy

Recommended Posts

 

 

 

Here is the tiny tutorial to create a skill that works similar to RuneScape Mining.

This can be altered for other resource skills as well.

 

Date: January 20th 2019

Guide Written During Beta 5.1

 

Credits to Ainz Ooal Gown for helping me with the final piece:

Spoiler
21 hours ago, Ainz Ooal Gown said:

If your using player variables for example "Mining EXP" & "Mining Level" and want the "Mining Level" to increase when "Mining EXP" gets to a certain point you can use a condition for player variable "Mining EXP" is equal to or greater than.

 

Example:

 

Condition: Is Mining EXP => 1000

Then Mining Level = 1

Else

Condition: Is Mining EXP => 2000

Then Mining Level = 2

Else

Condition: Is Mining EXP => 3000

Then Mining Level = 3

 

And so on...

 

Hope this helps. :)

 

 

Add two Player variables

- Mining (Keep tracks of experience)

- Mining (Keep tracks of mining level)

-Take a note of the Mining Text Id: \pv 4 we will use this later

-Mining Level Text Id: \pv 5.

Spoiler

d6c530825bea231c010dd2ff8d982eac.png

 

Next create 2 Common Events

- Mining Experience (Will add experience whenever a player successfully mines)

- Mining Level (Will level up when Mining Experience reaches a certain level)

Spoiler

627ba723f68396cc5379b1aa7138ba80.png

 

Next Edit the event Mining Experience

- Set Player Variable Mining and add 1 as the image below

Spoiler

e4aff3e79cf9271c5974d52d6232181d.png

 

Next we have to make the Mining skill level up as we gain experience

We do that with Conditional Branches

-When Player Variable Mining is equal to 5 amount of experience

-We set Player Variable Mining Level to 1

-If Player Variable Mining is equal to 6 we then set Player Variable Mining Level to 2.

Spoiler

2b2495c1734945e2399a5a9a0872cc94.png

 

Next we have to connect the Mining to a resource

In Resource Editor add the Common Event Mining Experience.

Now we gain experience for mining.

Spoiler

b2db25df837cd8a2c0d9d3c1b277d026.png

 

 

Next we can add a Mining Level requirement for Mining better ores.

This time we Edit the Harvesting Requirements.

We add a condition that the Player Variable Mining Level has to be greater or equal to Mining Level 2.

Spoiler

5e3c595b5c67f394f217f494f2d0f244.png

 

 

To display the Experience and Mining Level in game we can do this with events

Remember the Text Id we took note of in the beginning.

Create a new event on the ground and add Show Text with this inside:

"\pn mining exp: \pv{4}

\pn mining level: \pv{5}"

Spoiler

5c366ca0997c7e37bbaa155f68d29772.png

 

When the player interacts with the event the result will show the following

22c444914eafc056440cc345df9a1000.png

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...