Changing token's layout using makro

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

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

Post Reply
oblisgr
Giant
Posts: 132
Joined: Mon Aug 01, 2011 6:43 am
Location: Crete,Greece
Contact:

Changing token's layout using makro

Post by oblisgr »

Is there any command to change tokens layout using a makro?
Thanks
High Templar of Ur

User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: Changing token's layout using makro

Post by Jagged »

Do you mean setTokenShape?

oblisgr
Giant
Posts: 132
Joined: Mon Aug 01, 2011 6:43 am
Location: Crete,Greece
Contact:

Re: Changing token's layout using makro

Post by oblisgr »

Nah! I mean changing the token's appearance.
For example, it is an elf token, and change it in werewolf token.
The layout image.

-------------------------------------------
EDIT.

Nevermind i found out that i could make changes using states.
Thanks
High Templar of Ur

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

Re: Changing token's layout using makro

Post by wolph42 »

yup, thats possible, both aliasmask and me have created a polymorph function in our macro set. mine you can access by downloading and installing the bag of tricks, link in sig.

User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: Changing token's layout using makro

Post by Jagged »

You can very easily switch the token image
setTokenImage

oblisgr
Giant
Posts: 132
Joined: Mon Aug 01, 2011 6:43 am
Location: Crete,Greece
Contact:

Re: Changing token's layout using makro

Post by oblisgr »

What i actually wanted to make is a random generating terain consisting of different tiles.
Traps, normal, holes, treasure, wall etc.

So I created same tokens (with dirt image) and added a makro on each one.
The makro rolls 1d32 (32 different dungeon tile images) and when running the makro it chooses 1 of 32 random images and apply it on the token as state (complete new image). Then moving (using the makro) the whole token on object layer (so character token be above it) and vuala i get random dungeon tiles.

Its like the character is exploring through dark discovering new rooms or digging the dirt discovering new rooms.
Each time i get a different dungeon.
High Templar of Ur

User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: Changing token's layout using makro

Post by Jagged »

Wolph42 has built exactly that!

oblisgr
Giant
Posts: 132
Joined: Mon Aug 01, 2011 6:43 am
Location: Crete,Greece
Contact:

Re: Changing token's layout using makro

Post by oblisgr »

Jagged wrote:Wolph42 has built exactly that!
Ye, cool one.
Mine is simpler.
High Templar of Ur

Post Reply

Return to “Macros”