[FREQ 1.4] 'Area' in copyToken

Developer discussion regarding MapTool 1.4

Moderators: dorpond, trevor, Azhrei

Forum rules
Posting now open to all registered forum users.
Post Reply
User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

[FREQ 1.4] 'Area' in copyToken

Post by wolph42 »

Is it possible to add an 'area' in the 'updates' parameter of Wiki: copyToken(). it would look like this:
{"area":[{"x":2,"y":2},{"x":2,"y":3},{"x":3,"y":2},{"x":3,"y":3},{"x":4,"y":2},{"x":4,"y":3}]}
The area parameter would need to be complient with the useDistance parameter (so '0' would interpret the array as grid coords, '1' would interpret the array as pixel coords).

User avatar
aliasmask
RPTools Team
Posts: 9029
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: [FREQ 1.4] 'Area' in copyToken

Post by aliasmask »

So, instead of using a number of copies use Area?

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

Re: [FREQ 1.4] 'Area' in copyToken

Post by wolph42 »

aliasmask wrote:So, instead of using a number of copies use Area?
ah good point!! no actually I would suggest to put a number of copies at each given coordinate. But its up for debate, it could also become a completely redundant parameter IF area is used

Post Reply

Return to “MapTool 1.4”