- Joined
- Aug 29, 2004
- Messages
- 159
Hi guys,
I need to make a trigger which goes something like this:
Event: A unit comes within 500 of Demon[IntegerA]
Conditions:
Actions: Create 1 Energy[Level of (Energy) for Demon[IntegerA]]
...and more code
However, there doesnt seem to be an event like i'm looking for (ie referencing to a unit-array variable). The 'Unit comes withing range' event only seems to be able to reference already existing units, or the preset 'no unit'. Is there any way to make it reference a unit which does not already exist when i make the map (ie a unit created in-game)? How do i get around this probelm
Oh and is using Demon[IntegerA] the correct way to reference a unit-array from another trigger? So in the other trigger the action is "Set Demon[(Player number of (Owner of (Casting unit)))] = Casting Unit", will Demon[IntegerA] reference to this unit in a second/subsequent trigger?
Hope that made sense
Thanks for help,
Bort
I need to make a trigger which goes something like this:
Event: A unit comes within 500 of Demon[IntegerA]
Conditions:
Actions: Create 1 Energy[Level of (Energy) for Demon[IntegerA]]
...and more code
However, there doesnt seem to be an event like i'm looking for (ie referencing to a unit-array variable). The 'Unit comes withing range' event only seems to be able to reference already existing units, or the preset 'no unit'. Is there any way to make it reference a unit which does not already exist when i make the map (ie a unit created in-game)? How do i get around this probelm
Oh and is using Demon[IntegerA] the correct way to reference a unit-array from another trigger? So in the other trigger the action is "Set Demon[(Player number of (Owner of (Casting unit)))] = Casting Unit", will Demon[IntegerA] reference to this unit in a second/subsequent trigger?
Hope that made sense
Thanks for help,
Bort