Trying to get shop unlocks to work correctly HELP!!!
Hey everyone
I'm trying to get this code to work to unlock on specific event. I am having trouble getting it to work correctly. My code below shows what I have. The problem is when I click it, it unlocks, but when I click a second time it doesn't add one to the specific item. I have tried both boolean and integer operations. And both act the same. Can someone help?
(


I'm trying to get this code to work to unlock on specific event. I am having trouble getting it to work correctly. My code below shows what I have. The problem is when I click it, it unlocks, but when I click a second time it doesn't add one to the specific item. I have tried both boolean and integer operations. And both act the same. Can someone help?


Answers
I.E.
IF
BOOLEAN false and all unlock stuff is fulfilled
THEN
BOOLEAN TRUE
OTHERWISE
IF BOOLEAN TRUE and have enough money
THEN
purchase.
Hope that helps.
C
Rule: Unlock Position
--
If Press
If Boolean Off
Boolean On
Highlight position/Unlock
--
Rule: Buy
--
If Boolean On
If Press
Check Item and $
Respond Accordingly
--
I create a separate test booleans that I then display on test objects that I leave on my screen to make sure the switches are actually being turned on.
As for your equipping issue, I am not sure exactly what you mean... Sorry.
Or turn off a few rules and start from square one. Try to catch the problem at the source, not at the end.