Hi, I'm wondering what the purpose of this forum is, is it just to let other mappers know of issues with the editor and confirm bugs before reporting them? Blizzard won't see anything posted here will they?
Anyways, on to the bug. I have some Unit variables set up in my Trigger editor. In the Event "Unit enters/leaves Range of Unit", I am able to set the first unit to one of my unit variables. However, when I try to set the second unit in the event, there are no variables listed in the window, nor is there the 'preset' value "All Units" which appears when selecting the first unit. The only thing I can set the second unit in the event to is a preset unit placed on the map using the terrain editor, or a function.
Screenshots:
Selecting the first unit for the event:
Selecting the second unit for the event:
I found I could work-around this bug by converting my Unit variable into a Unit Group and then take the first unit from that Unit Group and use that as the Unit for my event, but this double conversion obviously shouldn't be necessary.
You can't use non constant variables in events when using the GUI. Events are registered as soon as your map starts up, meaning they can't change throughout the course of gameplay. If you make your variable a constant, it will show up in the event dialog. However, this does little more than manually selecting the unit in the event dialog itself.
If you want your event to respond to different units throughout the progression of the game, you need to take a different approach. One method to consider is attaching a point and using the Enters distance from Point event. Other ways involve custom scripting.
Its not supposed to be used. Event never use variable, If you can stick one (not constant) it will only use its initial value, as a constant. Changing the var later will not change how the event listen
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi, I'm wondering what the purpose of this forum is, is it just to let other mappers know of issues with the editor and confirm bugs before reporting them? Blizzard won't see anything posted here will they?
Anyways, on to the bug. I have some Unit variables set up in my Trigger editor. In the Event "Unit enters/leaves Range of Unit", I am able to set the first unit to one of my unit variables. However, when I try to set the second unit in the event, there are no variables listed in the window, nor is there the 'preset' value "All Units" which appears when selecting the first unit. The only thing I can set the second unit in the event to is a preset unit placed on the map using the terrain editor, or a function.
Screenshots:
Selecting the first unit for the event:
Selecting the second unit for the event:
I found I could work-around this bug by converting my Unit variable into a Unit Group and then take the first unit from that Unit Group and use that as the Unit for my event, but this double conversion obviously shouldn't be necessary.
You can't use non constant variables in events when using the GUI. Events are registered as soon as your map starts up, meaning they can't change throughout the course of gameplay. If you make your variable a constant, it will show up in the event dialog. However, this does little more than manually selecting the unit in the event dialog itself.
If you want your event to respond to different units throughout the progression of the game, you need to take a different approach. One method to consider is attaching a point and using the Enters distance from Point event. Other ways involve custom scripting.
@AzothHyjal: Go
So then I guess the bug would be that it is allowing me to select a variable for the first unit in the event.
@BlacRyu: Go
There is no bug; you can use variables but they must be constants.
@AzothHyjal: Go
Neither of the variables in my first screenshot were constant.
That's part of what confused me, as I said it let me use my variables for one of the units in the event, but not for the other unit.
@BlacRyu: Go
Its not supposed to be used. Event never use variable, If you can stick one (not constant) it will only use its initial value, as a constant. Changing the var later will not change how the event listen