PDA

View Full Version : Token Locking



Visvalor
May 2nd, 2011, 06:14
Is there any way to lock variables into a token so when you drop a token in a token box it will transfer the variable?

Moon Wizard
May 2nd, 2011, 18:59
The only information that is transferred on token drop from the token box is the name of the token.

When tokens are dragged from different sheets within the ruleset, other behaviors can be programmed into the ruleset or via extensions. One example is the combat tracker which allows a token to be dragged from the tracker onto a map and be linked together.

What are you trying to do?

Thanks,
JPG

Visvalor
May 3rd, 2011, 02:51
Create a setup where generic control 1 has a token, that can be dragged to generic control 2. When this happens control 1 has an ability score or so that gets deleted and moved into control 2 and vice versa

(For inventory and loot controls)

Moon Wizard
May 7th, 2011, 23:08
It sounds like you are better off creating a custom drag and drop object type. Then, you assign the token as the icon for the dragged object, but the underlying object contains a lot more data.

There are several examples of this behavior across the various rulesets out there (including 4E and 3.5E). Just look for any script with the onDrag function in a ruleset.

Regards,
JPG