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

Assign token to character sheet without changing default.

In an upcoming game, I'm going to have a Changeling playing a character who specifically wants to use the feature to let them become multiple NPC's. I already have macro's set to allow them to change a flippable icon for themself to a few "Default" forms. What I want is a Macro that I can run where essentially I drop an NPC to the board, then select it and run the macro and it automatically assigns it to represent her sheet withough replacing the default. Even better if I can program in her default vision and a status icon representing the "Player" version in cases of NPC meets PC.
I use Token Mod already and am BARELY familiar enough to figure out basic status and light assignment macros. This is far beyond me.
1740777020
timmaugh
Forum Champion
API Scripter
From the TokenMod Help handout: Here is setting the represents to the character Bob. !token-mod --set represents|@{Bob|character_id} Note that setting the represents will clear the links for the bars, so you will probably want to set those again. If you need to manage the bars, too, post back.
1740777233
timmaugh
Forum Champion
API Scripter
Status marker can be added to that line: !token-mod {{   --set     represents|@{Bob|character_id}     statusmarkers|Marked }} You just have to sub in the character name and the name of the marker you want to use. For marker names in your game, you can run: !token-mod --help and scan down until you find the section that shows you the markers. If you share what "default vision" looks like, we can probably help with that, too.
Awesome, That is a big help. SO my player has a character we will call Elsie. My hope is to make a Macro that I can drop NPC Bob on the page. Then click the Token, click the macro and it will assign that token to Character sheet Elsie without changing the default token. Then it will set Vision, (Vision Yes, night vision no) , Bar 1 = HP, and Bar 2 = AC, and set the status icon to be Changed::7183405
I owe you a bigger thank you then I realized. You wrote half the macro and it works. TY! sorry my eyes have been looking at pages of code syntax for so long today it took 3 looks to recognize what you put together. 
1740780918

Edited 1740781146
timmaugh
Forum Champion
API Scripter
Okay, you don't want to link the bars of the token to those attributes, otherwise you will start to affect the actual Elsie character when the changeling takes damage. I'm not even sure you would want to change the Changelings HP to be Elsie's (at least, the starting value at the point that you drop the Changeling token to the board), or if you want to keep that pointed at the Changeling's own value. Really a matter of how you want to play it. But definitely don't link them. So, going with what you wrote, that would be something like: !token-mod {{     --set      represents|@{Elsie|character_id}     statusmarkers|Changed     bar1_value|@{Elsie|hp}     bar2_value|@{Elsie|ac} }} That just leaves getting the vision settings in... which I always have to look up... but I have to step away from my computer for a bit. If someone hasn't connected those last few dots before I get back, I'll figure the rest out.
This is great! ty!
1740796474
timmaugh
Forum Champion
API Scripter
OK, sorry for the delay. I think this is the final form you're looking for: !token-mod {{     --set      represents|@{Elsie|character_id}     statusmarkers|Changed     bar1_value|@{Elsie|hp}     bar2_value|@{Elsie|ac}     bright_vision|true     night_vision|false }}
That is perfect! You are awesome. TY Again!