Jump to content
Sign in to follow this  
Valjean83

Shovel Item!

Recommended Posts

hey all.  Need some help with using a shovel item.

at one point in the adventure, the hero receives a shovel.  It can be used in two areas.

Im sure I have to use a common event, but was having difficulty.

 

I do not want to use the action button to trigger the event.  I need the player to

select the shovel from their inventory in order to dig.

 

When they are standing on a correct spot and use the shovel, I want it to say

 

"You dig into the dirt...

"and found an item!"

 

In all other areas of the world, I want it to say:

 

"You dig into the dirt...

"but find nothing!"

 

thanks for reading this and hope you can help!  :)

Share this post


Link to post
Share on other sites

Yes, you will need a Common Event to run when the shovel is used. Create a conditional branch with this: 

 

$game_player.x == $game_map.events[x].x && $game_player.y == $game_map.events[x].y  

 

"You dig into the dirt...

"and found an item!"

 

Replace the x in the brackets with the Event ID. Then under else copy and past the conditional and change the ID to the second dig spot. 

 

Under that else add the text: 

"You dig into the dirt...

"but find nothing!"

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted