I use this as well, for a few custom hotkeys. I have noticed no problem with it. I assume though, if a player were to hold down a key, and the trigger had a fair bit of goings-on, it could absolutely cause lag. You can check the average run time of a trigger by testing from the editor with the trigger debugger opened (can be set up in preferences in the editor). Thought it cannot show anything for network lag; it shows you trigger run time. When I am curious as to whether something may lag online, i run the trigger through a loop 10X times what it would normally run. If there is "trigger lag" I assume it would be noticeable in online play, and try to make it faster.
my personal experience with key pressed event is lag, because whenever ANY (even if you set it to player X) player presses a key it must be synchronized with all players.
maybe this has changed with latest patches.
btw you can add hotkeys with UI-editor <shortcut value ="X"/>. just create an invisible button, set hotkey in UI-editor, hook it up in triggers, use dialog item used event.
I keep hearing about the UI Editor, but I am running OSX. The Mac SC2 editor is slightly different from windows so I'm not sure if what I'm seeing is the same as what windows users have. There are definitely differences between SC2 editor in windows versus mac as I have seen through videos.
The only UI editor that I am aware of in the Mac client does not have any sort of area for editing or hard coding hotkeys in. It simply shows a gigantic list of UI frames and dialog items for in game menus. When I run a search for hotkeys, all that pops up is HotkeyDialog.
I do not see any file associated with general or even built in "Hotkeys". I also hear about the Hotkeys.txt file yet I've been unable to find that either.
Just not sure where to hard code the <shortcut value ="X"/>
Actually that is the case... My current event with player presses key is
UI - Player Any Player presses F1 key Down with shift Allow, control Allow, alt Allow
I'll be messing around with the UI for a while... Thanks for the heads up on the buggy and crashiness. The Battle.net changelog and patch information is also buggy. Crashes every time you press the enter key to input more information.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I saw a warning by blizzard inside the SC2 trigger editor under the event "Player presses key".
I've been using this event to fire some of my own custom hot keys. Now I'm wondering if it might actually cause lag in my game.
Anyone experienced lag in their games using that event?
I use this as well, for a few custom hotkeys. I have noticed no problem with it. I assume though, if a player were to hold down a key, and the trigger had a fair bit of goings-on, it could absolutely cause lag. You can check the average run time of a trigger by testing from the editor with the trigger debugger opened (can be set up in preferences in the editor). Thought it cannot show anything for network lag; it shows you trigger run time. When I am curious as to whether something may lag online, i run the trigger through a loop 10X times what it would normally run. If there is "trigger lag" I assume it would be noticeable in online play, and try to make it faster.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
my personal experience with key pressed event is lag, because whenever ANY (even if you set it to player X) player presses a key it must be synchronized with all players.
maybe this has changed with latest patches.
btw you can add hotkeys with UI-editor <shortcut value ="X"/>. just create an invisible button, set hotkey in UI-editor, hook it up in triggers, use dialog item used event.
@FunkyUserName: Go
I keep hearing about the UI Editor, but I am running OSX. The Mac SC2 editor is slightly different from windows so I'm not sure if what I'm seeing is the same as what windows users have. There are definitely differences between SC2 editor in windows versus mac as I have seen through videos.
The only UI editor that I am aware of in the Mac client does not have any sort of area for editing or hard coding hotkeys in. It simply shows a gigantic list of UI frames and dialog items for in game menus. When I run a search for hotkeys, all that pops up is HotkeyDialog.
I do not see any file associated with general or even built in "Hotkeys". I also hear about the Hotkeys.txt file yet I've been unable to find that either.
Just not sure where to hard code the <shortcut value ="X"/>
yes that's the right one, create a new layout file. do some UI-editor tutorials here on mapster, you will then be able to do what i suggested.
@FunkyUserName: Go
Cool thanks!
Just a heads-up that the UI editor (at least on mac) is extremely buggy and crashy. You're in for a good time!
Rather than the any key pressed event, you can set it to a specific key, can't you? As the event, if Y is pressed?
I know I use a key for this to close all dialog windows with C. And it doesn't cause lag in my game online.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
@GlornII: Go
Actually that is the case... My current event with player presses key is
UI - Player Any Player presses F1 key Down with shift Allow, control Allow, alt Allow
I'll be messing around with the UI for a while... Thanks for the heads up on the buggy and crashiness. The Battle.net changelog and patch information is also buggy. Crashes every time you press the enter key to input more information.