How do i make an object interactable only with enough gold

beenus

Warper
Member
Joined
Aug 22, 2017
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMVXA
i wanna make a shop system where each object you have to interact with to buy, but how do i make it so you can only interact if you have enough money. is there a way. also i'm new to the fourms here hi.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
12,595
Reaction score
12,910
First Language
English
Primarily Uses
RMVXA
You'll have to put a conditional branch in the interaction event itself, set to run if gold >= a certain amount. Then put the code for the interaction inside the branch.

Though...for the sake of not confusing your players, I'd consider putting something even if they don't have enough gold too, at least a comment about how much it is and that they cannot afford it. Players like consistency, so if they see that they cannot interact with it the first time, they are unlikely to ever interact with it again, even once they do get enough money.
 

beenus

Warper
Member
Joined
Aug 22, 2017
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMVXA
You'll have to put a conditional branch in the interaction event itself, set to run if gold >= a certain amount. Then put the code for the interaction inside the branch.

Though...for the sake of not confusing your players, I'd consider putting something even if they don't have enough gold too, at least a comment about how much it is and that they cannot afford it. Players like consistency, so if they see that they cannot interact with it the first time, they are unlikely to ever interact with it again, even once they do get enough money.
Thanks a lot my dude, I added a little text before to let the player know how much they need to buy to not confuse players.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I'm currently being attacked by the RPG Maker Hydra: fixing one problem only to have two more rise to take its place.
Hey you! Yeah YOU! Whatcha doin' not backing up your projects? You a masochist or sumthin'? GO BACK UP YOUR PROJECTS! Sheeesh... Didn't think I'd hafta spell it out for yas.
now I need to determine, how MV determines if an auto tile is complete or not.
Edit:From what I can tell it uses Autotile kinds to do that.
Edit 2: The editor determines it and packs picture data for the engine....
Finished with the ground work for my class system, using Ellye's Class Change Equipment and Yanfly's Class Change Core plugins to implement an equip based subclass feature!
Hi people! I was wondering... Here in Brazil, we have a whats app group for we talk about rpg maker and our projects. A more informal way for we meet each other. Is there any whats app group out there? :)

Forum statistics

Threads
94,281
Messages
919,655
Members
124,020
Latest member
6264442
Top