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

Spawn with @{target|token_id}

Hello, I'm trying to get this command to work with no avail: !Spawn --name |Putty --ids  @{target|token_id} Is there something specific that I am doing wrong? I keep getting the output of: (From SpawnAPI):  You must select a token to proceed  
1652871996
David M.
Pro
API Scripter
Two things:  1) A token must be selected as the error message shows.  2) --ids is not a valid Spawn command. You are probably thinking of TokenMod. If you want to override the default Spawn destination (selected) to a target token, use the command below. A button will show up in chat that you click to initiate targeting. Spawned tokens will appear using these point(s) as origins, respecting the offsets provided.   --targets|<#>      Spawn was written before there were other workarounds for overcoming the Roll20 api bug of not "remembering" ids of both @{selected} and @{target} designators, so this chat button method was created.