Any questions remarks etc can be discussed here. One question @here: i can create 'tags' which you can add to the post. Those tags makes it easier to find certain categories of questions. Now I can only think of one category as this is macro questions. But if anyone has some solid ideas for tags (IDK...math, ui, json, input, output, general, etc. ) let me know and then ill create those.
#Discussion on 'macro questions forum'
1 messages · Page 1 of 1 (latest)
I think json and javascript should have their own categories, because both get pretty obscure pretty quickly. If you want a bunch of tags, look at the subcategories on the Macro Function page in the wiki.
so typed in a long message, got distracted, lost it, few days later...
are you saying that json and js should have there own topic or are you saying that there should be three tags here: js, json and mt ?
the categories doesn't really sound like a great idea as many questions are about ' how do you do this' which makes it rather hard to decide what tag belongs to that. but perhaps others have thoughts?
Can tags be easily added after posting? If so, how about a "Resolved" tag?
Or a "Bug" tag when something can't be resolved because of a bug...
And do you have any power over format? I'd prefer that new posts and posts with new responses were bold while old ones weren't. The little "new" in posts doesn't stand out all that much to me.
good points on the tags, not sure if its possible to use them in that way, but we'll find that out. And afaik: i have no influence on the format
I've added three tags, resolved, bugs and advanced. The latter could be used from the start. Can you try to add a tag to this topic?
ah found it: right click on the post and then add it! So yes you can add them post post. Im curious though if YOU can add them. lemme know!
I don't see a way to add a tag. So probably author only.
on the topic itself and then right mouse click and edittags
i can do it for all but im cheating...
Could a "Feature" be added? the Move tokens with VBL post from me, should be "resolved" but also a "feature"?
ok so op only.
i dont think this is the right place for that. this really is meant for Q&A on macro issues. if a feature arises from that it should be placed in its own section
I've archived the old channel here: https://discord.com/channels/296230822262865920/296659024818995200
Anyone ever considered a stackexchange? It would be very handy for macro questions, and with the voting and rating system, one could objectively compare answers. Plus it would be searchable.
That’s a much better idea than trying to force discord into something it isn’t.
Are you saying that there is a "stack exchange" format for channels in Discord?
No, I mean, wouldn't it be nice to have a maptool.stackechange.com? That's a great site, format, etc. In fact, rpg.stackechange.com has a maptool tag, https://rpg.stackexchange.com/questions/tagged/maptool, but there's only two questions 🙂
Yeah, I agree that it's a cool format, but I just don't know how well it would be adopted by our user base... or who would oversee it... etc. Anything outside Discord or Github right now has minimal attention.
I would imagine, there's at least a subset of users already using rpg.stackexchange.
As part of my channel cleanup project, I'll be opening up this channel to general scripting questions (so macros, HTML5, GraalJS, or aything else).
Also a (very late) reminder that this post is for discussing the channel, not asking for support. Please make separate posts if you have questions about MapTool. I'll be cleaning up some of the above discussion shortly.
So, just to make sure before I post, questions about macro constructions would be here with the "macro" flag, correct?
Yes!
I must be doing something Wrong, I am not able to get Frames to work with Rollcount and Code.
[Frame("Tavern"): {
<TABLE>
<TR>
<TD>
[R,Count(2d6, " "),CODE:{
This throws an error
Error in body of roll. Statement options (if any): Frame("Tavern") Statement Body (first 200 characters): { [R,Count(2d6, " "),CODE:{ [H:racetest=tbl("bestrace")] [H:genders=1d2] [R,if(genders==1),CODE:{ Gender: Male Name: [R:FirstName=tbl("MaleNames")] };{ Gender: Female [R:FirstName=tbl("
But if I do not have it in a Frame, It works Fine.
Is it possible to have the roll done prior to the frame command so that you're just able to use [r: result] in the frame output instead of the code block?
what I am trying to do is roll random NPC's 2d6 Worth, With Names along with Genders
Have you tried running the random generators outside of a frame (e.g., Just outputting to chat)? I always start with that to make sure my formulas are working correctly, then migrate the variables into a frame once everything checks out.
Yeah it was working there, Once it hit frame, it dies. Which is why I was confused
Thinking Maybe its too... My brain ? Trying to dumb it down
As @Tucker71 suggested, it might be easier to do everything outside the frame, saving the HTML for the frame in a variable, and the only thing inside the frame is the [r:result]. In my experience, that's preferable anyway, because it makes it easier to debug because you can build it one piece at a time.
The frame creates one code level. You then embed two more code levels in your count block. You can only have 2 code levels. There is an easy hack to use to make this work, but it is a hack (and I can't see enough of the code to show you how it works). Otherwise, if you want to do the work in the frame, you'll need to cut out a code level.
From a debugging standpoint, it may be easier to generate the frame content separately and then embed it within the frame. That lets you display the content separately to ensure that it has the structure/values that you want...
Thanks. I will try that