On destroyed > Add 1 To SCORE
> Set GOLD_ADD to Choose (0,0,0,1)
GOLD_ADD = 1
TriggerOnce > Spawn coin.
> Add GOLD_ADD to GOLD
> Set GOLD_ ADD to 0.
Fixed a typo in the 2nd action in "On Destroyed" its GOLD_ADD (like it reads now) instead of GOLD_AAD. Thanks —!
Beginner explanation of the code:
Choose is a function that picks a random number from the options we give it. In this case (0,0,0,1) We dont have a way to know wich number the program will pick, and that was the problem the OP was facing. He wanted to add the result of the Choose function to another value, but only if the result was 1 and there is no place to check wich number the program picked since it doesnt get stored anywhere. So we just add another Variable like GOLD_ADD,that will store the result of the choose function by telling the program to set this variable to the result of Choose like this: "Set GOLD_ADD to Choose (0,0,0,1)"
Once this is done then we can check the result of Choose just by checking our variable, in this case GOLD_ADD like this: GOLD_ADD = 1
Then we can do whatever we want like adding the result of Choose to to the variable GOLD like this: "Add GOLD_ADD to GOLD".
If anyone needed this explanation say thanks to Mystaszea :)