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 %{target|} when not controlable by players

I have a token action that call for a target's antoher token action and it works fine only if I set the "control by" by to all players. The character macro is this one: /em @{selected|token_name} fires his automatic gun at @{target|token_name} [[(@{Agility}+@{Automatics}+@{Attackmod}-@{Recoil}-@{wound})d6>5]]vs%{target|defense} %{target|Armor-resist} (Defense and Armor-resist being a token action and not an attribute) the macro being called is this one: [[(@{Reaction} +@{Intuition} -@{wound} +@{Defmod} +?{Weapon Def Mod|0})d6>5]] Any Idea for a work around? It only works if rewrite the entire macro by using the target option before the attributes like so: [[(@{target|Reaction} +@{target|Intuition} -@{target|wound} +@{target|Defmod} +?{Weapon Def Mod|0})d6>5]] It's not that I don't trust my players but I'd rather not have them be able to look at an npc stats or worse, change them...
1402549935
Sam M.
Pro
Sheet Author
Character actions are things you should only be able to use if you control said character. You can still call target attributes and basically rewrite the ability within this ability
I guess I'll have to do that, it's a problem sometimes because not all characters/npc/spirit use the same attribute for their defense macro. For example the macro for the spirit is this one: [[(@{Reaction} +@{Force}+@{Intuition} +@{Force} +@{Defmod} -@{Wound} )d6>5]] I could maybe add all the possible attribute that might be added to a defense roll on each character and put a value of zero but their must be an less time consuming way... I hope.
if you reference the journal sheet name in the attribute calls instead of relying on token ownership you should be alright. ie: If the player journal in question is named "Rurik" /em @{selected|token_name} fires his automatic gun at @{target|token_name} [[(@{Rurik|Agility}+@{Rurik|Automatics}+@{Rurik|Attackmod}-@{Rurik|Recoil}-@{Rurik|wound})d6>5]]vs%{target|defense} %{target|Armor-resist}
Unfortunately it doesn't work :( Even if I put something simple like 5+%{target|Defense} (Defense being a token action) It doesn't work unless the player can control the token. Otherwise I get this gibberish: 3vs-JMEAU4sPVbL5f2kU_cR|-JP6i3X-fPFQhUtfpIGb|Havrok |Defense
that may actually be a bug. Whevever you're trying to do something the system doesn't like it at least spits back a proper error message.
If someone could confirm that this is normal behavior or a bug that would be greatly appreciated.
1402679609
Sam M.
Pro
Sheet Author
This is a quote from Riley in the mentor forums back on 4/8/14 [Bugfix] Players can no longer access abilities or attributes of Characters they do not control even if they know the name of the attribute or ability (does not affect the use of @{target}). In addition, if a player could previously control a Character, if their control is removed any macros associated with that Character's abilities will be removed from their macro bar. It makes no mention of %{target} still working. We should get a clarification from him about whether or not %{target} should still work.