I'm not exactly familiar with what is and isn't possible using JASS, but today while working on stuff I ran into a problem that is quite annoying. Blizzard doesn't have a premade Event Response - Selected Unit, and I was wondering if it would be possible to make my own after converting to custom text.
While I'm on these boards with so many smart people, I might as well ask another question of mine. Sometimes when I make triggers I find that variables of mine don't show up in dropdown menus when I feel they should. The very same trigger above has this problem. Event: Player X selects a unit. I have quite a few "player" variables but none of them show up. So just to check I made a playercolor and playergroup variable to see if they would show up, of course, they don't either.
Annoyed, I changed the trigger to custom text and made it use my global veriable. I'm not sure if Blizzard doesn't want you using your variables or what, but hopefully that isn't the case and this will work.
Any explanations or ideas as to why the WE does this?
While I'm on these boards with so many smart people, I might as well ask another question of mine. Sometimes when I make triggers I find that variables of mine don't show up in dropdown menus when I feel they should. The very same trigger above has this problem. Event: Player X selects a unit. I have quite a few "player" variables but none of them show up. So just to check I made a playercolor and playergroup variable to see if they would show up, of course, they don't either.
Annoyed, I changed the trigger to custom text and made it use my global veriable. I'm not sure if Blizzard doesn't want you using your variables or what, but hopefully that isn't the case and this will work.
Code:
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_NokThaloose, udg_WhoownsNok, true )
Any explanations or ideas as to why the WE does this?