RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[Script] Shovel 1.0 dig to find treasures!

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 83
Greeting

This script allow you dig on fertile ground if you have a shovel equiped

Features

- You can dig only on fertile ground fertilized by the script
- You can choose between 3 different types of treasures, Items, Weapons and armor or all of them at the same time
- Dig if you have a Shovel


Instructions

Please download demo for details


Credits

By Falcao


Demo

http://www.4shared.com/file/maVwE64J/Pala_10_VX_Eng.html


Screens

Tiles where the player can DIG




Action


**
Rep:
Level 82
Seems pretty cool, testing it out now.

But is there any way to change the tile where the player can Dig?
And if so, what line(s)?

**
Rep:
Level 83
Seems pretty cool, testing it out now.

But is there any way to change the tile where the player can Dig?
And if so, what line(s)?

Yes, you can change the tiles where the player can dig but you have to know how the autotiles system work.

If you wanna try find a method in Game_Player class called 'cavable_area?' there you can see how the fertile autotile is defined.

I can change the autotile for you just let me know the autotile you want

***
Rep:
Level 82
aka DigiDeity
Wow nice work!
It remembers me at my HarvestMoon-Scripts. ^^

If I may give you a "improvement proposal" use Areas of the Maps. It helps a lot and you don't have to restrict on the tilesets.

Deity
Greetings
DigiDeity

├Work┤
├Contact┤


**
Rep: +0/-0Level 71
RMRK Junior
I know you said find this:
def cavable_area?
tag_x = self.x + front_tile[0]
tag_y = self.y + front_tile[1]
for i in 3344..3390
return true if i == $game_map.data[tag_x, tag_y, 0]
end
return false
end

in the script if you wanted to change the fertile tiles, but you give absolutely no instruction on HOW to do that. Could you please explain? And if this identifies the fertile ground, is there a way to make more than three tiles fertile ground?

***
Rep:
Level 81
Monster Hunter
I know you said find this:
def cavable_area?
tag_x = self.x + front_tile[0]
tag_y = self.y + front_tile[1]
for i in 3344..3390
return true if i == $game_map.data[tag_x, tag_y, 0]
end
return false
end

in the script if you wanted to change the fertile tiles, but you give absolutely no instruction on HOW to do that. Could you please explain? And if this identifies the fertile ground, is there a way to make more than three tiles fertile ground?

i believe this line handles it : for i in 3344..3390
3344..3390 means, from 3344 to 3390, which are the tile IDs if i'm not mistaken ^^

maybe this will work (i'm a scripting noob so might not work :p)
def cavable_area?
tag_x = self.x + front_tile[0]
tag_y = self.y + front_tile[1]
for i in 3344..3390
return true if i == $game_map.data[tag_x, tag_y, 0]
end
for i in 3344..3390   --------------------------------------------------------> put your IDs here ^^
return true if i == $game_map.data[tag_x, tag_y, 0]
end
return false
end