So I started coding some of the trigger conditions on the player side and its turning out good. It comes hand and hand with the stat creation system.
So I created a few stat's experience and coins. I gave them "Unique Names" "CHAR_EXP" AND "CHAR_COINS"... Then when I created my task, I increased the stat Exp on "If Attempted" which means player will always get experience whether they fail or pass. Then on Success, I increase the coins by 20 - 30. Which will generate a random number upon success. Also on success I added the display text and set that to
Congratulations, you completed the task. You gained {this.CHAR_EXP} EXP and {this.CHAR_COINS} Coins
When displaying text on the site, you can use brackets to display variables but in this case, you can also use a word "this" to get the stat which was affected during the task. So an outcome from the task was:
Congratulations, you completed the task. You gained 2 EXP and 25 Coins
This is only the start, once I am done, pictures, sounds and more can be displayed. You will also be able to display the total of your stat by entering
Congratulations, you completed the task. You gained {this.CHAR_EXP} EXP and {this.CHAR_COINS} Coins. Now you got {CHAR_COINS}...