FFU Rotate Tile - ironmonk108/monks-module-wiki GitHub Wiki
Rotates one or more tiles to an absolute angle or by a relative amount, featuring smooth animation across the 0°/360° boundary.
This is FoundryFan's fix for the rotation bug that occurs with the normal Rotation action. -Crow

Use this to directly rotate an entity; the following entity types are able to be targeted.

Use this to rotate the tile itself.

Use this to rotate the current tile collection.

Use this to rotate all entities of a valid type with a Tag matching your Use Tagger settings.
- Tiles Tagger
- Use
+and-to set or modify your rotation. Space is Important. - Accepts Dice Notation to rotate a random amount.
+ [[1d6]] - Accepts Handlebar Expressions to rotate an amount equal to a stored variable.
+ {{variable.valuename}} - Accepts ternary operator to toggle between two values,
10and20in the following example:= ({{entity.rotation}} || 0) == 10 ? 20 : 10 - Accepts clamp function;
= Math.clamp(({{entity.rotation}} + 10), 150, 200). -
$\color{yellow}{\textsf{Important}}$ : Foundry handles rotation by normalizing the value that gets set in rotation before it gets sent to the animation. So if your value is180or greater, it will instead animate the rotation in the shortest way possible; the opposite direction that you have set with the operator. A value of360will result in no rotation at all.
The total time in seconds for the rotation animation to complete.
- Default is
5seconds. - Set to
0for an instantaneous snap rotation.
- Alter can also be used to rotate an entity without a rotation animation.
- Requires FoundryFan Utilities to be installed and active.
- Any issues with this action should be logged with FoundryFan Utilities.
- Foundry 13.360
- MATT 13.06
- FoundryFan Utilities 1.5.0