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
732
Reaction score
418
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,594
Reaction score
6,525
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
31,370
Reaction score
7,678
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,299
Reaction score
11,713
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

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,231
Members
137,607
Latest member
Maddo
Top