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,475
Reaction score
2,161
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,475
Reaction score
2,161
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,475
Reaction score
2,161
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

ngl i feel like im morbin out
I've made a lot of small changes and fixes over the past couple weeks without actually making any progress on my game...now I'm running out of things I want to change, and I'm terrified that I might have to start being productive again...the horror! D:
I made a mini devlog about the sprite animations I've been working on! You can read it by clicking here


applebuds-dreamtrotter.gif
What happens with this list, is it currently possible to buy any of these RPGMAKER at least those that are for PC?

Combat skill combination demostration

Forum statistics

Threads
122,195
Messages
1,147,180
Members
160,461
Latest member
laminated_paper
Top