Detecting Keys Pressed (EUDs), Took forever....
Post #83
rockz
Nov 18 2009, 11:55 pm
|
お や す み
|
The easiest way to prevent single player cheats is to play in multiplayer, unless you want to use the "pause game" feature.
You can't turn off the leaderboard once it's on (I don't think). ![]() ![]() ![]() ![]() ![]() ![]() This is a great wallpaper to use if you want to go into an epileptic fit every time you sit down in front of your laptop, which I guess is a better option than watching Naruto.
|
Post #86
rockz
Nov 19 2009, 1:53 am
|
お や す み
|
press "left" key.
Condition detects pressing "left" key, running action. Action orders unit to move to the left, probably based on a mobile grid. Note that moving units is an illegal action, and will desync, so that's single player only. ![]() ![]() ![]() ![]() ![]() ![]() This is a great wallpaper to use if you want to go into an epileptic fit every time you sit down in front of your laptop, which I guess is a better option than watching Naruto.
|
Post #87
Morphling
Nov 19 2009, 2:41 am
Post #90
ImagoDeo
Nov 23 2009, 7:35 pm
|
Back! Maybe.
|
All right, I have a few questions.
How long does the game store the memory of a key being pressed? If it's instantaneous, or only lasts until the player stops holding the key down, it seems pretty useless. I was thinking of using EUD key detection to tell a player what spell he or she is about to cast, or perhaps use it for spell information by having them type out 'spell information,' or something like that. How would I go about checking for strings of characters? Does the memory last long enough to check that? Would it fail to work if you typed it too slowly? ![]() ![]() ![]() ![]() ![]() ![]() "We live, as we dream - alone..."
-Marlow, Heart of Darkness |
Post #91
Heinermann
Nov 23 2009, 8:07 pm
Post #92
scwizard
Nov 23 2009, 8:14 pm
|
As long as the key is held down, the condition is true. Detecting what someone types would be tedius. You would need to set a switch or use death counts for each letter they pressed (for each stage of the full sentence). ![]() ![]() ![]() ![]() ![]() ![]() |
Post #93
samsizzle!
Nov 26 2009, 6:19 pm
|
As long as the key is held down, the condition is true. Detecting what someone types would be tedius. You would need to set a switch or use death counts for each letter they pressed (for each stage of the full sentence). I did this in one of my maps with the letters VIS and it would reveal the map. But it was quite tedious and it didn't work some of the time... ![]() ![]() ![]() ![]() ![]() ![]() |
Post #96
HCM™DavidJCobb
Dec 14 2009, 1:01 am
|
↑ STUDENT DRIVER ↑
|
This may sound like a dumb question, but what version of StarCraft does this apply to? (As in, what patch, and normal or Brood War?) I'm trying to keep track of two keys (Enter and E) and have found that SC crashes when I load the map. I loaded it in SC1.05 with Brood War.
As for detecting sentences, I think I have a method involving keycodes and binary countoffs... This method could possibly work with multiple (pre-defined) sentences. I'm trying to script it now. ![]() ![]() ![]() ![]() ![]() ![]() ░░░▒▒▒▓▓▓▓███▀▀░▄▄▄▄▄▄░▀▀███▓▓▓▓▒▒▒░░░ ░░▒▒▒▓▓▓████░▄██████████▄░████▓▓▓▒▒▒░░ ░▒▒▒▓▓▓████▐▀▀▀█████▀▀▀▀██▌████▓▓▓▒▒▒░ ░▒▒▓▓▓████▐░██░░███▌██░░░██░████▓▓▓▒▒░ ▒▒▒▓▓▓███▌▐░██▌░███▌███▌░██▌▐███▓▓▓▒▒▒ ▒▒▓▓▓████▌██▄▄▄▄████▄▄▄▄▄███▐████▓▓▓▒▒ ▒▒▓▓▓████▌██▀▀▀▀▀▀▀▀▀▀▀▀▀███▐████▓▓▓▒▒ ▒▒▓▓▓████▌███▌▓▒▓▒▓▒▓▒▒▒▌███▐████▓▓▓▒▒ ▒▒▒▓▓▓███▌▐██▌▒▓▒▓▒▒▒▒▒▒▌██▌▐███▓▓▓▒▒▒ ░▒▒▓▓▓████░███▐▒▓▒█████▌███░████▓▓▓▒▒░ ░▒▒▒▓▓▓████░▀██▄▀▀▀▀▀▀▄██▀░████▓▓▓▒▒▒░ ░░▒▒▒▓▓▓████▄░▀▀██████▀▀░▄████▓▓▓▒▒▒░░ ░░░▒▒▒▓▓▓▓█████▄▄▄▄▄▄▄▄█████▓▓▓▓▒▒▒░░░ |
Post #98
HCM™DavidJCobb
Dec 14 2009, 3:03 am
|
↑ STUDENT DRIVER ↑
|
Ah, so I need to upgrade to the current version. Thanks
By the way, I finished my system for detecting sentences. I haven't triggered it yet, but it is quite the abomination! It would take about 36 DCs, two switches, and 682 triggers (not including the EUDs)! The idea was to make a system where you could store a predefined string (converted into charcodes) into a set of 32 death counters, which essentially act as an array. The trigger system would simply watch for keypresses and keep track of where we are in the target string, and what charcode to watch for next. I actually can't describe it in prose... I have a kind of weird JS-like pseudocode for it. It's long because it uses a LOT of binary countoffs to check for equality between death counters. (If there were some better way to check if two death counters are equal, that would likely make this system far more efficient and worthwhile to implement.) So here it is, for anyone who wants to waste a few days triggering it. It's probably not worth the effort. EDIT: Almost forgot: the charcodes are the death counts as listed here. The EUD triggers would just listen to those death counts, and set $$Keycode to equal the count. (We need another counter because you can't edit EUD death counters.) This post was edited 1 time, last edit by DavidJCobb: Dec 14 2009, 3:07 am. Reason given: Forgot to list the charcodes. ![]() ![]() ![]() ![]() ![]() ![]() ░░░▒▒▒▓▓▓▓███▀▀░▄▄▄▄▄▄░▀▀███▓▓▓▓▒▒▒░░░ ░░▒▒▒▓▓▓████░▄██████████▄░████▓▓▓▒▒▒░░ ░▒▒▒▓▓▓████▐▀▀▀█████▀▀▀▀██▌████▓▓▓▒▒▒░ ░▒▒▓▓▓████▐░██░░███▌██░░░██░████▓▓▓▒▒░ ▒▒▒▓▓▓███▌▐░██▌░███▌███▌░██▌▐███▓▓▓▒▒▒ ▒▒▓▓▓████▌██▄▄▄▄████▄▄▄▄▄███▐████▓▓▓▒▒ ▒▒▓▓▓████▌██▀▀▀▀▀▀▀▀▀▀▀▀▀███▐████▓▓▓▒▒ ▒▒▓▓▓████▌███▌▓▒▓▒▓▒▓▒▒▒▌███▐████▓▓▓▒▒ ▒▒▒▓▓▓███▌▐██▌▒▓▒▓▒▒▒▒▒▒▌██▌▐███▓▓▓▒▒▒ ░▒▒▓▓▓████░███▐▒▓▒█████▌███░████▓▓▓▒▒░ ░▒▒▒▓▓▓████░▀██▄▀▀▀▀▀▀▄██▀░████▓▓▓▒▒▒░ ░░▒▒▒▓▓▓████▄░▀▀██████▀▀░▄████▓▓▓▒▒▒░░ ░░░▒▒▒▓▓▓▓█████▄▄▄▄▄▄▄▄█████▓▓▓▓▒▒▒░░░ |
Post #99
Sacrieur
Dec 24 2009, 2:06 am
|
So we can't use it for multiplayer because it only works for things that display for a single player?
Still, leader board and text displays are enough to get me excited. What about center view or minimap ping? ![]() ![]() ![]() ![]() ![]() ![]() × ÷ ± · ∫ ƒ | ⅛ ¼ ⅓ ⅜ ½ ⅝ ⅔ ¾ ⅞ | π φ ∞ | ≡ ≈ ≥ ≤ ∴ ¬ ∩ Ø | √ ª ⁿ º ¹ ² ³ | ✓ ✗ | א
α β Γγ ∆∂ ε ζ η Θθ Ιι κ Λλ μ Ξξ Π ρ Σσς τ υ Φ Ψψ Ωω |
Post #100
O)FaRTy1billion
Dec 24 2009, 3:45 am
|
.rapsdleF
|
![]() ![]() ![]() ![]() ![]() ![]() TinyMap2 - Latest in map compression! [ 8/26/12 - New build! Potentially fixed Win7 crash ]
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!) EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab! MapSketch - New image->map generator! EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported) SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor! times! |
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)
+ guest(s)
[03:09 am]
[03:08 am]
[02:58 am]
[02:58 am]
[02:57 am]
[02:39 am]
[02:38 am]




"


times!![[close]](/images/up.gif)