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

Send macro to preset list

1509793471

Edited 1509793602
Hello everyone, and thanks in advance for any help! Situation: I am playing a sort of caster who does not have fixed spells, but knows some "elements" which may be combined every morning to create spells. So the total number of possibilities is huge, and it is not possible to have them all in a list. I made a macro full of queries which allows me to write the desired elements and produce the spell I want (and can) cast. The issue here is that it takes some time to fill in. On the other hand, the number of spells active in any given day is small. So, I would like to have the specific spell macro, with all elements already fixed, sent to a list from where I can activate it with a single button (like the macro list, for example). That is, when I fill in all the queries it should be kept fixed in some list for easy access. I do not mind if it goes to the chat or not after being filled, as long as it goes to the list. That way I would have to fill each individual spell only once, instead of at each casting (similar to a sorcerer, I have few spells per day but may cast each several times). As initiative is sent to the tracker with &{tracker}, I would like a similar command to have my fixed macro (which gets a name from the template) to be sent to the macro list. Is that possible? If so, how can it be accomplished? Although I do not think it is important, I include the creation macro itself: &{template:default} {{name=?{effects|} ?{target|burst|cone}}} {{level=?{level|0|1|2|3}}} {{range=?{range|close,Close [[25+(5*floor(@{Ourum|level}/2))]]|medium,Medium [[100+(10*@{Ourum|level})]]|long,Long [[400+(40*@{Ourum|level})]]|Other}}} {{attack=?{attack|No,No|Yes,[[d20+@{Ourum|bab}+@{Ourum|DEX-mod}]]}}} {{save=?{save|No,No|F,Fort DC [[8+@{Ourum|CHA-mod}+?{level}]]|R,Ref DC [[8+@{Ourum|CHA-mod}+?{level}]]|W,Will DC [[8+4+?{level}]]}}} {{damage 1=?{dmg1|No,No|5d4,[[5d4]]|5d6,[[5d6]]|Other,Other} ?{type1|none,None|acid,Acid|cold,Cold|elect,Electricity|fire,Fire|sonic,Sonic}}} {{damage 2=?{dmg2|No,No|5d4,[[5d4]]|5d6,[[5d6]]|Other,Other} ?{type2|none,None|acid,Acid|cold,Cold|elect,Electricity|fire,Fire|sonic,Sonic}}}
Hi, Algunillo . Do you have access to the API in your Game? If so, you can use an API Script to save information about your spells.
That is the thing: I am but a player there, and have played only two sessions. If I could use a script, I would not be struggling with complex macros.  By the way, what I want does seem beyond macro capacity, isn't it?
1509817628

Edited 1509817675
Algunillo said: By the way, what I want does seem beyond macro capacity, isn't it? Without the API, it is not possible to "save" information via Roll Query. Alternatively, you could manually fill in Attributes to set up your spells, e.g. etc. Then, you could use a macro like this to cast your spells: &{template:default} {{name=@{Ourum|spell_1_effects} }} {{level=@{Ourum|spell_1_level} }} {{range=@{Ourum|spell_1_range} }} {{attack=@{Ourum|spell_1_attack} }} {{save=@{Ourum|spell_1_save} }} {{damage 1=@{Ourum|spell_1_dmg1} @{Ourum|spell_1_type1} }} {{damage 2=@{Ourum|spell_1_dmg2} @{Ourum|spell_1_type2} }}
All right, thanks for your help. The attributes' approach is not efficient since there are over 60 effect and target 'elements' to build my character's spells, plus attack, damage, range, save, etc. Each spell may have 1-3 different effects. Also, because of that, spell names correspond to their (effects + target) descriptions. The builder as it is works fine, only it takes time to fill, but since I am a player I can prepare in advance and be ready when my turn comes.