![]() ![]() That didn't work, however, so I'm a bit stumped. I was working under the assumption that the error is caused by a nil value as soon as the numerical value is removed, so I tried adding some conditional logic that resets nil values in the first two fields to 0 before any arithmetic is performed. The issue I'm experiencing is that whenever a player deletes a value from one of the first two fields (e.g., by highlighting it and pressing backspace), the following error pops up in the game's chat box: Error in Script (Custom Assetbundle - 64453f) function :Ĭhunk_3:(555,4-55): attempt to perform arithmetic on a string value The formula for calculating the fee is effective bid + (reputation * 5) = fee. ![]() The fee number adjusts in real-time according to whatever values have been entered into the other two. ![]() The first two fields of this bid adjustment menu are editable, while the third (the fee) is read-only. ![]() After the player presses the button, the UI delivers a prompt asking all other players if they'd like to participate in bidding for the job in question.Īll participating bidders then enter their effective bid-along with their market reputation, which affects the overall fee they'll collect from the job if they win the bidding process-and then the script finds the lowest bid to determine the job winner. I'm developing a board game, and for the Tabletop Simulator version of said game, I've created a series of UI menu actions that pop up whenever a player presses a button in the middle of the table (the player must first announce that they'll be submitting a bid for a particular job, and their button press initiates an RFP bidding process for that job). First, a bit of context (in addition to the fact that I'm fairly new to coding). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |