Here's the code
Code: Select all
[plyr='Bob']<br>
[chr='Dilbert'] Id
[id=findToken(chr)] <br>
[r,if (id != "" ),code:{
[switchTokens(id)]
};{
[id=copyToken("Default Character",1,"Grasslands")]
[switchToken(id)]<br>
[getName()]<br>
[setName(chr)]<br>
[setGMName(plyr)] <br>
[setPC()]<br>
}]
<br>[isTrusted()]<br>
Here's the output
Everything looks good except the token "Default Character 46" hasn't been modified.Bob
Dilbert Id
000000005758DC8FB900000000000000
Default Character 46
Dilbert
Bob
1
I've tried this with Apply to Selected Tokens check and unchecked and on Several versions of Maptool. I'm certain I'm missing something foolish.