I have a question, is there a way to make two auras with the same color to mix when they intercept each other, so the mixing part is darker? It would be even better if you could change the aura color with a variable, but right now I just know how to change a color in campaign preferences, not with code.
I was trying to differentiate every aura, maybe there is another way but I still don't know how.
two auras mixing when intercepting
Moderators: dorpond, trevor, Azhrei
Re: two auras mixing when intercepting
Auras use the rgb colors so, if you have one red aura FF0000 and one blue aura 0000FF then they become FF00FF (magenta). Of course, the auras have transparency so they don't look exactly like the rgb color and the color will be affected by the background color.
- Attachments
-
- aura example.jpg (14.95 KiB) Viewed 775 times
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: two auras mixing when intercepting
Yes that is perfect and really useful, but is there a way for two auras with the same color to mix to a darker color?
And, is there a way to change the aura color with a variable and macros?
And, is there a way to change the aura color with a variable and macros?
Re: two auras mixing when intercepting
Another really useful option would be to show a black line at the end of the aura, so when two auras with the same color mix, you still can see the limits of both auras.
Re: two auras mixing when intercepting
Lights in general are pretty limited and then add that they are computer resource heavy and can cause some lag if overdone. I use these to show different darknesses:
Stacking each one makes it get darker, so dim + dark is darker than dim... add magical darkness and its the darkest.
You can't use macros to change an existing aura but you can use macros to turn them off and on using setLight().
I would also like an aura where it shows the border with potentially a different color and transparency.
Code: Select all
Deeper Darkness (magical) - 60: aura circle 62.5#000011 lumens=1
Deeper Darkness (dark) - 60: aura circle 62.5#000022 lumens=1
Deeper Darkness (dim) - 60: aura circle 62.5#000000 lumens=1
You can't use macros to change an existing aura but you can use macros to turn them off and on using setLight().
I would also like an aura where it shows the border with potentially a different color and transparency.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: two auras mixing when intercepting
Thanks, that is interesting.
Do you know a way to config all new tokens to be top down "by default"?
Do you know a way to config all new tokens to be top down "by default"?
Re: two auras mixing when intercepting
MT looks at a tokens shape and guesses whether to use circle, square or top down. I suppose the right token border could do that. You can also create a token property to change the shape. Something like
Code: Select all
*setShape:[H: setTokenShape("TOP DOWN")][H: setShape = ""]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: two auras mixing when intercepting
That s h i t works!! Thanks!aliasmask wrote: ↑Tue Oct 08, 2019 7:20 pmMT looks at a tokens shape and guesses whether to use circle, square or top down. I suppose the right token border could do that. You can also create a token property to change the shape. Something like
This would run only once when the token is moused over and won't show up in the stat sheet.Code: Select all
*setShape:[H: setTokenShape("TOP DOWN")][H: setShape = ""]