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 .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Why won't it work!

1447012321

Edited 1447012472
Hey all, So I'm trying to create an ability on my character sheet, but for some reason it won't work... Anyone willing to help out? &{template:default} {{name=Irrial's Initiative}} {{Initiative=[[1d20+@{initiative}+(@{initiative}/100)&{tracker} ]]}} Cheers, Sorrol
1447012522
Pat S.
Forum Champion
Sheet Author
Casper. Before anyone can help you, please provide more information like what character sheet are you using.
Okey, I'm using a Pathfinder character sheet created by Samuel Marino, maintained by Vince, Samuel Terrazas and Nibrodooh... Not sure about it's exact name cuz it nowhere says so... Also I added an initiative attribute myself...
1447013244
Pat S.
Forum Champion
Sheet Author
I'm not familiar with the sheet so I can't help you but someone more experienced with it might drop by.
What's the reason you're using the HTML entity for closing brace (})? Typically, HTML entities are used within Roll Queries or API Command Buttons . What you've posted should be functional if you replace the entity with the character ("}").
I'm using the (})  instead of the ("}") to avoid the ("}") triggering the template {{Initiative=....}}
1447016449

Edited 1447017005
I'm not sure I completely follow. Might your intention be to prevent the {{Initiative}} field from being output on the Roll Template (while still sending the results of the contained inline roll to the Turn Tracker)?
1447018327

Edited 1447018356
I'm essentially using html to replace the macro breaking syntax to get it to do what I want
And what is it you want your macro to do that can't be done without the entities?
I want to make an initiative roll with a template for fanciness and to automatically enter the result in the turn order
&{template:default} {{name=Irrial's Initiative}} {{Initiative=[[1d20+@{initiative}+(@{initiative}/100)&{tracker} ]]}}
If you do that the macro doesn't work since the ("}") in the @{initiative} will interact with the {{Initiative part so the macro breaks... To avoid this you can use html entities... Thus the } ... that's what they're for.
1447025498

Edited 1447026993
You're correct in that that is pretty much how Roll Templates are nested within a Roll Query . However, you're not doing that here—there is no Roll Query in your macro, and hence no reason for HTML entities to be used. (In this thread , it was necessary to use HTML entities because much of your Roll Template was nested within your ?{Augmented?} Roll Query.) As an aside: one should not replace the syntax of Attributes/Abilities with HTML entities due to the way the order of operations works (Attributes/Abilities are expanded before Roll Queries are executed, i.e. before the syntax has a chance to become problematic to the Roll Query). Replacing the syntax of an Attribute call will, under most use cases, cause that Attribute call to break. See: Advanced Usage for Roll Queries
1447028850

Edited 1447029007
vÍnce
Pro
Sheet Author
This uses a roll template built-into the sheet. &{template:pf_generic} {{name=Initiative}} {{check=[[ (1d20 + [[ @{selected|init} ]][init] + [[ abs(0.01 * @{selected|init}) ]][tie-breaker]) &{tracker} ]]}} or  &{template:default} {{name=Initiative}} {{check=[[ (1d20 + [[ @{selected|init} ]][init] + [[ abs(0.01 * @{selected|init}) ]][tie-breaker]) &{tracker} ]]}} If you want to use roll20's template.
Aight, this all worked out :) Thank you for finding out why it didn't work Silvyre, and thank you Vince for showing a working one! :)
1447110901
Gen Kitty
Forum Champion
As this has been answered to your satisfaction, I'll go ahead and close the thread. Don't hesitate to start a new thread if you have any other questions or issues.