I'm messing with token ownership, and need to reset ownership back to "All Players', but finding this harder than it should be.
I found this thread:
http://forums.rptools.net/viewtopic.php ... 3&start=15
which talks about the feature "should be there - but isn't" ... that was about 6 years ago ... is the feature hidden in there anywhere by now ?
If not, is there any way to do it via setProperty or such ??
Rest token owner to "All Players" ?
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: Rest token owner to "All Players" ?
I think I recall recent talks of doing this. I would imagine the function would be called Wiki: setOwnedByAll(), but that's not in the wiki. What you can do is getAllPlayerNames("json") and set the token's ownership with setOwner(json).
Code: Select all
[H: allPlayers = getAllPlayerNames("json")]
[H: setOwner(allPlayers,tokenId)]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Rest token owner to "All Players" ?
yeah, I'm doing that for now ... mostly works fine for my purposes .. but as you know, "not the same"aliasmask wrote:I think I recall recent talks of doing this. I would imagine the function would be called Wiki: setOwnedByAll(), but that's not in the wiki. What you can do is getAllPlayerNames("json") and set the token's ownership with setOwner(json).
Code: Select all
[H: allPlayers = getAllPlayerNames("json")] [H: setOwner(allPlayers,tokenId)]
Thanks!
(this works well enough for me at this time)
Re: Rest token owner to "All Players" ?
Since it was brought up... I wanted to ask how come I could never get the "all players" ownership to work (unless every single player's checkbox was marked).
It never worked for me in the past, still not on MapTool 1.4.04.
Is there some option on the server that I'm doing wrong?
It never worked for me in the past, still not on MapTool 1.4.04.
Is there some option on the server that I'm doing wrong?
"There are many ways my Son, to find where the souls of Demons remain...
But it takes only one second of despair and of doubt until, at last, your Soul they will gain..."
But it takes only one second of despair and of doubt until, at last, your Soul they will gain..."
Re: Rest token owner to "All Players" ?
The all players checkbox doesn't really give players ownership, just allows them to edit the token. So, the isOwner or whatever doesn't work unless the player name is checked. So, I usually check for the player and if the all players is checked to determine ownership.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Rest token owner to "All Players" ?
Is that intentional? I mean, I always thought it didn't give actual ownership because it was bugged, and also everyone I played with who was involved with ownerships thought the same.
If it's intentional, its at least misleading.
If it's intentional, its at least misleading.
"There are many ways my Son, to find where the souls of Demons remain...
But it takes only one second of despair and of doubt until, at last, your Soul they will gain..."
But it takes only one second of despair and of doubt until, at last, your Soul they will gain..."