Tabletop Simulator

Tabletop Simulator

E-Money
11 Comments
Serp  [author] 21 Oct, 2020 @ 2:01am 
Don't remember, but most likely the code only includes up to 6 players, so simply copy paste the code into any text editor. then you can try to add more players/colours.
just skimmed trhough the code and I think you only need to add new "ppx" functions and link it.
So simply search for pp1/pp2 and so on up to pp6 and copy paste the code and add pp7/pp8 and so on. I think this will already work.
The Lapis Fox 17 Oct, 2020 @ 2:43pm 
Question, why does it only work for up to 6 players? Is it a coding or a design issue?
Harloneti 3 May, 2020 @ 6:25pm 
Nice work. You can put a code to do if i try transfer 30 but i have enough money. don transfer and put in chat mesagge no money or something?. I said it because if play hidden to cheat... Sorry my english is not good XD
Serp  [author] 23 Apr, 2020 @ 5:09am 
Just tried to find out how I could update this for the past 1 hour, but I have no clue, so I put the whole code in the description above in a pastebin link.
Serp  [author] 23 Apr, 2020 @ 4:42am 
@DrMigas:
Meanwhile you can fix it yourself in the script, spawn 1 emoney object and go to modding->scripting and open the code for the emoney object. Search for
"function input_amount(".
There you will see as 2nd line
"if player~=nil and player.admin then"
Change it to
"if player~=nil then"
And then change the line:
"elseif inputNum==nil and inputString~=nil and type(inputString)=="string" then"
to
"elseif player.admin and inputNum==nil and inputString~=nil and type(inputString)=="string" then"

this way the admin check is in the correct location.
Serp  [author] 23 Apr, 2020 @ 4:42am 
@DrMigas:
Unfortunately I was not able to test this with real players (we never played game of live or monopoly afterwards).

At first glance I think I found the problem in the script, I only allow the admin to change the value. That is of course not correct.

Unfortunately I dont remember how to update the mod. The problem is, that this card remembers the current players, so in my case it will remember "Serp". So if I upload this card, everyone downloading it will have Serp as one player. I can not remember how I solved this when I uploaded the mod...
DrMigas 22 Apr, 2020 @ 2:06pm 
Ok now I can put the name Green, Red, etc. on it but most of the time i have problems due i just only can modify the amount to pay. Ex the other player has problems to pay, i put the amount and i send the money, then the other player changes the value of the amount and sends the same quantity as before. What I'm doing wrong. Thx
Serp  [author] 17 Apr, 2020 @ 9:25am 
@DrMigas: copy pasting will do (or drag'n'drop multiple from the mods "folder"). They will have the same configuration then, but typing a name or bank into the text field will solve this.
DrMigas 17 Apr, 2020 @ 6:29am 
" You may spawn as many of the items as you want, recommended is one for each player and one for the bank."
How can i spawn may of those items like in the picture, i supose that copy pasting doen't run XD, sorry I'm a noob. Thanks
Serp  [author] 3 Apr, 2020 @ 9:37am 
hm, a short test shows that everything is working fine.
Please make sure you understood the usage description above.
To send money to the bank, you simple click the "bank" text on your card, then the send button will include text "transfer money to bank", enter the amount and click the send button.
Jas2188 3 Apr, 2020 @ 9:26am 
I'm trying to add different players on the calculator and it is not working. I am also not able to send money to the bank. I can only transfer money from the bank to me.