Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Detecting Keys Pressed (EUDs)
Detecting Keys Pressed (EUDs)
Feb 21 2009, 2:27 am
By: Morphling
Pages: 1 2 37 >
 

Feb 21 2009, 2:27 am Morphling Post #1



This took so much time... :crazy: . All keys on the keyboard can be detected and holding two keys at the same time doesn't cancel the first one pressed. It's single player so if you have actions that affect gameplay like set deaths and create unit. It can be multiplayer if you use the actions like display text and leaderboard.

Note: The text file is not up to date.(text file was deleted) Download "Eud_Keys.scm" to see all of the keys triggers, both deaths and memory condition. WASD Movement is an example map of what you can do with these EUDs.

Attachments:
Eud_Keys.scm
Hits: 218 Size: 27.47kb
WASD Movement.scx
Hits: 134 Size: 47.46kb

Post has been edited 16 time(s), last time on Nov 18 2009, 1:35 am by Morphling.



None.

Feb 21 2009, 4:15 am Elvang Post #2



Thanks for the list. A couple notes, one of 'none' entries is actually shift, another is Pause/Break. For some reason two entries will detect Num_5, and your missing all the number pad numbers (Num_X). I had a list of the additions all typed up in a reply, will add it later as the browser crashed when I made it halfway through the list and I'm pissed off at starforge atm :( .



None.

Feb 21 2009, 4:18 am Morphling Post #3



If it was a None* it's because I assumed. If it was just a plain None, then I missed it.
As for the number pad, I have a laptop.... so no dice.
Edit: I made a little map with the triggers in it.
Edit: Map wouldn't work with "D"

Post has been edited 2 time(s), last time on Feb 21 2009, 3:21 pm by Morphling.



None.

Feb 21 2009, 3:12 pm Pigy_G Post #4



Wow morph, you did an excellent job. So many keys. This really opens a new window for spellcasting and hotkeys. I'm very proud of you morph.



None.

Feb 21 2009, 3:23 pm Morphling Post #5



Okay fixed map. Also with further testing with meh friend pigy_g we have found it does work with multple people. :D :D :D



None.

Feb 21 2009, 3:43 pm Hug A Zergling Post #6



This must of taken forever! Good job! ^^



None.

Feb 21 2009, 3:44 pm Morphling Post #7



Quote from Hug A Zergling
This must of taken forever! Good job! ^^
Thanks. ^^

Post has been edited 1 time(s), last time on Jun 9 2009, 11:08 pm by Morphling.



None.

Feb 21 2009, 3:46 pm Keirebu Post #8



So I could make some triggers like

Player One

-EUD Condition for Keyboard Key here

-My Random Action/Ability/Spell?

AND like

Player Two

-EUD Condition for Keyboard Key here

-My Random Action/Ability/Spell?

At the same time? :O

Would anyone get dropped Etc?



None.

Feb 21 2009, 3:47 pm Biophysicist Post #9



How does it work in multiplayer? Anything special you have to do?

Also: Gj on the leetness. :D



None.

Feb 21 2009, 3:49 pm Morphling Post #10



Quote from name:James Buchanan
How does it work in multiplayer? Anything special you have to do?

Also: Gj on the leetness. :D
No, nothing special you have to do. If you read my first post I stated that I just assumed it was single player.
As for how, I'm just guessing it works because you can type text in mutliplayer and it doesn't drop you so therefore detecting it shouldn't. However it's just a guess.



None.

Feb 21 2009, 3:51 pm Keirebu Post #11



This can revolutionize alot of mapping... Lets just hope Blizzard stop's updating SC lol, This can open doors to SO many things!



None.

Feb 21 2009, 4:09 pm Morphling Post #12



Quote from Keirebu
So I could make some triggers like

Player One

-EUD Condition for Keyboard Key here

-My Random Action/Ability/Spell?

AND like

Player Two

-EUD Condition for Keyboard Key here

-My Random Action/Ability/Spell?

At the same time? :O

Would anyone get dropped Etc?
Yes, it does work for specific players. It is not universal, meaning if player one presses F the trigger would only work for player one not the other players.



None.

Feb 21 2009, 5:05 pm stickynote Post #13



Dude. I. Love. You. This. Is. So. Awesome. Enough said.

EDIT: Question. If you needed to detect the "A" key for player 1, would you run the trigger for player 1, but in the conditions have the deaths for player 2?



None.

Feb 21 2009, 5:27 pm Morphling Post #14



Quote from stickynote
Dude. I. Love. You. This. Is. So. Awesome. Enough said.

EDIT: Question. If you needed to detect the "A" key for player 1, would you run the trigger for player 1, but in the conditions have the deaths for player 2?
Yes have the trigger owned by Player one but the deaths would be for player 2.
I'm doing some more testing. I'll get back to you on it.



None.

Feb 21 2009, 5:32 pm stickynote Post #15



Hey morphling. Something I just thought of. If the player is typing something to another player, or if they use a hotkey, wouldn't that set off the spell?



None.

Feb 21 2009, 5:33 pm Pigy_G Post #16



Yep, Weather or not you have text open. Caps on or not, Letter's still activate. For Keypad, you can toggle number lock and use the arrows and various buttons on there aswell.



None.

Feb 21 2009, 5:39 pm Morphling Post #17



Quote from stickynote
Hey morphling. Something I just thought of. If the player is typing something to another player, or if they use a hotkey, wouldn't that set off the spell?
I can detect enter. So just set a dc when they do. And make sure eveything activates when you don't press enter.
Edit: With some testing, I found out that almost every action will cause players to drop except display text, set leaderboard, play wav, mute, and unmute.
I should have known these euds were to good to be true. They would still make a kick-ass one player map.

Post has been edited 3 time(s), last time on Feb 21 2009, 7:05 pm by Morphling.



None.

Feb 21 2009, 7:14 pm BlueWolf Post #18



With such few actions, it is still possible to make a hangman game out of it.



None.

Feb 21 2009, 7:16 pm Kaias Post #19



Quote from Morphling
Quote from stickynote
Hey morphling. Something I just thought of. If the player is typing something to another player, or if they use a hotkey, wouldn't that set off the spell?
I can detect enter. So just set a dc when they do. And make sure eveything activates when you don't press enter.
You'd also have to detect escape and the lag window, if it was multiplayer, but that doesn't really matter since it doesn't work for multiplayer.

Quote from Morphling
Edit: With some testing, I found out that almost every action will cause players to drop except display text, set leaderboard, play wav, mute, and unmute.
I should have known these euds were to good to be true. They would still make a kick-ass one player map.
Of course



None.

Feb 21 2009, 7:28 pm Devourer Post #20

Hello

Epic, thank you for that map.



Please report errors in the Staredit.Network forum.

Options
Pages: 1 2 37 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: Roy