RPTools.net

Discussion and Support

Skip to content

It is currently Fri May 24, 2013 7:33 am 




Forum rules


PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)



Reply to topic  [ 12 posts ] 

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 5495
Location: Netherlands
 Post subject: [Resolved] is there a way to move tokens between maps?
PostPosted: Wed Oct 14, 2009 2:47 am 
the subject sais it all:

Is there a way to move (n)pc tokens (quickly) between different maps within one campaign?

I know you can save a token and then drag it into the next map.
For my next game however I've created three maps containing three levels of one building. In my former maps I did the three levels in one map, but as an experiment (MT is new to me) I did this one in three. However (n)pc's will be running around and there stats very likely will change. In this case, saving and dragging is not quite ideal.

_________________
My stuff
Excel Tools: Table editor and Illumination Generator
MT Tools: Dungeon Builder Tool, Bag of Tricks: Teleport pads, Pits, Traps and Warded Areas and onMouseOverEvent
Framework: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade and Only War
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow

My dropbox referral. If you use this then both you and me get 500Mb extra space. 2.5Gb total.


Last edited by wolph42 on Wed Oct 14, 2009 6:12 am, edited 1 time in total.

Top
 Profile  
 
 Offline
Giant
 
Joined: Tue Nov 18, 2008 10:16 am
Posts: 136
 Post subject: Re: is there a way to move tokens between maps?
PostPosted: Wed Oct 14, 2009 2:52 am 
Copy and Paste works (crtl+C, ctrl+V). But if its something more complicated you need you'll have to wait for someone that knows Map Tool better than I.


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Mon Jun 29, 2009 9:37 am
Posts: 2684
Location: Germany
 Post subject: Re: is there a way to move tokens between maps?
PostPosted: Wed Oct 14, 2009 4:09 am 
You might find Lindsay's Generic Tools (Whisper, Move Tokens, Handouts) by lmarkus001 interesting.

_________________
"Cif's html works" (confirmed by independent studies)

most complete list of my maptool stuff


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 5495
Location: Netherlands
 Post subject: Re: is there a way to move tokens between maps?
PostPosted: Wed Oct 14, 2009 6:11 am 
copy paste is indeed a good point, I actually used that when building maps, so I could hav thought about it. It is however not what Im looking for (its copying not moving and it can potentially create confusion).

The Lindsay's Generic Tools is exactly what I was looking for!! thank you very much!

_________________
My stuff
Excel Tools: Table editor and Illumination Generator
MT Tools: Dungeon Builder Tool, Bag of Tricks: Teleport pads, Pits, Traps and Warded Areas and onMouseOverEvent
Framework: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade and Only War
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow

My dropbox referral. If you use this then both you and me get 500Mb extra space. 2.5Gb total.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: is there a way to move tokens between maps?
PostPosted: Wed Oct 14, 2009 5:53 pm 
wolph42 wrote:
(its copying not moving and it can potentially create confusion).

Well, you could always use cut/paste instead of copy/paste. But it sounds like you have a solution that works for you. :)

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
User avatar  Offline
Giant
 
Joined: Wed Jun 18, 2008 1:07 pm
Posts: 203
 Post subject: Re: [Resolved] is there a way to move tokens between maps?
PostPosted: Wed Oct 14, 2009 6:49 pm 
I've got a slightly different solution to Lindsay's in my Call Of Cthulhu framework. I have a GM token which I move to whichever map I want the players to move to, in the general area where they'll start. I then have the following SummonPlayers macro on the GM token.

Code:
<!-- SummonPlayers@GM -->
[H: GMMap = getCurrentMapName()]
[H: GMX = getTokenX(0)]
[H: GMY = getTokenY(0)]

Join me please on [R: macroLink(GMMap,"Summoned@Lib:GM", "gm-self", "map="+GMMap+"; X="+GMX+"; Y="+GMY, "selected")]


This sends a macrolink to the chat window for players to click. If they select their tokens and click it, it launches the Summoned macro on the Lib:GM token, which actually moves them..

Code:
<!-- Summoned@Lib:GM -->
[H: NewMapName = getStrProp(macro.args, "map")]
[H: NewX = getStrProp(macro.args, "X")+1d4+1]
[H: NewY = getStrProp(macro.args, "Y")+1d4+1]

[R: token = token.name] relocates to [R:NewMapName]-[R:NewX]:[R:NewY]
[H: moveTokenToMap(token,NewMapName, NewX, NewY)]


This has them appear scattered over a random area near the GM token on the destination map. Once the players all confirm they've moved their tokens, I can Force Players To Current Map/View to get them to view the right area.

This avoids the whole problem of tokens being lost in transit when a player Cuts but can't paste for whatever reason, or having duplicate tokens appearing when players Copy instead of Cut. And it's very quick and easy to use in play without requiring any setting up in advance.


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Fri Mar 28, 2008 11:30 pm
Posts: 1586
Location: Layfayette Hill, PA
 Post subject: Re: [Resolved] is there a way to move tokens between maps?
PostPosted: Wed Oct 14, 2009 8:05 pm 
I like it! One of the benefits of your approach is it alleviates the issue of two people modifying a token at the same time. With yours, the player moves their token so there will be no conflict. I think I might nab that and implement a change or two (like prompting the DM to select which players should get the move link).

