[skip all navigation]

Detecting Keys Pressed (EUDs), Took forever....

Pages: 1 2 3 » 7 >
Creator: Morphling
Time: Feb 21 2009, 2:27 am

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

[Avatar]
offlinecontact
Rank: Regular
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:
scm file
Eud_Keys.scm (27.47 kb)
199 hits.
scx file
WASD Movement.scx (47.46 kb)
124 hits.
This post was edited 16 times, last edit by Morphling: Nov 18 2009, 1:35 am.

Top

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

[Avatar]
offlinecontact
Rank: Member
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 :( .

Top

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

[Avatar]
offlinecontact
Rank: Regular
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"
This post was edited 2 times, last edit by Morphling: Feb 21 2009, 3:21 pm.

Top

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

[Avatar]
bannedcontact
Rank: Member
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.

Top

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

[Avatar]
offlinecontact
Rank: Regular
Okay fixed map. Also with further testing with meh friend pigy_g we have found it does work with multple people. :D :D :D

Top

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

[Avatar]
offlinecontact
Rank: Regular
This must of taken forever! Good job! ^^

Top

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

[Avatar]
offlinecontact
Rank: Regular
Quote from Hug A Zergling
This must of taken forever! Good job! ^^
Thanks. ^^
This post was edited 1 time, last edit by Morphling: Jun 9 2009, 11:08 pm.

Top

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

[Avatar]
offlinecontact
Rank: Member
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?

Top

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

[Avatar]
:(){ :|:& };:
offlinecontact
Rank: Regular
How does it work in multiplayer? Anything special you have to do?

Also: Gj on the leetness. :D

Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam.
Top

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

[Avatar]
offlinecontact
Rank: Regular
Quote from 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.

Top

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

[Avatar]
offlinecontact
Rank: Member
This can revolutionize alot of mapping... Lets just hope Blizzard stop's updating SC lol, This can open doors to SO many things!

Top

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

[Avatar]
offlinecontact
Rank: Regular
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.

Top

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

[Avatar]
offlinecontact
Rank: Regular
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?

Top

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

[Avatar]
offlinecontact
Rank: Regular
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.

Top

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

[Avatar]
offlinecontact
Rank: Regular
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?

Top

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

[Avatar]
bannedcontact
Rank: Member
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.

Top

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

[Avatar]
offlinecontact
Rank: Regular
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.
This post was edited 3 times, last edit by Morphling: Feb 21 2009, 7:05 pm.

Top

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

[Avatar]
offlinecontact
Rank: Regular
With such few actions, it is still possible to make a hangman game out of it.

Top

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

[Avatar]
offlinecontact
Rank: Veteran
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

Top

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

[Avatar]
Back in action!
offlinecontact
Rank: Veteran
Epic, thank you for that map.

(user posted image)
Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[06:15 am]
Azrael -- Anime North is awesome :D
[04:43 am]
Wing Zero -- with that he can spam his shit all day long.
[04:42 am]
Wing Zero -- the one item i would reccomend for him would be athenes
[04:42 am]
Wing Zero -- told ya
[04:33 am]
Dem0n -- Yep. Xerath is fucking broken on ARAM.
[04:23 am]
Fire_Kame -- Why can't i have the most useless thread award
[04:22 am]
Fire_Kame -- You're obviously bias because you like Sac more than me.
Please log in to shout.