[VXAce] Use (key) item on event - How to?

KChasm

Villager
Member
Joined
Jul 4, 2015
Messages
21
Reaction score
1
First Language
English
Primarily Uses
I've seen this sort of thing done in RPG Maker games, I think.
  • The player character stands in front of and facing the object you're about to use the item on
  • The menu is opened manually, and the relevant item is selected, also manually
  • Things happen as a result
I've got a key item and an object I intend to use it on, but I'm afraid I don't know how to do that. I've looked up some tutorials, but a lot of them don't have quite what I'm looking for - for example, I don't want a system that automatically checks whether I have an item in my inventory when I examine the object and reacts accordingly, and I don't want to have a system where the player character checks the object, and that opens up a sort of key item menu to select the key item from.

(I later intend to find a way to reduce the items menu to just key items - no armor/equipment submenus, etc. - and I don't know how to do that, either. I only mention it here in case it's pertinent to the above problem.)

Thanks for any help you can give me.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
If you are using key items, the player doesn't open the menu manually - they interact with the object in front of them, and a menu opens showing only items that are marked as key items.

In your event, use the Key Item command, and select a variable to put the item id into. This will cause the menu to open with all the key items currently in inventory listed. The player will choose an item, and the item id will go into that variable. Next you will use a Conditional Branch to see if that variable has the correct number in it - the id of the item that needs to be used. If the player has used the correct item, the commands after the conditional branch will be executed. If they haven't, the commands after the Else statement (if you have one) will be executed.


The other way to do it, without using Key Item, is to let them open the menu manually and choose an item, but this lists ALL items currently in inventory, and some of those will already be set up to affect the party or a party member in certain ways. You would then have to have common events attached to all your items, and then a whole truckload of conditional branches to determine where the player is currently standing and what event they may (or may not) be facing, and if that particular item can be used on that particular event. That would be way too much work, and too confusing for the player.
 

KChasm

Villager
Member
Joined
Jul 4, 2015
Messages
21
Reaction score
1
First Language
English
Primarily Uses
I once used a script called "Using Key Items to Trigger Events" from Tsukihime. I think it is what you are looking for: http://himeworks.com/2014/11/using-key-items-to-trigger-events/#more
That looks like what I'm looking for, but will that work considering I'm not using MV? EDIT: I got the same page when I looked down the long list of VX Ace scripts, so I guess it will.

In case this helps, what I'm looking to do is something like what happens in this video, about three minutes in:
 
Last edited:

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
696
Reaction score
215
First Language
Vietnamese
Primarily Uses
RMMV
The link i gave you is a script for VX Ace, not a plugin for MV. Tsukihime first created scripts for VX Ace, then plugins when MV was released.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,250
First Language
Spanish
Primarily Uses
RMVXA
I believe that video's effect is achieved by making the item trigger a common event, related to the player's location.
it sends the player's coordinates to the event, and the event reacts.
it can be done with any item, it doesn't have to be a key item.
note that when the player interacts *with the bush*, *it* says "the way is blocked"
I'm assuming that sequence is made without any plugins.
 
  • Like
Reactions: Bex

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
Did you manage to Event it? Or do you need further assistence?
 

KChasm

Villager
Member
Joined
Jul 4, 2015
Messages
21
Reaction score
1
First Language
English
Primarily Uses
Did you manage to Event it? Or do you need further assistence?
Testing it out now, and it seems to be exactly what I was looking for!

Thanks, everyone.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top