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
UnitBirth.##unitName##->Create
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#' 2 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.
Note2: Where there is a single '#' (hashtag), there's supposed to be 2 of them, this forum just won't show all of them.
Basically, I want one single Event Macro to handle the UnitBirth:Create of the Unit Actors I have for all my custom units.
Using UnitBirth.unitName in the Event Macro does not make the Event Macro respond appropriately, when the Unit for an Unit Actor which has the Macro assigned to it spawns.
I thought maybe it'd be possible to get the Event Macro to respond to UnitBirth Events for different units, but it seems this is not the case.
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
#' 2 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.
Note2: Where there is a single '#' (hashtag), there's supposed to be 2 of them, this forum just won't show all of them.
Thanks for your time!
Basically, I want one single Event Macro to handle the UnitBirth:Create of the Unit Actors I have for all my custom units.
Using UnitBirth.
unitName
in the Event Macro does not make the Event Macro respond appropriately, when the Unit for an Unit Actor which has the Macro assigned to it spawns.I thought maybe it'd be possible to get the Event Macro to respond to UnitBirth Events for different units, but it seems this is not the case.
Any help/info would be greatly appreciated!
Thanks again.
WHy not just set the proper parent?
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!