- Joined
- Dec 16, 2006
- Messages
- 9
I have a bunch of Unit Actors which all have their own specific Actor Events each.
However, these Unit Actors do not contain any of their
messages, so they will not show up for their Units. (I forgot to initially add it)
Now, since it is possible to make a reference to an Actor's token (using ##unitName###, or ##id##) I thought it might be a good idea to create an Event Macro containing the aforementioned Actor Creation message (using the ##unitName## reference) in the hope that it will be able to get the appropriate 'unitName' value for each of the Actors which the Event Macro would be added to.
The amount of Actors I have makes it hard for me to consider: copy/pasting & making adjustments in the Events dialog for each single one of them.
A lot of repetitive work, and this would be just to get my Actors to show up.
In this case, it seems as if it's -almost- possible, to just use a single Event Macro which can make sure that any of its Host Actors will be created whenever the Unit is born.
This also makes me wonder whether there are more references or tags that can be used. So far it seems we can refer to tokens by using the '##tokenId##' 3 hashtags around a Token's ID.
Note: The references I wrote about are sometimes seen in default values for existing units, they are only insertable in 'View Raw Data' mode.
Thanks for your time!
However, these Unit Actors do not contain any of their
Code:
UnitBirth.##unitName## -> Create
Now, since it is possible to make a reference to an Actor's token (using ##unitName###, or ##id##) I thought it might be a good idea to create an Event Macro containing the aforementioned Actor Creation message (using the ##unitName## reference) in the hope that it will be able to get the appropriate 'unitName' value for each of the Actors which the Event Macro would be added to.
The amount of Actors I have makes it hard for me to consider: copy/pasting & making adjustments in the Events dialog for each single one of them.
A lot of repetitive work, and this would be just to get my Actors to show up.
In this case, it seems as if it's -almost- possible, to just use a single Event Macro which can make sure that any of its Host Actors will be created whenever the Unit is born.
This also makes me wonder whether there are more references or tags that can be used. So far it seems we can refer to tokens by using the '##tokenId##' 3 hashtags around a Token's ID.
Note: The references I wrote about are sometimes seen in default values for existing units, they are only insertable in 'View Raw Data' mode.
Thanks for your time!