Author Topic: How to buy items  (Read 5315 times)

0 Members and 1 Guest are viewing this topic.

  • Newbie
  • *
  • Posts: 19
    • View Profile
How to buy items
« on: June 13, 2022, 02:02:59 AM »
Hello, I am trying to program a shop in my game. But I think I'm not quite understanding  how to implement buying things. I watched the official tutorial on Shops and there was a dialog called _shops.question, which says something like:

Price is $v rupees.
$? Buy
$? Don't Buy

And the engine should fill in the item's price in the $v part, and recognize the "Buy/Don't Buy" part as selectable options. While the price of the item is properly displayed in my game, these options are just displayed as text with the $? symbols. The engine does not recognize them as choices.
How can I make it so that these are choices, and how do I control what effect each choice has?