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

0 Members and 2 Guests are viewing this topic.

CopperKatana
  • 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?

Cluedrew
  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How to buy items
« Reply #1 on: August 22, 2022, 12:03:45 AM »
What dialog script are you using? Is it the same one as the tutorial?