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

FX Target: Hard Code Token_id

Hi all, apologies if this had been answered but I've searched and it's driving me mad! I want to hard-code the target of an /fx command, so that it always runs on my character. Specifically, I don't want to have to keep clicking the token (I'm aware I can just use @{target|token_id} for this). From what I've read so far, I think I need the actual token_id to hard-code the effect, which I've found (M3Yu_U7PCHRoJdP4eAy)... though obviously if there's a way to reference my character by name then that'd be even better. The command below gives me " TypeError: Cannot read property 'view' of undefined".  I don't know the syntax too well - what am I doing wrong? /fx nova-holy @{M3Yu_U7PCHRoJdP4eAy|token_id} Many thanks, Daniel
1585930300

Edited 1585930433
Dumbhuman
Pro
Marketplace Creator
This command should work, just using the token_id (which includes the hyphen) after the fx command: /fx nova-holy -M3Yu_U7PCHRoJdP4eAy The problem is that your token_id will change for every new token so you'll have to update your command frequently or use a macro that requires you to select your token, along the lines of: /fx nova-holy @{selected|token_id} I don't know a way to do it universally without selecting the token, but maybe someone else does.  At least having it selected is slightly less maintenance than clicking on it every time you want the effect.
Hi KC, that's perfect, thank you! You may be right that in practice it needs updating too often to be useful, but I'll try it with the token id and see how it goes :).