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
728
Reaction score
414
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,496
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,698
Reaction score
7,362
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,264
Reaction score
11,644
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

Recent threads, and my very poor algorithm for my minimap plugin have made me face the fact that I need to review algorithms and such.

Going through Cracking the Coding Interview now. I am so excited.
Kes
I've seen a reference to a Community Lighting plugin for MZ, but cannot find it. Is it still in beta?

Todo:
Add fog of war
Add enemy indicators
Make window draggable
Optimise map drawing algorithm (5 seconds to load the map you see, so it's a... poo-poo algorithm)

Any suggestions? :kaoblush:
bleh studio hell job haha at least they like it didnt had time to do much laundry tho ;w;'....YES I DO AT LEAST TAKE A SHOWER everyday!
Ami
--- Food Ingredients ---

Hero: Since the Chef are in Hospital,we can't eat his Dish in 3 Days.
F.Mage: What we have to Eat?
M.Healer: Don't worry,we can Eat the Food Ingredients.
Hero & F.Mage
: Really?

(3 Days Later)

Chef: Hi,Guys. I'm Ba---
(Entire Party Collapse After Eat Raw Meat)
Chef: Wha...WHAT GOING ON HERE!!!!!!

Forum statistics

Threads
102,913
Messages
995,914
Members
134,361
Latest member
cribo65
Top