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

Macros in a Character sheet

1529416830
AquaAlex
Sheet Author
Translator
API Scripter
How do you allow other characters the ability to use macros from another character sheet for their character (selected token)? Basically I want to find an easy way to create macros once and then copy them to new games. Currently my macros can not be copied, so some people said you can make a character sheet with macros which I am trying but now I am not sure how do I call those macros from another character sheet? all I get is %macro or #macro in the chat log
1529417098
The Aaron
Pro
API Scripter
It's %. So, say you have a character named Macro, with an ability named inspect, you could call it as: %{Macro|inspect} With characters, I believe you have to have control of a character to use it.  So if you want your players to be able to call them, you'd need to put all in the controlled by.  However, if you leave all out of the In Player Journals, they won't be able to get to the actual character (unless you give them a macro to shift-double click).
1529417198

Edited 1529417290
Ziechael
Forum Champion
Sheet Author
API Scripter
The common method is to have a character called 'macros' which has your desired macros setup as abilities on it. This allows the vault/transmogrifier to easily swap them to other games and players can call the abilities like they would their own but using the character_name identifier: %{macros|Attack} The abilities can still use @{selected... and @{target within them which will take the values from the currently selected token as opposed to the sheet housing the macros :) edit: darn you ninja Aaron!
1529417792
The Aaron
Pro
API Scripter
MUAHAHAHAHAHAH. For moving macros, I do have a script:&nbsp; <a href="https://app.roll20.net/forum/permalink/4607824/" rel="nofollow">https://app.roll20.net/forum/permalink/4607824/</a>
1529417804
The Aaron
Pro
API Scripter
I should write one that moves macros to a macro character...
1529418406
Ziechael
Forum Champion
Sheet Author
API Scripter
The Aaron said: I should write one that moves macros to a macro character... Now THAT I would pay for... well, use for free and feel like I should &nbsp;pay for it...
1529418965
The Aaron
Pro
API Scripter
hmmmm... what's the euro at right now? =D
1529449257
AquaAlex
Sheet Author
Translator
API Scripter
The Aaron said: I should write one that moves macros to a macro character... YES! :D
1529449285
AquaAlex
Sheet Author
Translator
API Scripter
The Aaron said: MUAHAHAHAHAHAH. For moving macros, I do have a script:&nbsp; <a href="https://app.roll20.net/forum/permalink/4607824/" rel="nofollow">https://app.roll20.net/forum/permalink/4607824/</a> I know the Scriptomancer does it all :)
1529449304
AquaAlex
Sheet Author
Translator
API Scripter
Ziechael said: The common method is to have a character called 'macros' which has your desired macros setup as abilities on it. This allows the vault/transmogrifier to easily swap them to other games and players can call the abilities like they would their own but using the character_name identifier: %{macros|Attack} The abilities can still use @{selected... and @{target within them which will take the values from the currently selected token as opposed to the sheet housing the macros :) edit: darn you ninja Aaron! Thanks my man :)
1529449331
AquaAlex
Sheet Author
Translator
API Scripter
Ziechael said: The Aaron said: I should write one that moves macros to a macro character... Now THAT I would pay for... well, use for free and feel like I should &nbsp;pay for it... you know The Scriptomancer has a Patreon page :)
1529483315
Ziechael
Forum Champion
Sheet Author
API Scripter
AquaAlex said: Ziechael said: The Aaron said: I should write one that moves macros to a macro character... Now THAT I would pay for... well, use for free and feel like I should &nbsp;pay for it... you know The Scriptomancer has a Patreon page :) oh I know... I'm with-holding my patronage as a bargaining chip until he releases his Unicorn into the wild ;)
1529483632
Ziechael
Forum Champion
Sheet Author
API Scripter
The Aaron said: I should write one that moves macros to a macro character... Also, side note... this would need to preserve html entities to have real value to some &nbsp;people&nbsp;( ͡º ͜ʖ ͡º)
1529527914
AquaAlex
Sheet Author
Translator
API Scripter
Ziechael said: oh I know... I'm with-holding my patronage as a bargaining chip until he releases his Unicorn into the wild ;) HAHAHA, Go Scriptomancer, Go!
1529528346
AquaAlex
Sheet Author
Translator
API Scripter
The Aaron said: I should write one that moves macros to a macro character... Uhm you not done yet? Gettin old now? hehehehe :)
1529529303