Just today I had put in a scatter element to my Move macro, I use the destination point as the center of a 3x3 grid and fill in.

EDIT: Ok I have made it so it handles moving on the same map, and limits who gets the message.

Would you mind if I were to include this in my handy utilities package for folks to use?

Here are my updates:

Macro on target token
Code:
[H: assert( isGM(), "<b>" + getMacroName() + "</b> is a GM only macro.", 0 )]

[
H: gmMap = getCurrentMapName()]
[
H: gmX = getTokenX(0)]
[
H: gmY = getTokenY(0)]

[
H: inString = "pa%{roll.count}|1|%{playerName}|CHECK|" ]
[
H: inputList = "" ]

[
H: apn = getAllPlayerNames() ]
[
H: numpn = listCount( apn ) ]

[
H, FOREACH( playerName, apn ), CODE: {
  [ inputList = listAppend( inputList, strformat( inString ), "##" ) ]
}]

[
H: cancel = input(
  "junk |Select Recipients|| LABEL | SPAN=TRUE",
  + inputList + ""
)]
[
H: abort( cancel ) ]

[
H: recipients = "[]" ]
[
H, FOR(i,0,numpn): recipients = if( eval( "pa" + i ), json.append( recipients, listGet( apn, i ) ), recipients) ]

[
H: output = "<b>Token Move</b>: Select your token(s) then click " + macroLink("this link","TeleportPad@Lib:libDnD35Pathfinder", "gm-self", json.set( json.set ( json.set( "{}", "map", gmMap ), "X", gmX ), "Y", gmY ), "selected") + " to move near " + gmX + "," + gmY + " on map " + gmMap ]

[
R, W( recipients ): output ] 


Macro in Library - Be sure to uncheck Auto Execute
Code:
[H: newMapName = json.get(macro.args, "map")]
[
H: newX = json.get(macro.args, "X")+1d3-1]
[
H: newY = json.get(macro.args, "Y")+1d3-1]

[
H: tToken = currentToken() ]
[
R: token.name] relocates to [R:NewMapName] ([R:NewX],[R:NewY])
[
H, IF( newMapName == getCurrentMapName() ): moveToken( newX, newY, 0, tToken ); moveTokenToMap( tToken, newMapName, newX, newY ) ]
 

_________________
Whisper Frame, Map Move-To Points, Handouts | D&D3.5 / Pathfinder Framework


Last edited by lmarkus001 on Tue Oct 20, 2009 8:02 pm, edited 5 times in total.

Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: [Resolved] is there a way to move tokens between maps?
PostPosted: Wed Oct 14, 2009 11:10 pm 
Hey, Lindsay!

Would you mind using Wiki: assert() instead of Wiki: abort()? It'd be nice to see an error message that says, "You're not the GM so this isn't a valid macro for you." instead of no output at all. :cry:

Thanks. 8)

(I actually did a global S&R to make that change when I grabbed your b59 version.)

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 5495
Location: Netherlands
 Post subject: Re: is there a way to move tokens between maps?
PostPosted: Thu Oct 15, 2009 2:32 am 
Azhrei wrote:
wolph42 wrote:
(its copying not moving and it can potentially create confusion).

Well, you could always use cut/paste instead of copy/paste. But it sounds like you have a solution that works for you. :)

:oops: that solution is sooooo simple and effective it must be too good to be true...

The 'send macro' version is also great... hmm choices choices.... anyway my compliments and gratitude to this community that even keeps sending alternative solutions after a problem has been resolved!

By the way, where is this 'Utilities Package' to be found??

_________________
My stuff
Excel Tools: Table editor and Illumination Generator
MT Tools: Dungeon Builder Tool, Bag of Tricks: Teleport pads, Pits, Traps and Warded Areas and onMouseOverEvent
Framework: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade and Only War
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow

My dropbox referral. If you use this then both you and me get 500Mb extra space. 2.5Gb total.


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Fri Mar 28, 2008 11:30 pm
Posts: 1586
Location: Layfayette Hill, PA
 Post subject: Re: [Resolved] is there a way to move tokens between maps?
PostPosted: Thu Oct 15, 2009 6:48 am 
@Azhrei

But the code up there says (oh the power of edit :-) ):
Code:
[H: assert( isGM(), "<b>" + getMacroName() + "</b> is a GM only macro.", 0 )]


@wolph42

Check out the link in my signature...

_________________
Whisper Frame, Map Move-To Points, Handouts | D&D3.5 / Pathfinder Framework


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: [Resolved] is there a way to move tokens between maps?
PostPosted: Thu Oct 15, 2009 11:38 am 
lmarkus001 wrote:
@Azhrei

But the code up there says (oh the power of edit :-) )

Heh-heh. Y'know, I can revoke that power if I choose. ;) 8) (j/k)

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
User avatar  Offline
Giant
 
Joined: Wed Jun 18, 2008 1:07 pm
Posts: 203
 Post subject: Re: [Resolved] is there a way to move tokens between maps?
PostPosted: Thu Oct 15, 2009 3:45 pm 
lmarkus001 wrote:
Would you mind if I were to include this in my handy utilities package for folks to use?


We'll just need to work out the fee and licensing terms......

Nah I'm kidding. By all means go ahead. I'm only going to go ahead and steal your refinements right back so it all evens out in the end :-)

Dr V


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 12 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 0 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman