These tutorials are SO helpful. I have used them in my DC and Marvel Roll20 campaign to have Hawkman summon birds, to have players transform into their secret identity and more
This script is SO helpful - I’ve been able to use it to summon birds for Hawkman, create power effects and have players break through walls / barriers leaving (spawned fragments) behind
Damm Nick!!! Your videos r sooo dam good!!! They r the reason I went pro on roll20. You do so many creative things!!! But, the best is how you explain things. As it’s so nice and easy to understand, I’ve been able to mold some of your videos to make unique things to my games!!! I can’t thank you enough
Looks pretty good, really wish roll20 would add a function to prompt for an x,y location by clicking on the map similar to the @{target} ability. Would make it much easier to build into API's like this so you don't have to drag tokens on to the map to base everything around.
FYI -- You have to download / install the API script SpawnDefaultToken. For some that may have gone without saying, but for some it does not. After over an hour, of giving up and going back and forth, I decided to just look at the API library and well, what do you know.... Also, for some reason, it works great on my PCs, but the NPCs that go along with them won't spawn with them from the same command -- anyone have any suggestions?
Nick, I got your... would it be called "code"? I don't know. But I got your "spawn zombie" thing to work, except that I can't seem to figure out how in the world to set it so my Necromancer PC can also summon her own zombies and control them. It just summons the standard NPC zombie or (if I use "controlledby") sets her to control NPC zombies. Do you know if there is any way to just let her control tokens she summons without having to make separate sheets for every undead?
Great video, but a slightly more complex question -- Is there a way to summon a random monster from a table or through a macro with the spawn command ? For instance, I have a table with a eight beasts, and want to spawn one of these beasts each time the macro executes without having to name them specifically. The table is called Summon-Beast-Low and the beasts are from my Marketplace Library. I want to click on a token and spawn one of these monsters with a sfx. I got everything down except the randomization part as I'm not sure how to refer to a table in this instance.
I think you could use syntax like --qty|[[ 1t[tableName] ]] where tableName is the name of the table. If that doesn't work, I'd say post this question over in the Roll20 forums app.roll20.net/forum/category/46806 and someone there should be able to help.
Random Question here, but how would u go about adding a Webm image the same way did with the gauntlets image, as the webm image has the wording marketplace within the URL, followed the steps and it ended up not working, showing the webm image one i have my mouse over it, but ones i put it onto the page ( after copying it to my libairy ) show a steal image of the Webm image.
Hey Nick. Is there a way to combine a multisided token, the summon spiritual weapon, and this? I wanted to have the cleric players and myself be able to select the weapon's look when summoning a spiritual weapon. For example, the sahuagin priestess summons a trident, but a dwarf might summon a hammer.
Script author here. Just popped over to check out the comments. Not sure if you have already figured this out yet, but you can definitely use Spawn to summon a spiritual weapon with a multisided token. You create a rollable table token populated with all your different art to each side. Then, you need to set the "represents" property of the token to a "Spiritual Weapon" character sheet, and I'd probably set the controlled-by field to All Players. When you call Spawn, add the --side|n command, where n is the number of the side you want to see. You can add token action abilities to the Spiritual Weapon character to handle the attacks, which should be accessible after you spawn the weapon and select it. The only thing Spawn can't handle is automatically deducting spell slots, but you can easily add a call to the ChatSetAttr script in your macro to adjust the appropriate attribute if you want.
Hey, Nick! Has this API script stopped working for you? Whenever I try to restart my scripts, I get this message: Failed to load SpawnDefaultToken No such file or directory @ rb_sysopen - /home/symbly/www/d20-app/apiscripts/Spawn Default Token/0.13/SpawnDefaultToken.js "Starting webworker script..." "Loading 715 translation strings to worker..." I've tried deleting the script and reading it, as well as trying different versions of the script, but it always fails to load. Any ideas what could be going wrong?
This is awesome. I just started working with APIs today, and your videos have been a huge help. Question though, how would I go about incorporating this one with a selectable menu? Like, if a character has four possible summons, and I want to add this api for them, so when they click the button it brings up a text box with a drop down menu to select what they want to summon, then summons the correct token based on their choice. I got as far as getting the menu and drop down to work, but can't figure out how to link it with the api.
The players in my campaign (party of 7), have a lot of summons to choose from. lol But also I'm running a pokemon game on the side, and thought this would be a fun way of letting them pick what pokemon they're sending out.
Hey Nick, I know this is a old video but I have a question, if i wanted to summon a random number of things... how would i work that into it? like i summon 1d3 skeletons etc?
I'm not sure how to do that, but you could ask the script's author over on this forum and he may be able to point you in the right direction app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2/?pagenum=1
You can pass any valid inline roll to the --qty subcommand. Then, you can use the --placement subcommand to determine how they will be arranged when spawned. If placement is omitted, they will all spawn on top of each other. Here is an example of spawning 2d4 skeletons in a 3x3 grid one square to the right of an origin token !Spawn {{ --name|skeleton --offset|1,0 --qty|[[2d4]] --placement|grid 3 }}
I'm not sure, sorry. I'd say post over here and let the script's author know. He should be able to help. app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2
Seems really cool. I have a party of six PCs. What are the offset coordinates I should use to place party members diagonally adjacent to the pawn token?
I didn't get passed the first part. I kept having No spawn Target even though my d12 was selected. "no spawn target identified, argument "spawn"|characterName" required. Which I did have a npc as such. Maybe because I am trying to apply this to Call of Cthulhu. Most of your D&D great ideas suck for COC unless you specify. I'd say I'm at 25/75% of the ideas working.
I'm going to give you the benefit of the doubt and assume you aren't trying to be rude or insulting by telling me my ideas suck. That said, as Roll20 supports 40+ different systems, it's not possible for me to test a given mod against every single one. You correctly stated that this works for D&D. If it's not working with a different system, your best bet will be to reach to the community on this forum (app.roll20.net/forum/category/46806) and someone there may be able to help you.
For some reason when I use the script it shows up a version of thew characters with less hp and some temp hit points, it looks like the way they where last figth, it even changes the current state of the carachter sheets (with full hp) with this new one. great video as alwayds but i think it may be overlapping with another api or something
Interesting. I think you should let the script's author know about that by posting here - app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2#post-9666562
The issue has to due with the json values retrieved by the script for the character's default token and an interaction with the token-bar-to-character links. I posted a workaround on the Roll20 forum thread here: app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2/?pageforid=9688311#post-9688311
This works for all but one of my PC's in my campaign. I keep getting the error " Unhandled exception: Cannot set property 'pageid' of null" whenever I try to use their token or name. Any encounters with such a thing?
I haven't come across that particular error before, sorry. Does the token have the Represents Character field set properly? If not, set that and try again. If it does, then you might want to reach out to the script's creator on this thread - app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2
@@NickOlivo Yeah. Everything seems to be in line. Weirdly enough, I just changed the name. I added an “!” To the end and that seemed to fix it. I’ll take it!
@@curtmckinstry3483 it’s the weirdest thing. I changed the name by adding a “!” At the end of it. And then changed the code to reflect the new name, and that seemed to fix it. However one thing I’ve noticed about this program is that it’s not compatible with dynamic lighting. It seems to auto set any token it generates to have “-999” vision or light source. Is there a fix for this?
I'm not sure about that one, sorry. But if you post your question here - app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2/?pagenum=3 the script's author can take a look. Best of luck!
Great Api and since i run a group of 6 player and mount this save me a lot of time thank you! I was just woundering if you could help me on one point. When i use the summon all the token bar option are above and my default is bottom. Also my players mounts does not appear when i add (--size|2) after offset. They are large Axe Beck with their own caracter sheet.
Not sure about that, sorry. But you can ask the script's author over on this forum - he might have some ideas - app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2#post-9902152
I just started DMing after years away. Your videos make my players think I'm a wizard or something. Do you use power cards in your games? I watched ur video on it. Just wondering
@@NickOlivo I've noticed autoPing doesn't work for map changer, I could have players manually ping, but is there a workaround to get both of those to work?
Awesome explanation! Can you show me how I can use this to pick from a drop-down list of items to spawn? I have a rollable table of different spell AoE I want my character to spawn. I want to click on the token-macro and have it present a list of the AoE's, and picking one would display that 'side' of the rollable table token. Thanks!
That's an interesting scenario. I think you'd need to combine a roll query (wiki.roll20.net/Talk:Dice_Reference#Roll_Query_Prompts) with another API script called TokenMod (app.roll20.net/forum/post/4225825/script-update-tokenmod-an-interface-to-adjusting-properties-of-a-token-from-a-macro-or-the-chat-area#post-8726889) to do that.
@@NickOlivo So there is no way to insert a roll query into the !Spawn script macro, or insert the !Spawn script into a roll query macro? ex. ?{Character?| !Spawn{{ --name|Grolf --offset|-1,0 }} |!Spawn{{ --name|Suzy --offset|-1,0 }} }
Not that I'm aware of. But the script's author would likely know better. You can post on this forum to reach him app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2#post-9711926
Script author here. Just seeing this question. If I am understanding your question correctly, you can just add a query to your value for the --side| command that returns the corresponding side number. Here's a simple example: *!Spawn {{* *--name| GenericSpellAoE* *--offset| 1,0* *--side| ?{Choose Side|Flaming Sphere,1|Spiritual Weapon,2}* *}}* NOTE: setting both the side AND the size based on a single query is not really possible right now, but as long as the size is the same, the above should work for you. I eventually want to enable the script to be able to be called from another script, which would allow a more flexible solution to what you are asking (likely combining the new !Scriptcards script with !Spawn).
@@NickOlivo I have a token for a spiritual weapon for one of my players and it is approx half the size of a regular 5ft by 5ft square on the map grid. I created it as a character sheet some time ago for my player to just drag on to the map when they needed it, however when I have created the macro to bring the spiritual weapon's character sheet's token on to the map via the spawn API it always appears as a full grid token. It was only really for effect, so the player could click the token macro and his spiritual weapon would appear next to him, it isn't a massive big deal that it is now the size of one square. However it was bugging me a bit because the default token for that character sheet is about half the size of a grid square when you drag it on the map. I hope that makes some kind of sense.
@@NickOlivo hello again, sorry, I have no idea why this didn't work before but I have now just tried --size|0.6 and it has worked. So now my next slight dilemma is that the original token saved to the Spiritual Weapon character sheet was "Is Drawing", however when Spawn brings the token on to the map, it is a regular drawing with the bubbles and therefore snaps to grid when you move it around.
R20 actually sponsored you for this one, nice! Glad to see it, your videos are always super helpful.
Your videos are amazing and super helpful, you've made my first time DMing games so much better and easier. I appreciate it so much!
3 Months later, this and TokenMod are the single most used API scripts.
These tutorials are SO helpful. I have used them in my DC and Marvel Roll20 campaign to have Hawkman summon birds, to have players transform into their secret identity and more
That's a really cool thing to use this script for! Happy gaming!
This script is SO helpful - I’ve been able to use it to summon birds for Hawkman, create power effects and have players break through walls / barriers leaving (spawned fragments) behind
So glad to see you doing more videos they're always do helpful!
Damm Nick!!! Your videos r sooo dam good!!! They r the reason I went pro on roll20. You do so many creative things!!! But, the best is how you explain things. As it’s so nice and easy to understand, I’ve been able to mold some of your videos to make unique things to my games!!! I can’t thank you enough
Thanks for the kind words, Martin! I'm glad the vids have been helpful. Happy gaming!
I was getting ready for my Roll20 game i am DMing tonight, but got sucked down the rabbit hole of API's lol, it was worth it !!!
You advertise better than roll20 can advertise themselves. You deserve more than a sponsorship, but congrats!
This is extremely helpful, thanks for making it!
Looks pretty good, really wish roll20 would add a function to prompt for an x,y location by clicking on the map similar to the @{target} ability. Would make it much easier to build into API's like this so you don't have to drag tokens on to the map to base everything around.
FYI -- You have to download / install the API script SpawnDefaultToken.
For some that may have gone without saying, but for some it does not. After over an hour, of giving up and going back and forth, I decided to just look at the API library and well, what do you know....
Also, for some reason, it works great on my PCs, but the NPCs that go along with them won't spawn with them from the same command -- anyone have any suggestions?
Nick, I got your... would it be called "code"? I don't know. But I got your "spawn zombie" thing to work, except that I can't seem to figure out how in the world to set it so my Necromancer PC can also summon her own zombies and control them. It just summons the standard NPC zombie or (if I use "controlledby") sets her to control NPC zombies. Do you know if there is any way to just let her control tokens she summons without having to make separate sheets for every undead?
Great video, but a slightly more complex question -- Is there a way to summon a random monster from a table or through a macro with the spawn command ? For instance, I have a table with a eight beasts, and want to spawn one of these beasts each time the macro executes without having to name them specifically. The table is called Summon-Beast-Low and the beasts are from my Marketplace Library. I want to click on a token and spawn one of these monsters with a sfx. I got everything down except the randomization part as I'm not sure how to refer to a table in this instance.
I think you could use syntax like --qty|[[ 1t[tableName] ]] where tableName is the name of the table. If that doesn't work, I'd say post this question over in the Roll20 forums app.roll20.net/forum/category/46806 and someone there should be able to help.
@@NickOlivo Ty Nick, I'll give it a try. Syntax - gotta love it LOL!
Random Question here, but how would u go about adding a Webm image the same way did with the gauntlets image, as the webm image has the wording marketplace within the URL, followed the steps and it ended up not working, showing the webm image one i have my mouse over it, but ones i put it onto the page ( after copying it to my libairy ) show a steal image of the Webm image.
It sounds like this is a known issue with webm files - app.roll20.net/forum/post/8469184/help-using-webm-or-mp4-videos-as-map-background#post-8566023
Hey Nick. Is there a way to combine a multisided token, the summon spiritual weapon, and this? I wanted to have the cleric players and myself be able to select the weapon's look when summoning a spiritual weapon. For example, the sahuagin priestess summons a trident, but a dwarf might summon a hammer.
Script author here. Just popped over to check out the comments. Not sure if you have already figured this out yet, but you can definitely use Spawn to summon a spiritual weapon with a multisided token. You create a rollable table token populated with all your different art to each side. Then, you need to set the "represents" property of the token to a "Spiritual Weapon" character sheet, and I'd probably set the controlled-by field to All Players. When you call Spawn, add the --side|n command, where n is the number of the side you want to see. You can add token action abilities to the Spiritual Weapon character to handle the attacks, which should be accessible after you spawn the weapon and select it. The only thing Spawn can't handle is automatically deducting spell slots, but you can easily add a call to the ChatSetAttr script in your macro to adjust the appropriate attribute if you want.
Hey, Nick! Has this API script stopped working for you? Whenever I try to restart my scripts, I get this message:
Failed to load SpawnDefaultToken
No such file or directory @ rb_sysopen - /home/symbly/www/d20-app/apiscripts/Spawn Default Token/0.13/SpawnDefaultToken.js
"Starting webworker script..."
"Loading 715 translation strings to worker..."
I've tried deleting the script and reading it, as well as trying different versions of the script, but it always fails to load. Any ideas what could be going wrong?
awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! these videos really make my day!! they are so usefull thank you sooo much
This is awesome. I just started working with APIs today, and your videos have been a huge help.
Question though, how would I go about incorporating this one with a selectable menu? Like, if a character has four possible summons, and I want to add this api for them, so when they click the button it brings up a text box with a drop down menu to select what they want to summon, then summons the correct token based on their choice.
I got as far as getting the menu and drop down to work, but can't figure out how to link it with the api.
The players in my campaign (party of 7), have a lot of summons to choose from. lol But also I'm running a pokemon game on the side, and thought this would be a fun way of letting them pick what pokemon they're sending out.
I think something like this would work for you
!Spawn{{
--name|?{Spawn Who?|Cassandra|Grolf}
--offset|1,0
}}
Hey Nick, I know this is a old video but I have a question, if i wanted to summon a random number of things... how would i work that into it? like i summon 1d3 skeletons etc?
I'm not sure how to do that, but you could ask the script's author over on this forum and he may be able to point you in the right direction app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2/?pagenum=1
You can pass any valid inline roll to the --qty subcommand. Then, you can use the --placement subcommand to determine how they will be arranged when spawned. If placement is omitted, they will all spawn on top of each other. Here is an example of spawning 2d4 skeletons in a 3x3 grid one square to the right of an origin token
!Spawn {{
--name|skeleton
--offset|1,0
--qty|[[2d4]]
--placement|grid 3
}}
@@davidmoorehead1865 ok thanks man, i knew there was a way i just for just put [ ] and not [[ ]]
For whatever reason, Token Actions aren't appearing for characters spawned in this way. Is there anything I can do to correct that?
I'm not sure, sorry. I'd say post over here and let the script's author know. He should be able to help. app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2
Seems really cool. I have a party of six PCs. What are the offset coordinates I should use to place party members diagonally adjacent to the pawn token?
-1,-1 will put the spawned token to the top left of the selected token.1,-1 will put the spawned token to the top right.
I didn't get passed the first part. I kept having No spawn Target even though my d12 was selected. "no spawn target identified, argument "spawn"|characterName" required. Which I did have a npc as such. Maybe because I am trying to apply this to Call of Cthulhu. Most of your D&D great ideas suck for COC unless you specify. I'd say I'm at 25/75% of the ideas working.
I'm going to give you the benefit of the doubt and assume you aren't trying to be rude or insulting by telling me my ideas suck. That said, as Roll20 supports 40+ different systems, it's not possible for me to test a given mod against every single one. You correctly stated that this works for D&D. If it's not working with a different system, your best bet will be to reach to the community on this forum (app.roll20.net/forum/category/46806) and someone there may be able to help you.
For some reason when I use the script it shows up a version of thew characters with less hp and some temp hit points, it looks like the way they where last figth, it even changes the current state of the carachter sheets (with full hp) with this new one. great video as alwayds but i think it may be overlapping with another api or something
Interesting. I think you should let the script's author know about that by posting here - app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2#post-9666562
I'm having the same issue.
The issue has to due with the json values retrieved by the script for the character's default token and an interaction with the token-bar-to-character links. I posted a workaround on the Roll20 forum thread here: app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2/?pageforid=9688311#post-9688311
@@davidmoorehead1865 Thank you! it works like a charm now :D
This works for all but one of my PC's in my campaign. I keep getting the error " Unhandled exception: Cannot set property 'pageid' of null" whenever I try to use their token or name. Any encounters with such a thing?
I haven't come across that particular error before, sorry. Does the token have the Represents Character field set properly? If not, set that and try again. If it does, then you might want to reach out to the script's creator on this thread - app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2
@@NickOlivo Yeah. Everything seems to be in line. Weirdly enough, I just changed the name. I added an “!” To the end and that seemed to fix it. I’ll take it!
I am having this problem as well. What was your fix @Brannen Pfister?
@@curtmckinstry3483 it’s the weirdest thing. I changed the name by adding a “!” At the end of it. And then changed the code to reflect the new name, and that seemed to fix it.
However one thing I’ve noticed about this program is that it’s not compatible with dynamic lighting. It seems to auto set any token it generates to have “-999” vision or light source. Is there a fix for this?
@@NickOlivo added additional question above^
Whenever I try to execute the command it gives me
(From SpawnAPI):
Unhandled exception: Cannot set property 'pageid' of null
Pls help :(
I'm not sure about that one, sorry. But if you post your question here - app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2/?pagenum=3 the script's author can take a look. Best of luck!
Great Api and since i run a group of 6 player and mount this save me a lot of time thank you! I was just woundering if you could help me on one point. When i use the summon all the token bar option are above and my default is bottom. Also my players mounts does not appear when i add (--size|2) after offset. They are large Axe Beck with their own caracter sheet.
Not sure about that, sorry. But you can ask the script's author over on this forum - he might have some ideas - app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2#post-9902152
I just started DMing after years away. Your videos make my players think I'm a wizard or something. Do you use power cards in your games? I watched ur video on it. Just wondering
Glad you liked it! I occasionally use powercards. It depends on what I'm doing.
@@NickOlivo I've noticed autoPing doesn't work for map changer, I could have players manually ping, but is there a workaround to get both of those to work?
Awesome explanation! Can you show me how I can use this to pick from a drop-down list of items to spawn? I have a rollable table of different spell AoE I want my character to spawn. I want to click on the token-macro and have it present a list of the AoE's, and picking one would display that 'side' of the rollable table token. Thanks!
That's an interesting scenario. I think you'd need to combine a roll query (wiki.roll20.net/Talk:Dice_Reference#Roll_Query_Prompts) with another API script called TokenMod (app.roll20.net/forum/post/4225825/script-update-tokenmod-an-interface-to-adjusting-properties-of-a-token-from-a-macro-or-the-chat-area#post-8726889) to do that.
@@NickOlivo So there is no way to insert a roll query into the !Spawn script macro, or insert the !Spawn script into a roll query macro?
ex.
?{Character?| !Spawn{{
--name|Grolf
--offset|-1,0
}}
|!Spawn{{
--name|Suzy
--offset|-1,0
}}
}
Not that I'm aware of. But the script's author would likely know better. You can post on this forum to reach him app.roll20.net/forum/post/9649899/script-spawn-default-token-thread-2#post-9711926
Script author here. Just seeing this question.
If I am understanding your question correctly, you can just add a query to your value for the --side| command that returns the corresponding side number. Here's a simple example:
*!Spawn {{*
*--name| GenericSpellAoE*
*--offset| 1,0*
*--side| ?{Choose Side|Flaming Sphere,1|Spiritual Weapon,2}*
*}}*
NOTE: setting both the side AND the size based on a single query is not really possible right now, but as long as the size is the same, the above should work for you. I eventually want to enable the script to be able to be called from another script, which would allow a more flexible solution to what you are asking (likely combining the new !Scriptcards script with !Spawn).
@@davidmoorehead1865 Thank you David. That is what I was looking for. Much appreciated. My players are enjoying this ability.
Can the size be lower than 1 and if so how would you represent it? Like 0.5 or 1/2
Excellent video as per usual :-)
Glad you liked it! Can you elaborate on what you've got in mind?
@@NickOlivo I have a token for a spiritual weapon for one of my players and it is approx half the size of a regular 5ft by 5ft square on the map grid.
I created it as a character sheet some time ago for my player to just drag on to the map when they needed it, however when I have created the macro to bring the spiritual weapon's character sheet's token on to the map via the spawn API it always appears as a full grid token.
It was only really for effect, so the player could click the token macro and his spiritual weapon would appear next to him, it isn't a massive big deal that it is now the size of one square.
However it was bugging me a bit because the default token for that character sheet is about half the size of a grid square when you drag it on the map. I hope that makes some kind of sense.
@@NickOlivo hello again, sorry, I have no idea why this didn't work before but I have now just tried --size|0.6 and it has worked.
So now my next slight dilemma is that the original token saved to the Spiritual Weapon character sheet was "Is Drawing", however when Spawn brings the token on to the map, it is a regular drawing with the bubbles and therefore snaps to grid when you move it around.
@@NickOlivo apologies once again, I have just found the Is Drawing command.
--isdrawing|true
Glad you got it sorted out! Happy gaming!
Noice