Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I remove a card/edit a value in trello?

Asked by 7 years ago

I'm currently using the TrelloAPI (https://www.roblox.com/library/214265621/Trello-API), and have made a board, which has a list, and then the list contains cards with player names on them (e.g. Player1, Player2, Player3, etc). Each of these cards has a value in the description (e.g. 100, 200, 300, etc).

Here's my code at the moment (everything works fine and I have no problem scripting, I'm just wondering if anyone knows how to do the question above/below)

API = require(game.ServerScriptService.TrelloAPI)
Board = API:GetBoardID("Money")
Player = script.Parent.Parent
PlayerName = Player.Name
Card = API:GetCardID(PlayerName,Board)
FinalCard = API:GetCardInfo(Card,Board)
Money = tonumber(FinalCard.desc)

As I said, this works perfectly okay at the moment.

The only problem I'm having is, I want to update the description of the card (this would happen on an event occurring) , and if that's not possible, then remove the card and replace it with a new one if possible, with a new value.

If NONE of that is possible (which hopefully isn't the case), then I've heard about people using "servers" to store their information. I assume this is like a simple HTML website type thing, and if it's free, then I was wondering how I'd go about doing this? Would that allow me to make some sort of table type thing and then edit that? Thanks for the help.

Answer this question