I got this baseball game I'm working on, and ran into some problems with Nested Macros. (That's a rite of passage, isn't it?) Luckily, most of my nesting is working fine.... Which, reading through for a couple hours today, I have zero idea why any of it works. What didn't work, however, makes me pretty sad. When looking at the "Fielding" in the game was this: ?{Which Fielding Type?|Routine,#routine-field |Difficult,#difficult-field |Very Difficult,#very-difficult-field |Highlight Reel,#highlight-reel-field } Example of the #fieldingmacros being called by that: @{selected|character_name} [[1t[very-difficult-sayings]]]
/roll {1d20+ @{selected|fielding_mod}}>?{Difficulty Class|15}
!token-mod --set currentside|3 So IF I delete off the !token-mod line AND take out the >?DC check, then the entire thing works fine. I'm thinking I can just add in a piece of text for the chat that says "total must be >15" as far as the DC check goes. I'm more disappointed not being able to set the fielder's token. (from a standing sprite to a diving one, in this example.) If I take out the DC check but leave Token-mod, the Which Fielding macro outputs: "Which fielding type? Routine 1 Difficult 2 Very Difficult 3 Highlight Reel 4" (the 1,2,3,4 are clearly coming from the tail-end of the currentside|n ... Not understanding at all why that's the only bit being displayed. I tried moving the Token-Mod to the start of the macros. That also didn't work) I'm pretty sure there's some order of operations // nesting mumbo jumbo going on here. I just don't understand what. I tried replacing select } with } , but that actually didn't fix my problems... I am supposing I'm replacing the wrong }, or don't have the correct punctuation in there or something ... . I tried putting these macros inside character abilities, my initial attempts at that returned the same error(s). (Changed #-->%{@charactername|macroname}, it was pulling correctly, still not working). Lastly: Roll Templates. I don't understand how to build a roll template. And I'd like to if possible. Most of these macros are basic game functions that need to be universally available. Putting them right in the character sheet seems ideal. But I can't figure out how to build even a basic roll template for this game! =(. The examples cite things that I think are being referenced elsewhere in other character sheets, and I don't know how it relates to what I've got in my character sheet / game. If this is a good idea for me to pursue, if anyone could help me to turn this Macro into a Roll Template, that'd be awesome. I think once I can write one, I'll be golden.. (I found the code button! I don't have to copy paste that anymore! =P) /em @{selected|character_name} Is bringing that High Stinky Cheddar!
/roll 1d20 + @{selected|accuracy_mod} - [[@{selected|exhaustion}d2]] - @{target|contact}
Strikeout Roll = [[19 + @{selected|accuracy_mod} + [[@{selected|exhaustion}d2]] - @{target|contact}]]
Homerun Roll = [[1 + @{selected|accuracy_mod} + [[@{selected|exhaustion}d2]] - @{target|contact}]]
!token-mod --set bar1_value|+1 (^note: I've got the Strikeout Roll and Homerun Roll on there for the player to visually inspect... From what I've read I can have a RollTemplate look for criticals/fumbles, so I assume I could have that be a lot more elegant... Some pitches have different Critical/Fumble ranges though. Fastball is 19-20 critical, 1 fumble. Knuckleball is 20 critical, 1-3 fumble. So, not sure how to write that. [of course that's all subject to change anyway, BUT gotta figure out how best to write any of this stuff. Sigh. Thanks for reading!])