My idea for my fake money simulator!

Abigblueworld

Member
Messages
94
Reaction score
1
Points
8
So on my website there's a game for Fake Money Simulator and you can click the buttons to buy and get things and all that!

Here it is currently:
2024_12_13_109_Kleki.png
I think what I should do is add some leveling system so the more you test your luck and get it the higher your luck range will get by + 1!

It'll be an easy addition to the code of the simulator game. All I need to do is make a new variable (var) and call it, well, "levelthing#" (The # is a number, so each item is labeled as 1, 2, 3, 4) and it'll add more each time you gain it. Every single one will start at 2, and get higher each click by 1
 

Abigblueworld

Member
Messages
94
Reaction score
1
Points
8
Update: This has been done, here's the console log showing it's logging the things going up!
2024_12_13_10w_Kleki.png
 

Abigblueworld

Member
Messages
94
Reaction score
1
Points
8
Alright my next plan is to make items sellable, like the cookies, Lemonade, Phones, and tablets!

Update to this: This process of a way to get more money using selling of cookies, lemonade, phones, and tablets works. The code doesn't seem to glitch except for that annoying TypeError (It's unfixable).
I plan to make the page more appeal soon
 
Last edited:

mrburnsx

Community Advocate
Community Support
Messages
411
Reaction score
39
Points
28
Alright my next plan is to make items sellable, like the cookies, Lemonade, Phones, and tablets!

Update to this: This process of a way to get more money using selling of cookies, lemonade, phones, and tablets works. The code doesn't seem to glitch except for that annoying TypeError (It's unfixable).
I plan to make the page more appeal soon
Looks like the issue there is the if else blocks for buying and selling, they should really have {} (currently missing) since they are more than one line and would make the javascript easier to read and interpret. It's why this error does not occur on the try your luck function. I also found that after the alert for not enough money, taking away the parentheses in addition to (Moneyfunny = Dollar) for the if else blocks seem to get rid of that error. Though with the if else blocks fixed, that line would likely be no longer necessary.
 
Last edited:

Abigblueworld

Member
Messages
94
Reaction score
1
Points
8
Looks like the issue there is the if else blocks for buying and selling, they should really have {} (currently missing) )since they are more than one line and would make the javascript easier to read and interpret. It's why this error does not occur on the try your luck function. I also found that after the alert for not enough money, taking away the parentheses in addition to {Moneyfunny = Dollar} for the if else blocks seem to get rid of that error. Though with the if else blocks fixed, that line would likely be no longer necessary.

It would seem this is the corrected javascript (NOTE: I left the {} in on the ifs that now only have 1 line, even though it is not required (just better practice to have them anyhow), but the elses would definitely require {}). There are some further optimizations that could be made, but this does get rid of the error.
[Removed because it had my code!]
Thanks but my code is NOT going to be changed, as it is made by me.

Please delete your code thank you!
 
Top