I need to buy a house in my game. The Question and answer object pops up and asks do I want to buy the house. How to make it work like that, when I don't have enough money in my counter, the house will not be bought?


I need to buy a house in my game. The Question and answer object pops up and asks do I want to buy the house. How to make it work like that, when I don't have enough money in my counter, the house will not be bought?


I need to buy a house in my game. The Question and answer object pops up and asks do I want to buy the house. How to make it work like that, when I don't have enough money in my counter, the house will not be bought?
(Question):Answer number 1 chosen
+(Counter)<50--------------------------(no action)
number of answer is the answer yes or no
counter value is the money the char have
(Question):Answer number 1 chosen
+(Counter)<50--------------------------(no action)
number of answer is the answer yes or no
counter value is the money the char have
if he has enough money
(Question):Answer number 1 chosen
+(Counter)>50-------------------------(action that makes him buy the house)+sub 50 to "Counter"
if he has enough money
(Question):Answer number 1 chosen
+(Counter)>50-------------------------(action that makes him buy the house)+sub 50 to "Counter"

Here is how to ask the question if you have money enough:
+ Some event happens like you click on the house or whatever
+ [Counter] Value is greater than 10000 (the price of the house)
---> Show question & answer object
+ [Q&A object] If 'Yes' was clicked (or correct answer or something)
---> Create [House] somewhere
---> [Counter] Substract 10000 from counter

Here is how to ask the question if you have money enough:
+ Some event happens like you click on the house or whatever
+ [Counter] Value is greater than 10000 (the price of the house)
---> Show question & answer object
+ [Q&A object] If 'Yes' was clicked (or correct answer or something)
---> Create [House] somewhere
---> [Counter] Substract 10000 from counter
No..sorry..wrong thing
IF HE DOESNT HAVE ENOUGH MONEY
(Question):Answer number 1 chosen
+(Counter)<50--------------------------(Text)Change Alterable string to "Sorry, you don't have enough money"
number of answer is the answer yes or no
counter value is the money the char have
No..sorry..wrong thing
IF HE DOESNT HAVE ENOUGH MONEY
(Question):Answer number 1 chosen
+(Counter)<50--------------------------(Text)Change Alterable string to "Sorry, you don't have enough money"
number of answer is the answer yes or no
counter value is the money the char have