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.
[2023-12-09. : 1:16 am]
NudeRaider -- Dem0n
Dem0n shouted: who said you were crossing a line
NT kinda did Ultraviolet
Ultraviolet shouted: I always thought it was kind of messed up to impersonate someone without their permission, but I guess that's artistic license for you. When you get into the realm of using AI to do it.. it seems even worse to me, but I'm not sure why
[2023-12-08. : 8:38 pm]
Zoan -- and tbh no, this is exactly the type of thing ai should be used for. Now if you were monetizing it, I would say you should emohasize you used ai for the voicelines
[2023-12-08. : 8:29 pm]
Zoan -- he asked if "am I now crossing a line"
[2023-12-08. : 7:43 pm]
Dem0n -- who said you were crossing a line
[2023-12-08. : 2:24 pm]
Oh_Man -- but if i want to make a LOTR map and use AI generation to give aragorn etc more voice lines am I now suddenly crossing a line? wen did we get so snowflakey
[2023-12-08. : 2:23 pm]
Oh_Man -- well we been doing dodgy stuff in SC for ages playing resident evil and helms deep maps - we dont own the rights to them
[2023-12-06. : 8:46 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet absolutely. You can count me among those folks. ;) But I understand it. It's a silly name only kids find funny. However to know that and still own it that would be the manliest move in my eyes.
Yeah, I can appreciate that perspective. I've used so many handles over the years, I think I had less attachment to NerdyTerdy than some of the folks here. Just never changed my name much here cause it was expensive :P I still kind of like the NT name, but definitely prefer Ultraviolet. I think UV has been my handle for around half my life at this point O.o
[2023-12-06. : 6:34 pm]
NudeRaider -- So the question is will we as a society become resilient against these forms of attacks? Either by detecting or accepting? Find new ways to deal with it? I guess we will have to wait and see.
[2023-12-06. : 6:32 pm]
NudeRaider -- da real donwano
da real donwano shouted: Society is not ready for the AI power we're being given. I'll die on that hill.
"social media" is imo a much better example for "society was not ready for it". We haven't seen yet where AI will lead us. It has a lot of potential for good, but then again, so had social media. For now the only potential for abuse in AI that I see is in forgery of various kinds.
[2023-12-06. : 6:26 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: guys what are your thoughts on AI voice cloning vs someone doing impressions. why is one moral and the other immoral? or do you think both are fair game
For me it's the intent that make the difference, not the method. If you copy someone for profit or harm, then that's immoral. If your goal is satire then all bets are off. I think people are just afraid to be deceived because AI removes skill from the equation and painting AI usage as immoral is their weak attempt to defend against it.
Please log in to shout.


Members Online: Wing Zero