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

Wave 'Spawn' Macro

so the title is a little vague, but I'm trying to work out how to make a spawner macro that would have an option to increase the probably spawns per level, ie you click the macro it brings up a drop down and you can select 1 for like round 1 etc. I'd need it to roll for fodder style mobs(thinking reskinned bandits) and then something a little more powerful. any input would be great! I am currently using this macro  "a boarding party of [[ [[1d6>5]]*[[3d4]]]] Pirates and [[ [[1d4>3]]*[[3d2]]]] Lieutenants is sent out" it works okay but doesn't really do what I'd like, I've had 8 test rolls where it's spawned literally nothing at all
1559031036
GiGs
Pro
Sheet Author
API Scripter
With [[ [[1d6>5]]*[[3d4]]]], the 1d6>5 will be a zero if you roll less than 5, and when you multiply anything by zero, the result is zero. Do you want to ensure there's a minimum? You can get a number in a dropdown like this@ ?{Round|1|2|3|4|5} or just as a number entry: ?{Round|1} (this will just give a text box where you can enter anything, be careful to enter just numbers). You can include those queries in your macros, like a boarding party of [[ ?{Round|1|2|3|4|5}d6 * 3d4]] Pirates  Just as an example.
oh thanks, so I just decrease the > number each round I guess?
1559032653
GiGs
Pro
Sheet Author
API Scripter
Yes, if you want to use standard macros, since there's no way to keep track of the results of earlier macros. As a pro user, you could use a script like chatsetAttr to store the round number in a character's attribute, and call that instead of manually entering it (and maybe automatically increase it each type you run the macro).
can I use scripts on another persons server?(I know the api ones I can only do on ones I own)
GiGs said: Yes, if you want to use standard macros, since there's no way to keep track of the results of earlier macros . As a pro user, you could use a script like chatsetAttr to store the round number in a character's attribute, and call that instead of manually entering it (and maybe automatically increase it each type you run the macro). I haven't tried it but can you not set the value of a character sheet attribute from a macro? If so then you could set up a macro sheet and store your round countdown in an attribute on that sheet, reducing the value with each processing of the macro until it reaches 0 then reset to 6 for the next needed usage.
1559074713

Edited 1559074762
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
John F.  said: I haven't tried it but can you not set the value of a character sheet attribute from a macro? If so then you could set up a macro sheet and store your round countdown in an attribute on that sheet, reducing the value with each processing of the macro until it reaches 0 then reset to 6 for the next needed usage. ChatSetAttr can do this. Or Token Mod if you want to store the value in a bubble.