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

Problem with Token-Mod syntax in It's a Trap API

hello, all. I am running into a problem configuring a token-mod script for the it's a trap API. here is the script I am attempting to run:
!token-mod --ignore-selected --ids -M9CGbZV7QUbVUihgkFs --set layer|gmlayer
the object is to move a token (mote of light) from the token's layer to the gm layer when a character touches it. I do not want the character's token to be moved. But it appears that both the mote of light and the character's token are being moved. Is this a known problem with the token-mod script in the it's a trap API, or do I have my syntax incorrect? thanks for any assistance that is provided.

June 12 (1 month ago)
timmaugh
Forum Champion
API Scripter

Is  -M9CGbZV7QUbVUihgkFs the id of the mote of light, or some other token?

June 13 (1 month ago)
Andrew R.
Pro
Sheet Author
Does it work correctly if you run it at the Chat command line?
to timmaugh, yes that is the ID for the mote of light. to Andrew, yes the command runs properly from th chat. i made sure to highlight the character token before running the command. however, when the character token steps on the trap area, both the character token and mote of light are moved to the gm layer
June 13 (1 month ago)

Edited June 13 (1 month ago)
Andrew R.
Pro
Sheet Author

OK. You have your Token-Mod syntax correct, so I suspect the It's A Trap Mod. Further questions:

  1. Is this a Jumpgate game or a Classic game?
  2. What Character Sheet is the game using?

it is a jumpgate game, and i am using the default d&d 2014 character sheet

however, on thing is that i copied the map i am using to the current game from an old classic game. i used the transmogrifier to move it. i'll try creating the same trap manually completely in the current game to see if i get the same result...


no go, i create a similar trap on a jumpgate page and it still moved both the character token and the mote of light to the gm layer.

June 13 (1 month ago)
Andrew R.
Pro
Sheet Author

Thanks! I’ve got free time today, so I’ll try to replicate the issue.

June 14 (1 month ago)
Andrew R.
Pro
Sheet Author

OK. My test game is working. I setup a trap token and set the Token-Mod script field to

--ignore-selected --set statusmarkers|+dead

As soon as my test token hits the Activation Area of the trap token, it gets the dead statusmarker. 

So: It's A Trap is always passing the Token ID of the activating token to Token-Mod. This is why your character's token is moved to the GM Layer.

thanks Andrew. so it sounds like the ignore-selected isn't working at this time. is there a potential fix, or another way to move the selected token back to the token's layer in the same call? i'm going to try something like adding a line "--ids victim-id --set layer|objects" to see if that works...

June 15 (1 month ago)

Edited June 15 (1 month ago)
Andrew R.
Pro
Sheet Author

No, --ignore-selected is working fine. It's just useless, because It's A Trap is passing the Token ID explicitly. 

It seems to me that you are working against the It's A Trap design.

It assumes the trap token is on the GM Layer and provides options to move it to a visible layer. You want the trap on a visible layer and want it moved to an invisible layer.

Maybe you should be using a different Mod.