Edited 1529529928
AquaAlex
Sheet Author
Translator
API Scripter
Ok I have a question So I have a Character Sheet called PRIEST with macros P-1-Bless P-1-Combine etc and macros that call macros like Priest-All Priest all looks like this: /w @{selected|token_name} &{template:2Edefault}{{name=@{selected|token_name} Casts an All Priest Spell.}}{{[Bless 1](! %{PRIEST|P-1-Bless}) [Combine 1](! %{PRIEST|P-1-Combine}) [Curse 1](! %{PRIEST|P-1-Curse}) [Detect Evil 1](! %{PRIEST|P-1-Detect-Evil}) [Detect Good 1](! %{PRIEST|P-1-Detect-Good}) [Purify Food and Drink](! %{PRIEST|P-1-Purify-Food-Drink}) [Putrefy Food Drink](! %{PRIEST|P-1-Putrefy-Food-Drink}) [Defile 2](! %{PRIEST|P-2-Defile}) [Sanctify 2](! %{PRIEST|P-2-Sanctify}) [Focus 4](! %{PRIEST|P-4-Focus}) [Uplift 5](! %{PRIEST|P-5-Uplift}) [Atonement 5](! %{PRIEST|P-5-Atonement})}} Ok up to this point everything works But now I have a PC and for this Character named Jack&nbsp; I give a list of spell lists /w @{selected|token_name} &{template:2Edefault}{{name=@{selected|token_name} select Priest Spell Sphere.}}{{[All](! %{PRIEST|Priest-All}) [Healing](! %{PRIEST|Priest-Healing}) [Law](! %{PRIEST|Priest-Law}) [Protection](! %{PRIEST|Priest-Protection}) [Charm](! %{PRIEST|Priest-Charm}) [Divination](! %{PRIEST|Priest-Divination}) [Guardian](! %{PRIEST|Priest-Guardian}) [Necromantic](! %{PRIEST|Priest-Necromantic}) [Chaos](! %{PRIEST|Priest-Chaos}) [Combat](! %{PRIEST|Priest-Combat}) [Creation](! %{PRIEST|Priest-Creation}) [Elemental(minor})](! %{PRIEST|Priest-Elemental-minor}) [Law](! %{PRIEST|Priest-Law})[Numbers](! %{PRIEST|Priest-Numbers})[Summoning](! %{PRIEST|Priest-Summoning})[Sun](! %{PRIEST|Priest-Sun})[Thought](! %{PRIEST|Priest-Thought})[Time](! %{PRIEST|Priest-Time})[Travelers](! %{PRIEST|Priest-Travelers})[War](! %{PRIEST|Priest-War})[Wards](! %{PRIEST|Priest-Wards})}} But this bit does not work. If I move hte Priest-All out of the priest sheet and palce it in collection tabs and I replace the %{PRIEST| with # then everything works
Does your priest-all macro contain any of the stuff in any of the other macros?
1529613851
AquaAlex
Sheet Author
Translator
API Scripter
Aranador said: Does your priest-all macro contain any of the stuff in any of the other macros? uhm I am not 100% sure I understand the question. Priest-All calls the actual spell macros that is in the group Priest-All.&nbsp; So I have for isntance a macro P-1-Bless (Priest Level 1 Bless Spell) and it is part of the macro Priest-All (priest spells in the&nbsp;sphere ALL)
So for example, does Priest-All contain Cure Light Wounds, and so does Priest-Healing?&nbsp; It is entirely possible, because of the way the parser in roll20 works, that duplicates will cause issues.&nbsp; It is also possible that things just get too big. As an experiment, try Jack with just All and Healing.&nbsp; If that fails, try all and a test domain that contains no spell that is in the all list.&nbsp; If on the other hand, it worked, try adding domains one at a time and see if it breaks at some point.
1529707985
AquaAlex
Sheet Author
Translator
API Scripter
seems like it has to do with HTML and the %{