Copy Tokens with random pattern and Rotation.

These are tools and utilities that make it easier to run games. This includes Lib: macro tokens dropped into MapTool to manage the game, a conversion file for CharacterTool to allow use in MapTool, or just about anything else you can think of -- except graphics with macros and anything specific to a particular campaign framework. Those are already covered by the Tilesets subforum and the Links and External Resources forum.

Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice

Craig
Great Wyrm
Posts: 2107
Joined: Sun Jun 22, 2008 7:53 pm
Location: Melbourne, Australia

Re: Copy Tokens with random pattern and Rotation.

Post by Craig »

fencewebdesign wrote:I downloaded this and seem to be having an issue. No matter what images I use/relative position to each other or any other variation I use, I can only get it to scatter one image all over, the rest get ignored...
Some how and old token had been copied over the download. Try now, also note that the distance is no longer in grid cells but the measured distance so if your squares are set to a distance of 5 and you want to spread it over 10 cells you need to specify 50 as the distance. This allows the scattering to happen in smaller steps if snap to grid is false.

fencewebdesign
Cave Troll
Posts: 56
Joined: Fri May 15, 2009 4:47 pm

Re: Copy Tokens with random pattern and Rotation.

Post by fencewebdesign »

Awesome! Just curious, did you ever look into the possibility of random scale too? Or is that not feasible? Either way much thanks:)

vertebrae8
Kobold
Posts: 6
Joined: Mon Jul 20, 2009 7:13 pm

Re: Copy Tokens with random pattern and Rotation.

Post by vertebrae8 »

When I click the link it does not download an rptok file, but it downloads a zip file. This zip file does not have an rptok file in there. I am lost in the sauce. Help?

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Copy Tokens with random pattern and Rotation.

Post by Azhrei »

Your browser is screwed up -- it's ignoring what the web server is telling it and making its own decision. And it's the wrong one. :(

Don't left-click on the link -- right-click and choose Save As instead.

vertebrae8
Kobold
Posts: 6
Joined: Mon Jul 20, 2009 7:13 pm

Re: Copy Tokens with random pattern and Rotation.

Post by vertebrae8 »

Sorry, still not working. Any other ideas? Thanks.

User avatar
lmarkus001
Great Wyrm
Posts: 1867
Joined: Sat Mar 29, 2008 12:30 am
Location: Layfayette Hill, PA

Re: Copy Tokens with random pattern and Rotation.

Post by lmarkus001 »

If you are using Internet Explorer, just delete it (oh wait it is tied into the OS), so load up some other useful browser (how about Netscape 4 :-) ).

More seriously, Firefox has no issues making the link work.

@Azhrei,

This looks like a good post to move to the drop-in resources sub-forum.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Copy Tokens with random pattern and Rotation.

Post by Azhrei »

lmarkus001 wrote:More seriously, Firefox has no issues making the link work.
Yep, it's a browser bug. You can either (a) get a better browser, (b) find a work-around, or (c) hound Microsoft until they fix it (yeah, right!).

I could've sworn I'd heard of other people solving this problem so maybe trying searching the forum? Or since this is a common problem for IE users, you could also try a general Google search.
@Azhrei,

This looks like a good post to move to the drop-in resources sub-forum.
Done. Thanks. :)

User avatar
Venatius
Dragon
Posts: 256
Joined: Mon Feb 16, 2009 7:12 pm

Re: Copy Tokens with random pattern and Rotation.

Post by Venatius »

Holy-
I feel ashamed I did not even stop by this subforum to discover this beauty long ago. It would have made so many things so much easier.

User avatar
mfrizzell
Dragon
Posts: 762
Joined: Sat Feb 13, 2010 2:35 am
Location: California

Re: Copy Tokens with random pattern and Rotation.

Post by mfrizzell »

I'm probably doing something super stupid but when I use this it copies the tokens but does not place them anywhere. They all end up in the same square. I thought it wasn't doing anything at first. Any thoughts?
DCI/RPGA# 7208328396 Skype ID mfrizzell77
Characters:
Strabor - Dwarf Avenger 5th Level
Tikkanan - Human Warlock 2nd Level
----------------------------------------------------
"People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs."

mlangsdorf
Cave Troll
Posts: 40
Joined: Sun Apr 06, 2008 3:46 pm

Re: Copy Tokens with random pattern and Rotation.

Post by mlangsdorf »

I'm trying to use this with 1.3.b66 but it doesn't seem to want to start:

when I try the onCampaignLoad macro, I get:

   Invalid condition in IF(getLibProperty("showInitial")) roll option.       Statement options (if any): if(getLibProperty("showInitial"))       Statement Body : scatter.help()

then when I try the scatter macro, I get:

aaaLib:Scatter:
« scatter() = Invalid expression: scatter(). »

What am I doing wrong?

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Copy Tokens with random pattern and Rotation.

Post by wolph42 »

mlangsdorf wrote:I'm trying to use this with 1.3.b66 but it doesn't seem to want to start:
when I try the onCampaignLoad macro, I get:
Invalid condition in IF(getLibProperty("showInitial")) roll option. Statement options (if any): if(getLibProperty("showInitial")) Statement Body : scatter.help()
then when I try the scatter macro, I get:
aaaLib:Scatter:
« scatter() = Invalid expression: scatter(). »
What am I doing wrong?
This message is a very late reply on the question. But I just started using this (and am running into some problems) so here a breakdown:
- remove the aaa from the name and don't press oncampaignload (I tried that, didn't work) RELOAD CAMPAIGN.
- its not working properly in b75 so im now debugging it and will upload when ready
- also make sure the 'shape' is set to 'topdown' in the properties menu of the token

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Copy Tokens with random pattern and Rotation.

Post by wolph42 »

Ok attached an updated and debugged version.
log:
- distance is now in gridsize
- added option rotation: "none"
- added option Range of Size: 0 = medium, 1 = small, medium, large, 2 = etc.
- removed couple of bugs (which apparently appear in b?? and later) all concerning using token(obj): option, in stead of function(parameters, obj)
Attachments
LibScatter Wolph42 update.rptok
(45.15 KiB) Downloaded 156 times

mlangsdorf
Cave Troll
Posts: 40
Joined: Sun Apr 06, 2008 3:46 pm

Re: Copy Tokens with random pattern and Rotation.

Post by mlangsdorf »

Thanks, it's working now. Very nice.


Post Reply

Return to “Drop-In Macro Resources”