Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

[D&D 5e] Request/Help

Hey everyone, I'm trying to find a current 5e random treasure generator.  Does anyone have an API script up for that? Devin
I might recommend asking around to see if there are any TableExport users that have any loot tables to share. All I know of are these , for D&D 3.5.
1465699412

Edited 1465700400
I wrote up the table loader for this to work. Unfortunately, I haven't filled in the script yet. to load the table, you just type !Loot-Table in chat. var chatName="LootTableAPI",     tableName,     tableFind,     error=0     ;      var LootTableAPI = LootTableAPI || (function() {          createTable = function(newName){         tableFind=findObjs({type: "rollabletable", name: newName});         if(tableFind.length){             sendChat(chatName, "/w GM "+newName+" already exists as a rollable table.");             return "";         }         else         {             var newTable=createObj("rollabletable",{name: newName});             return newTable;         }     },          createItem = function(tableFind,itemName,itemWeight){         createObj("tableitem",{             _rollabletableid: tableFind.id,             name: itemName,             weight: itemWeight         });     },          doItAll = function(){         var CurrentTable = createTable("Gems10");         if(CurrentTable != ""){             createItem(CurrentTable,"Azurite (opaque mottled deep blue)",1); /* This is where all the data entry happens, I don't want to get on Wizards' bad side, so I won't type all of this out and share it.             createItem(CurrentTable,"Turquoise (opaque light blue green)",1);             sendChat(chatName, "/w GM "+CurrentTable.get("name")+" was created.");         }         var CurrentTable = createTable("Gems50");         if(CurrentTable != ""){             createItem(CurrentTable,"Bloodstone (opaque dark gray with red flecks)",1); /* More data entry */             createItem(CurrentTable,"Zircon (transparent pale blue-green)",1);             sendChat(chatName, "/w GM "+CurrentTable.get("name")+" was created.");         }     }          registerEventHandlers = function(){                 on("chat:message", function (msg) {             /* Exit if not an api command */             if (msg.type !== "api") {                 return;             }             var tokenized = msg.content.split(" "),                 command = tokenized[0];             switch(command) {                 case "!Loot-Table":                     if(playerIsGM(msg.playerid)) {                         doItAll();                     }                 break;             }         });     }; }()); on("ready",function(){registerEventHandlers()});
If I remember correctly, someone had started writing one months back (and probably finished it).  But it was suggested they do not post it since there could be legal issues.
@Three Of Sword - They did have a post like that, but things have changed since then. We are now looking at a 5E where many of the features of 5E are part of the SRD. I would suspect there is less of a problem now. @Silvyre and Ant Plays D&D I appreicate the help!