Is there a way to trigger an event with multiple key items?

XENVITA

https://xenvita.carrd.co/
Member
Joined
Apr 10, 2020
Messages
13
Reaction score
1
First Language
Chinese
Primarily Uses
RMVX
Hi, I want an event to trigger only when player has/must have two specific key items in their inventory.
Though, VX Ace here only allows one?
Thank you!
 

Attachments

kirbwarrior

Veteran
Veteran
Joined
Nov 13, 2014
Messages
729
Reaction score
416
First Language
English
Primarily Uses
N/A
As a condition of the event appearing, I don't know if it is possible, but you can halfway do it by having key items given to the player also turn on switches.

But you can use conditions in the event itself for how it interacts. For instance, you can have a condition look for one item, then if it isn't there look for another, etc. If the item is there, have it jump to the right part and if not, have it jump to another.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,573
Reaction score
6,497
First Language
Indonesian
Primarily Uses
RMVXA
two specific key items
Depends on how you get these two items. If it's scripted, like, you get two items in a fixed location, then it is as easy as just to flip the switch when you have those two items.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,745
Reaction score
7,383
First Language
German
Primarily Uses
RMMV
there are a number of options. some of them are mentioned above, but you could also use a control variable command to get the inventory count, and then use conditional branch to abort the event if not enough items are present.
In such a case the event would be triggered with only one item present, but it would abort its commands if the second item is missing.
 

XENVITA

https://xenvita.carrd.co/
Member
Joined
Apr 10, 2020
Messages
13
Reaction score
1
First Language
Chinese
Primarily Uses
RMVX
there are a number of options. some of them are mentioned above, but you could also use a control variable command to get the inventory count, and then use conditional branch to abort the event if not enough items are present.
In such a case the event would be triggered with only one item present, but it would abort its commands if the second item is missing.
I'm still kinda learning with the program but I'm not familiar with the control variable commands and branches well. How do I do that or go from here?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,277
Reaction score
11,674
First Language
English
Primarily Uses
RMVXA
I'm not familiar with the control variable commands and branches well.
In that case, I strongly urge you to pause and have a look at Andar's compilation of info for new users. Among the many useful things there, there is a playable tutorial on Event Commands, including conditional branches, and another playable tutorial on variables. Being interactive, you learn a lot more, and more quickly, than just reading or watching a video. As a bonus, you can open them up in your Editor and see how everything was done. Events and switches are the foundation of any game, and you need a solid grasp of them. Spending a bit of time on this now will save you a huge amount of time and frustration in the future.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Hello guys im new here an i hope i can learn something. I am work actully on my own Plugin for a Tactical Grid Based Battle System.
Ami
--- Equipment Microtransaction ---

M.Knight: How much this item?
Merchant: 79.99 REAL Money
(After Do Transaction In Real World)
Merchant: Thanks,come back again!
(In Distand)
M.Knight: (Smile With Regret) Goodbye...My Dream Console And PC Gaming
Hello folks, I'm an old member deciding to reenter the forum. Greetings :D
When a parent (of a less than adult aged child) is like
"Oh, I'm like a friend to my child. We're friends."
I'm like
"Oh, that kid's gonna suck...."
Baby tiger gets a belly rub! ^.^

Forum statistics

Threads
103,296
Messages
998,626
Members
134,805
Latest member
fstar9688
Top