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
731
Reaction score
417
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,498
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,953
Reaction score
7,465
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,290
Reaction score
11,696
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

We are truly intellectuals.
Without using violence without weapons
Our group has as many as 1.3 million people and more than 1 hundred thousand talks.
We gathered in an hour, more than 4.5 Half a hundred thousand



I got a Sword.
I got an Axe.
I got two Swords.
Nothing to see here, just walking with my dog.
I haven’t worked on my game in a while. Tomorrow might be the day.
*squeals* :kaoblush:


I've been experimenting with improved memory management again, which allowed me to include items to increase player path length. These are both 44 grid spaces long, and stable. :LZSexcite:
I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!

Forum statistics

Threads
104,461
Messages
1,006,460
Members
135,970
Latest member
Robb_dog14
Top