Importing blizzard.j and commons.j and other to get keyboard events!

lbebusiness

New Member
Reaction score
3
Can any one explain this?:
JASS:
        else
            // Unrecognized key - ignore the request and return failure.
            return null

or this?:
JASS:
WESTRING_UEVAL_UHOT=Hotkey

eval hotkey?

or this?
Code:
ESC Hotkey=512
that was from hotkey file...
 

saw792

Is known to say things. That is all.
Reaction score
280
1. Jass requires a return value outside of if/thens in case the condition is not fulfilled and nothing can be returned. That's why that is there.

2. It's just a string...

3. Used internally by the game engine. The index means nothing to us.
 

Azlier

Old World Ghost
Reaction score
461
JASS:
// Unrecognized key - ignore the request and return failure.


That's used in plenty of BJ functions. It's used if the user calls the function but doesn't supply a valid key. That way, you don't get ridiculous errors.
 

lbebusiness

New Member
Reaction score
3
thanks. now know something new. should of thought of it standard error handling for those who SHOULDN'T be jassing :p :rolleyes:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top