Hello! How do I make an event when you buy a certain item and something happens right after purchasing?
Event after buying an item?
RPG Maker MV Supportdepends, can the item be bought 1x, than it would be easy,
if it can have multiple items and than bought 1, than a tiny
bit complex, but you can set a variable, and when the variable
is 1 or more, an event can be happening, otherwise, it doesn't.
it depends what you aim for, so we can give you a better
guide how to accomplish it, if plugins are involved, we can
make it easier or complex depends on your needs.
if it can have multiple items and than bought 1, than a tiny
bit complex, but you can set a variable, and when the variable
is 1 or more, an event can be happening, otherwise, it doesn't.
it depends what you aim for, so we can give you a better
guide how to accomplish it, if plugins are involved, we can
make it easier or complex depends on your needs.
Oh only once, you don't need it multiple times. I do have plugins but those are for attacks and animations
when you only need it once, and can be bought once, it's a easy part.
when creating a conditional branch, you check if the item is in the inventory,
if: player has item "name here" which can be on data -> items -> name item
than do stuff
else
nothing/ or text, have a nice day
end
I need to check the condition where exactly.
EDIT:
you can create a conditional branch, go to tab 4 -> item -> item selection.
than the stuff what happens otherwise, the stuff that doesn't happen.
can be left empty or without an else handle, depends on your needs.
when creating a conditional branch, you check if the item is in the inventory,
if: player has item "name here" which can be on data -> items -> name item
than do stuff
else
nothing/ or text, have a nice day
end
I need to check the condition where exactly.
EDIT:
you can create a conditional branch, go to tab 4 -> item -> item selection.
than the stuff what happens otherwise, the stuff that doesn't happen.
can be left empty or without an else handle, depends on your needs.
Ok
Ok thank you! and it should work right after purchasing correct?
if the player has the item, it does, otherwise, nothing happend at that point.
so you can code everything what need to be done on the handler,
else
all the other stuff if it hasn't be bought yet.
so you can code everything what need to be done on the handler,
else
all the other stuff if it hasn't be bought yet.
Ok thank you so much!
Original thread: https://forums.rpgmakerweb.com/threads/event-after-buying-an-item.144291/