Noobcreator12

Veteran
Veteran
Joined
Dec 7, 2021
Messages
59
Reaction score
17
First Language
English
Primarily Uses
RMMV
Hello! How do I make an event when you buy a certain item and something happens right after purchasing?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,398
Reaction score
2,123
First Language
Dutch
Primarily Uses
RMMV
depends, 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.
 

Noobcreator12

Veteran
Veteran
Joined
Dec 7, 2021
Messages
59
Reaction score
17
First Language
English
Primarily Uses
RMMV
depends, 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.
Oh only once, you don't need it multiple times. I do have plugins but those are for attacks and animations
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,398
Reaction score
2,123
First Language
Dutch
Primarily Uses
RMMV
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.
 

Noobcreator12

Veteran
Veteran
Joined
Dec 7, 2021
Messages
59
Reaction score
17
First Language
English
Primarily Uses
RMMV
Ok
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
Ok thank you! and it should work right after purchasing correct?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,398
Reaction score
2,123
First Language
Dutch
Primarily Uses
RMMV
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.
 

Latest Threads

Latest Profile Posts

The worst text you can get from a friend "You left your webcam on!!!
When you start recoloring your character because lawsuits are expensive:

lawsuits are bad.png
Been busy in Fort Myers and I'm spending tonight and tomorrow in Orlando. Then I go home on Tuesday by train (I take the Amtrak) and rest up before work on Wednesday.
I'm going to make a thread on the forum asking an interesting question... about the next RPG Maker!

Forum statistics

Threads
121,841
Messages
1,144,630
Members
160,100
Latest member
Unknown-Tale
Top