How to use an item to trigger an event

IndigoSwift

Warper
Member
Joined
Jul 7, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV

I want to make it so if you use a fishing rod, it will 'fish up' the hanging shield and be put into the character's inventory, and if possible figure out how to put animation on it! I'm new to MV and google isn't helping me out
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,949
Reaction score
13,585
First Language
English
Primarily Uses
RMMV
How will you "use" the fishing rod? What is in the event?

You could either attach a common event to your fishing rod item, so it can be used from the menu. In the common event, you will use Control Variables to get the current map, player's X and Y coordinates and direction. Then you would check all of those to make sure the player is where they should be, and if all are correct, add the shield to inventory and remove from the map.

Or you could make your event use Select Key Item and make the fishing rod a key item. That would be less hassle than all the variable checks, but it would make it more obvious that the fishing rod is meant to be used here, especially if you don't have many items tagged as key items.

To animate the shield, you would need to remove it from the map and put it in an event instead. You'd have to make 4 frames, each with the shield in a different position and the rope a bit shorter. Take a look at the character sprites for the doors - see how each one is a little more open than the last (going down, not across)? You'd have to do it like that. Then to animate the shield being pulled up, make the event go through the same movement route as the doors in the quick event - turn left, wait 2 frames, turn right, wait 2 frames, turn up, wait 2 frames, turn on a switch which makes the event go to a new page without a sprite.
 

IndigoSwift

Warper
Member
Joined
Jul 7, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
Ahh I see, your first suggestion might be the better choice. Could you go into more detail to how I can use a control variable, etc etc? I'm so sorry I'm still learning all of this^^'
 

ATT_Turan

Veteran
Veteran
Joined
Jul 2, 2014
Messages
89
Reaction score
39
First Language
English
Ahh I see, your first suggestion might be the better choice. Could you go into more detail to how I can use a control variable, etc etc? I'm so sorry I'm still learning all of this^^'
If you look up some tutorials, (e.g. Google "RPG Maker MV event tutorial) you'll find a lot of written posts and YouTube videos that will give you helpful information. Using RPG Maker is going to require you to do quite a bit of learning and work, so it's good to learn how to find the information you need.

As far as setting variables to the player's map coordinates, again you'll find preexisting posts if you look for "RPG Maker MV get player position" (that auto-filled in Google for me).
 

IndigoSwift

Warper
Member
Joined
Jul 7, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
If you look up some tutorials, (e.g. Google "RPG Maker MV event tutorial) you'll find a lot of written posts and YouTube videos that will give you helpful information. Using RPG Maker is going to require you to do quite a bit of learning and work, so it's good to learn how to find the information you need.
Ah yea I figured, though I did many searches and just came up dry, but I figured to come to the forums for a last resort.
 

ATT_Turan

Veteran
Veteran
Joined
Jul 2, 2014
Messages
89
Reaction score
39
First Language
English
Ah yea I figured, though I did many searches and just came up dry, but I figured to come to the forums for a last resort.
I wasn't criticizing you for asking your original question! Just suggesting that once you've gotten an answer, you can find information on how to implement that if you don't already know.
 

Sopo201

Villager
Member
Joined
Jul 5, 2013
Messages
20
Reaction score
5
First Language
English
Primarily Uses
RMVXA
In the common event, you'd use the "Control Variables" command, which will bring up a new window. To make a new variable and set it to something (in my example, we'll set it to the player's current X position), start by clicking the box that says "0001". You can then choose any slot you'd like that variable to be stored in, and give it a name. For something like this, I would just name it "PlayerMapX".

After you do that, make sure the operation is "Set". Finally, the operand will be Game Data > Character > Player's Map X.

This will make it so that whenever the common event is ran, the player's current X position will be stored in that variable. If you do the same thing for their Y value, you could then use those two variables in a conditional branch which checks to make sure the player is in the right spot.

Obviously, this won't fully get you your fishing animation yet- this was just an example of how I would get the player's coordinates.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I just like this website:
lol
I streamed Moonfall on 9/25/20
and have started a page to showcase my vids/stream :kaoluv:

Please subscribe and follow, it's free, it's quick and one sub means so much to me, it would really make my day~ :wub

And now to face my worst enemy... adding color :kaocry:
Power has been restored FINALLY to our home in Lake Charles. Hurricane Laura tried to wreck our lives and disrupt my work on the commercial project i have going with Cloud 9 but the key word is TRIED!!! Slowly moving from the shelter to home over the next week or so. I WILL NOT QUIT!
I am happy because the RPG Maker MZ character comes with extra bust and full body art, but I am disappointed because the quality of the character's PIxel art has decreased.
Only My Opinion that Pixel art MV is better.

Forum statistics

Threads
103,231
Messages
998,217
Members
134,721
Latest member
isaton
Top