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

Very simple Turn Order help

Hello everyone. First post, huh:) Not even sure i am writing in a correct topic, but who knows... So i need help with a macro, I tried to set a turn tracker decrease macro &{tracker:-} into a macro, but whenever i connect it to a certain ability to a character it does nothing. (macro is for all player, token has turn...so no idea how do decrease the number with 1) (We are not using DND, but our own old game...so I have no API -or scripting experience.) Full Ability as Toke Action is ?{Cselekszem| Felemelem a csuklyát, A rendkívüli módon ocsmány alak felemeli a csuklyáját ezzel sokkot okozva mindennek aminek van agya... Igen nektek is. Dob egy hatost...mindenki más pedig hátast.. #rd6 #tracker | Varázslok, #tracker A szörnyű csuklyás alak felcsapja a varázsmemoárját és szétbassza a mesét egy varázslattal amit már előre kiszámolt , nem itt találja ki , hanem már meg is van és hopp } Thank you in advance and sorry for the really easy question
1530887870
The Aaron
Pro
API Scripter
Turn orders are associated with Tokens, not Characters.  To get a Token's Turn Priority to decrease, you need to have the Token selected, and then execute a roll with &{tracker:-} in it, easiest like this: [[ &{tracker:-} ]] Having your Character Ability as a Token Action should handle forcing the user to selected the Token first.  The only things left to check are if the Token has a turn (Tokens are unique, so the Token that represents a Character on one Page and has a Turn, won't be adjusted by a Token representing that Character on another Page what doesn't have a Turn), and that you are placing the &{tracker:-} inside a roll where it will get evaluated.
Thank you Aaron , Iam laughing sincs an hour :) Let met tell you what i understood the things above. (Since I am a very simple person when we are talking about scripts) Select the Token representing the char. Chat as the character [[ &{tracker:-} ]] :) This happened: SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but end of input found. ..so...:) I really appreciate your help , but I think I will count manually :D
1530894353
The Aaron
Pro
API Scripter
Ah!  Sorry about that.  My memory failed me.  It needs a number to apply: [[ 1 &{tracker:-} ]] That should work. =D
OMG It worked!!! Thank you very much
1530895588
The Aaron
Pro
API Scripter
No problem! =D
If you have ever time , do you have something similar for "ammo" Ammo name is "turn" as attributes and  current charater name is Ramon. (Dont worry, really, the last question :) from that macro I can find out for the others.... ) It has to decrease by 2. I would really appreciate that.
1530896083
The Aaron
Pro
API Scripter
If Ammo is a token, you'd just selected it and do the above.  Otherwise, it's not really possible without the API. You can access the Turn Priority with @{tracker|Ammo}, but I don't know that that really helps you here.
Hm, I am wondering if there is a certain script that adds or removes character attributes generally. Perviously I found something like this, called charsetattr (?) but it did not run me as well I did something like charsetattr (still dont know the real name:) ) @{Tomi|TÉ:-1}
1530897893
The Aaron
Pro
API Scripter
API Scripts are a Pro Subscriber Feature.  You can only use them in Games where the Creator is an active Pro Subscriber.
Cheking :) Thank you. This tracker thing basically solve my situation durint the game. So I really appreciate that!!
1530899313
The Aaron
Pro
API Scripter
no worries!