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 .
×

It's a trap with Tokenmod

So I have the following scenario... Object 1, token of what looks like a sturdy rope bridge. Object 2, token of what looks like a rickety rope bridge. I am setting the trap so the rickety verision replaces the good version half-way across the bridge. I have it send the good bridget to the GM layer and the rickety bridge appears. I have a trigger line at the half-way point. That part is working just fine. The problem is, when my player triggers the switch, he ALSO goes to the GM layer.. any ideas on how to avoid this?  I am SUPER new to macros and coding, so I have no idea what I am doing wrong and the two things I tried work in the chat and with the trap, but they also both send the player to the GM layer with the image of the bridge. I have tried this: (token ID is the good bridge) --set layer|gmlayer {target|-Olx7q5MRoker3mj2P6R} And this: --set layer|gmlayer --ids -Olx7q5MRoker3mj2P6R
1771710072
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Add --ignoreselected
1771746755
The Aaron
Roll20 Production Team
API Scripter
Check the help but it's probably --ignore-selected
nope. It still sends the bridge ( -Olx7q5MRoker3mj2P6R)  and the player token both to the GM layer --set layer|gmlayer --ids -Olx7q5MRoker3mj2P6R --ignoreselected  and  --ignoreselected --set layer|gmlayer --ids -Olx7q5MRoker3mj2P6R and  --ignoreselected --set layer|gmlayer {target|-Olx7q5MRoker3mj2P6R} and --set layer|gmlayer {target|-Olx7q5MRoker3mj2P6R} --ignoreselected  and each of those variants also with "--ignore-selected" is there something wrong with the rest of what I am writing perhaps?
1771794307
timmaugh
Roll20 Production Team
API Scripter
Hey, Ishk... Can you share the full text of your command line? ...at least as it stands, currently. Maybe we can spot something going on.
1.  --set layer|gmlayer --ids -Olx7q5MRoker3mj2P6R --ignore-selected  and 2.  --ignore-selected --set layer|gmlayer --ids -Olx7q5MRoker3mj2P6R and  3. --ignore-selected --set layer|gmlayer {target|-Olx7q5MRoker3mj2P6R} and 4. --set layer|gmlayer {target|-Olx7q5MRoker3mj2P6R} --ignore-selected  Those are the 4 I have tried out.  I also tried putting the whole thing with !token-mod in the API command, but that doesn't work at all.
1771804471
timmaugh
Roll20 Production Team
API Scripter
Not sure if this is the issue, but is your TokenMod configured to allow players-can-ids? Run: !token-mod --config players-can-ids|true And then try this in your trap config: --set layer|gmlayer --ids -Olx7q5MRoker3mj2P6R --ignore-selected
no joy on that. and now to compound the issue... On each of the four bridge posts, I have a little light. Those are also getting sent to the GM layer. So everything that is in contact with the trapped object gets sent to the GM layer and I just want the one object to go to he gm layer