No video

Summoning PCs, Monsters & Spell Effects using the SpawnDefaultToken API

  Рет қаралды 6,549

Nick Olivo

Nick Olivo

3 жыл бұрын

This video showcases the SpawnDefaultToken script, which can be used to summon PC tokens, monsters, and spell effects in Roll20. Note that a Pro account is required in order to use the API. The SpawnDefaultToken script is available in the Roll20 API Script library.
Documentation for the script can be found here - app.roll20.net...
Example showing how to spawn a character:
!Spawn{{
--name|Grolf
--offset|-1,0
}}
Note: A new version of the script was released after this video was recorded. If you're having trouble with hp bars not being correct when summoning party members, please read this: app.roll20.net...
Example showing how to spawn 8 skeletons surrounding the selected token:
!Spawn{{
--name|Skeleton
--qty|8
--placement|surround
}}
Example showing how to resize a token:
!Spawn{{
--name|Ogre Zombie
--qty|1
--offset|-2,0
--size|2
}}
Example showing summoning a spell effect:
!Spawn{{
--name|magicWeapons2
--targets|1
--qty|1
--side|1
--sheet|magicWeapons
--ability|cloudOfDaggers
--fx|burst-magic
--order|top
}}
My Patreon: / nickolivo

Пікірлер: 73
@sylvanex5202
@sylvanex5202 3 жыл бұрын
R20 actually sponsored you for this one, nice! Glad to see it, your videos are always super helpful.
@SlyLikeSai
@SlyLikeSai 3 жыл бұрын
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!
@David_Gallaher
@David_Gallaher 2 жыл бұрын
3 Months later, this and TokenMod are the single most used API scripts.
@David_Gallaher
@David_Gallaher 2 жыл бұрын
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
@NickOlivo
@NickOlivo 2 жыл бұрын
That's a really cool thing to use this script for! Happy gaming!
@David_Gallaher
@David_Gallaher 2 жыл бұрын
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
@xeltanni8999
@xeltanni8999 4 ай бұрын
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?
@martinbove1032
@martinbove1032 3 жыл бұрын
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
@NickOlivo
@NickOlivo 3 жыл бұрын
Thanks for the kind words, Martin! I'm glad the vids have been helpful. Happy gaming!
@shdwhealer
@shdwhealer 3 жыл бұрын
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?
@WryAun
@WryAun 3 жыл бұрын
So glad to see you doing more videos they're always do helpful!
@kintogin
@kintogin 3 жыл бұрын
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 !!!
@Whorobi
@Whorobi 3 жыл бұрын
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.
@aaroen77
@aaroen77 3 жыл бұрын
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.
@davidmoorehead1865
@davidmoorehead1865 3 жыл бұрын
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.
@TheHexblade
@TheHexblade 2 ай бұрын
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.
@NickOlivo
@NickOlivo 2 ай бұрын
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.
@TheHexblade
@TheHexblade 2 ай бұрын
@@NickOlivo Ty Nick, I'll give it a try. Syntax - gotta love it LOL!
@brannenpfister2579
@brannenpfister2579 3 жыл бұрын
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?
@raidngame
@raidngame 3 жыл бұрын
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.
@NickOlivo
@NickOlivo 3 жыл бұрын
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
@sappho114
@sappho114 3 жыл бұрын
This is extremely helpful, thanks for making it!
@retayuan123
@retayuan123 3 жыл бұрын
You advertise better than roll20 can advertise themselves. You deserve more than a sponsorship, but congrats!
@ethandowler3695
@ethandowler3695 3 жыл бұрын
Whenever I try to execute the command it gives me (From SpawnAPI): Unhandled exception: Cannot set property 'pageid' of null Pls help :(
@NickOlivo
@NickOlivo 3 жыл бұрын
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!
@wolfpax12
@wolfpax12 2 жыл бұрын
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?
@NickOlivo
@NickOlivo 2 жыл бұрын
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
@davidmoorehead1865
@davidmoorehead1865 2 жыл бұрын
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 }}
@wolfpax12
@wolfpax12 2 жыл бұрын
@@davidmoorehead1865 ok thanks man, i knew there was a way i just for just put [ ] and not [[ ]]
@gastySK9
@gastySK9 3 жыл бұрын
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
@NickOlivo
@NickOlivo 3 жыл бұрын
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
@jasonr.6123
@jasonr.6123 3 жыл бұрын
I'm having the same issue.
@davidmoorehead1865
@davidmoorehead1865 3 жыл бұрын
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
@gastySK9
@gastySK9 3 жыл бұрын
@@davidmoorehead1865 Thank you! it works like a charm now :D
@godsdemon7441
@godsdemon7441 Жыл бұрын
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.
@NickOlivo
@NickOlivo Жыл бұрын
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.
@ryanedgerton1982
@ryanedgerton1982 3 жыл бұрын
For whatever reason, Token Actions aren't appearing for characters spawned in this way. Is there anything I can do to correct that?
@NickOlivo
@NickOlivo 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
@jayfoxx3097
@jayfoxx3097 3 жыл бұрын
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.
@jayfoxx3097
@jayfoxx3097 3 жыл бұрын
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.
@NickOlivo
@NickOlivo 3 жыл бұрын
I think something like this would work for you !Spawn{{ --name|?{Spawn Who?|Cassandra|Grolf} --offset|1,0 }}
@jasonr.6123
@jasonr.6123 3 жыл бұрын
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?
@NickOlivo
@NickOlivo 3 жыл бұрын
-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.
@maximepaquette3047
@maximepaquette3047 3 жыл бұрын
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.
@NickOlivo
@NickOlivo 3 жыл бұрын
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
@subatoistormborn5499
@subatoistormborn5499 3 жыл бұрын
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
@NickOlivo 3 жыл бұрын
Glad you liked it! I occasionally use powercards. It depends on what I'm doing.
@subatoistormborn5499
@subatoistormborn5499 3 жыл бұрын
@@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?
@subatoistormborn5499
@subatoistormborn5499 3 жыл бұрын
awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! these videos really make my day!! they are so usefull thank you sooo much
@brannenpfister2579
@brannenpfister2579 3 жыл бұрын
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?
@NickOlivo
@NickOlivo 3 жыл бұрын
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
@brannenpfister2579
@brannenpfister2579 3 жыл бұрын
@@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
@curtmckinstry3483 3 жыл бұрын
I am having this problem as well. What was your fix @Brannen Pfister?
@brannenpfister2579
@brannenpfister2579 3 жыл бұрын
@@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?
@brannenpfister2579
@brannenpfister2579 3 жыл бұрын
@@NickOlivo added additional question above^
@garrymiller9277
@garrymiller9277 2 жыл бұрын
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 :-)
@NickOlivo
@NickOlivo 2 жыл бұрын
Glad you liked it! Can you elaborate on what you've got in mind?
@garrymiller9277
@garrymiller9277 2 жыл бұрын
@@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.
@garrymiller9277
@garrymiller9277 2 жыл бұрын
@@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.
@garrymiller9277
@garrymiller9277 2 жыл бұрын
@@NickOlivo apologies once again, I have just found the Is Drawing command. --isdrawing|true
@NickOlivo
@NickOlivo 2 жыл бұрын
Glad you got it sorted out! Happy gaming!
@gorgonstreasure
@gorgonstreasure 3 жыл бұрын
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!
@NickOlivo
@NickOlivo 3 жыл бұрын
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.
@gorgonstreasure
@gorgonstreasure 3 жыл бұрын
@@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 }} }
@NickOlivo
@NickOlivo 3 жыл бұрын
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
@davidmoorehead1865
@davidmoorehead1865 3 жыл бұрын
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).
@gorgonstreasure
@gorgonstreasure 3 жыл бұрын
@@davidmoorehead1865 Thank you David. That is what I was looking for. Much appreciated. My players are enjoying this ability.
@felixu8682
@felixu8682 3 жыл бұрын
Noice
Building an Interactive Rumor Mill in Roll20
10:05
Nick Olivo
Рет қаралды 4,6 М.
Speeding Up Combat in Roll20 with the AutoButton API Script
15:42
Harley Quinn's plan for revenge!!!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 27 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 26 МЛН
Can You Beat Hitman 3 Without Breaking ANY Laws?
22:37
windowledge
Рет қаралды 1,7 МЛН
The Lazy Way to Cut Pizza - Numberphile
14:26
Numberphile
Рет қаралды 166 М.
Making Souped Up Macros with the PowerCards API
33:22
Nick Olivo
Рет қаралды 16 М.
LOL! I mean... Hmmmmmmm...
8:23
Phoenix SC
Рет қаралды 655 М.
Then Next Comes
17:52
exurb1a
Рет қаралды 591 М.
Detecting Good, Evil, and Magic with the Radar API
18:43
Nick Olivo
Рет қаралды 4 М.
Streamlining Combat with the Encounter Helper API in Roll20
11:18
Teleporting Across Maps in Roll20
10:03
Nick Olivo
Рет қаралды 13 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 702 М.
How Two People Created Gaming’s Most Complex Simulation System
38:54
ThatGuyGlen
Рет қаралды 1,4 МЛН