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 .
×

Google Results Searching For a Topic - Date Issue?

1780283515

Edited 1780283617
I've been encountering this a lot the past few months at least, if not longer. When I google for a topic, for example: I tend to want to go for the results with more recent dates as above, like the two dates circled in red above. However, much of the time the result brings me to relatively old results, such as the screenshots below. I assume this occurs because the roll20 folks are fiddling with contents of the forums? Anything I can add to the search to make newer results. I've kind of given up on "ah ha, this is recent and probably up-to-date" exclamations in my mind. :-)
1780289267
timmaugh
Pro
API Scripter
You can add: before:YYYY-MM-DD   To your search, adjusting it for the date cut-off you need. To answer your search about rowids, though... those are parts of the names of the attributes that make up an entry in a repeating list that help to make them unique. For instance, if you had an "inventory" list, and you had a sword in it, you might track the "weight" of the sword. When you enter a second item into the inventory, maybe a suit of chainmail, you would track the weight of *that* item, as well. How would you know which "weight" attribute is associated with the sword versus which is associated with the chainmail? That's where the rowid comes into play. Each entry in the repeating list is like a row, and the associated attributes of the list are like columns. Every attribute will have an ID, but what makes a repeating list work is that an ID is assigned to the row (ie, the "sword" line, the "chainmail" line). This rowid is then incorporated into the name of the attributes, following the pattern of: repeating_listName_rowid_fieldName You can find the rowid by... ...using your browsers inspection tool (right-click, "Inspect") ...using my Inspector script in a game ...using Fetch (a metascript) through chat (either directly or feeding it in the command line intended for another script) ...from your own script I can go into more detail about any of those, but I just lost a longer post where I clicked a wrong button, so I'll wait to see if you want a longer answer than this before trying again.
1780289930

Edited 1780290046
timmaugh said: You can add: before:YYYY-MM-DD   Thanks, I will give that a go. The question I was looking for was resolved for me a while ago, was just looking for info on whether I need a character ID if I have a row ID for a repeating section. This snippet works, though I've been told (by something artificial) that I should not use getAttrByName when I have have rowIds. I dunno. let allAttrs = findObjs({ type: 'attribute', characterid: charID }); // Extract unique repeating row IDs let rowIds = [...new Set( allAttrs .map(a => a.get('name')) .filter(name => name.startsWith('repeating_equipment_') ) .map(name => { let parts = name.split('_'); return parts[2]; }) )]; // ---------------------------------------- // Process each repeating row // ---------------------------------------- rowIds.forEach(id => { let eqID = id; let eqQty = getAttrByName( charID, `repeating_equipment_${id}_equipment_quantity` ) || "0"; eqQty = parseInt(eqQty, 10) || 1;