Detecting Keys Pressed (EUDs), Took forever....
Post #41
Heinermann
Feb 23 2009, 7:04 am
Post #42 Epyon214 Feb 24 2009, 1:24 am
|
if it DOES become possible for multiplayer, I totally want to use this. How awesome would it be to, instead of using a moving defiler or building a marine, say the attack out loud and have the spell activate in a arena map ( fyi, im attempting to make a " pokemon budokai " map, though progress is slow cause im lazy.
![]() ![]() ![]() ![]() ![]() ![]() |
Post #44
HCM™stickynote
Feb 24 2009, 6:03 am
Post #46
samsizzle!
Feb 25 2009, 12:40 am
|
So this will probably not work for actions such as spells or other things then? I just want to be sure in case i go making a map using a gateway for a selection system when i couldve used this. Also in the map spellsword rpg it can detect if you clicked on an upgrade and it cancels it. How the heck does that work?
![]() ![]() ![]() ![]() ![]() ![]() |
Post #47
Heinermann
Feb 25 2009, 1:17 am
Post #48
HCM™stickynote
Feb 25 2009, 1:24 am
Post #49
Pyro682
Feb 25 2009, 6:15 am
|
samsizzle, The reason why is that the Upgrade for armor is 50 gas, and the weapon is 1 gas.
The Armor is slightly slower than the weapon upgrade. If a player in Spellsword RPG tries to do a weapon upgrade when the armor is 50 gas, a trigger will detect that the player has 49 gas, and give away/remove + create the forge doing the upgrade. Since the upgrade is interrupted, the gas is automatically refunded by starcraft, and no harm done. The upgrades in SpellSword RPG have nothing to do with EUDs. However, you CAN create text messages that WILL affect gameplay, by telling the player how to do certain things. For example, have a combo that unlocks a new level or spell if the player influences the trigger with the EUD condition be revealed to the player. You can easily set up a randomizer that switches this combo, so people can't get this combo and memorize it for another game, or tell others what the combo is. The "Keypad" or "Combo-enterer"(Enterer???) thingie could be something like a GW or Starport, and you create a unit or "siege a tank like in spellsword" to enter in the combo, so people cant guess easily by building tons of random units. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #50
Brontobyte
Feb 25 2009, 2:28 pm
Post #53
Brontobyte
Feb 25 2009, 7:22 pm
Post #54 Ateo Feb 26 2009, 8:58 am
|
you know, since the 'display text' action could be used without dropping players, this could still be useful for an rpg where you have players press a key to 'talk' to an NPC, or press up a key to display a 'virtual' menu that is run by death counts, from which a build unit or move unit (a la Spellsword) selection system is used to scroll through the options and confirm the selection.
![]() ![]() ![]() ![]() ![]() ![]() |
Post #55
Ahli
Mar 1 2009, 10:54 am
|
Nothing yet! Almost done. Very powerful, very strong.
|
I added information for the German keyboard and my laptop's windows button. Odd that it has another number.
CodeStarting with Unit 1059 Player 12 notes: -keys with capslock and without capslock have no difference -if u press multiple keys, you can only detect the one with the higher number in this list -I couldn't detect "Alt Gr" list: 289 290 291 292 293 294 295 296 297 Backspace 298 Tab 299 300 301 KP 5 (NL off) 302 Enter 303 304 305 Shift 306 Ctrl 307 Alt 308 Pause/Break 309 Caps Lock 310 311 312 313 314 315 316 Esc 317 318 319 320 321 Space 322 Page Up 323 Page Down 324 End 325 Home 326 Left 327 Up 328 Right 329 Down 330 331 332 333 334 Insert 335 Delete 336 337 0 338 1 339 2 340 3 341 4 342 5 343 6 344 7 345 8 346 9 347 348 KP Add 349 350 351 352 353 354 a, A 355 b, B 356 c, C 357 d, D 358 e, E 359 f, F 360 g, G 361 h, H 362 i, I 363 j, J 364 k, K 365 l, L 366 m, M 367 n, N 368 o, O 369 p, P 370 q, Q 371 r, R 372 s, S 373 t, T 374 u, U 375 v, V 376 w, W 377 x, X 378 y, Y 379 z, Z 380 GER Windows Key (Ahli's laptop) (?) 381 Windows Key 382 Context Menu key 383 384 385 KP 0 (NL on) 386 KP 1 (NL on) 387 KP 2 (NL on) 388 KP 3 (NL on) 389 KP 4 (NL on) 390 KP 5 (NL on) 391 KP 6 (NL on) 392 KP 7 (NL on) 393 KP 8 (NL on) 394 KP 9 (NL on) 395 KP Multiply 396 397 398 KP Subtract 399 KP Decimal 400 KP Divide 401 F1? (not detectable) 402 F2? (not detectable) 403 F3? (not detectable) 404 F4? (not detectable) 405 F5 406 F6 407 F7 408 F8 409 F9 410 F10 411 F11 412 F12 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 Num Lock 434 Scroll Lock 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 Mute (Sony laptop) 463 Volume Down (Sony laptop) 464 Volume Up (Sony laptop) 465 Next Track (Sony laptop) 466 Previous Track (Sony laptop) 467 Stop (Sony laptop) 468 Play/Pause (Sony laptop) 469 470 471 472 473 474 475 ; and : and GER: ü 476 = and + and GER: + 477 , and < 478 - and _ 479 . and > 480 / and ? and GER: # 481 ` and ~ and GER: ö 482 A (unused) 483 B (unused) 484 C (unused) 485 D (unused) 486 E (unused) 487 F (unused) 488 G (unused) 489 H (unused) 490 I (unused) 491 J (unused) 492 K (unused) 493 L (unused) 494 M (unused) 495 N (unused) 496 O (unused) 497 P (unused) 498 Q (unused) 499 R (unused) 500 S (unused) 501 T (unused) 502 U (unused) 503 V (unused) 504 W (unused) 505 X (unused) 506 Y (unused) 507 Z (unused) 508 [ and { and GER: ß 509 \ and | and GER: ^ 510 ] and } and GER: ´ 511 ' and ~ and GER: ä 512 513 514 515 \ and | (alternate) 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 Media key (Compaq keyboard) 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post #56
Heinermann
Mar 1 2009, 5:41 pm
Post #57
Morphling
Mar 22 2009, 11:38 pm
|
I made this map a little while back, but never posted. Uses WASD to control a marine. Holding two keys causes the marine to move on an angle. I implemented an acceleration system so the marine gradually gets faster.(well not faster, but to it's normal speed) I did the movement by a pixel grid.
Attachments:
This post was edited 1 time, last edit by Morphling: Mar 22 2009, 11:47 pm. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #59
Heinermann
Mar 23 2009, 5:32 pm
|
BWAPI Project Owner
|
BTW, the array that we have been playing with is actually a VKEY array. Media keys are not part of this array, but come after with other input values. See http://msdn.microsoft.com/en-us/library/ms645540.aspx I'll need to go on my desktop to get the base addresses. Someone test mouse button presses? |
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)
+ guest(s)
[01:50 pm]
[01:06 pm]
[10:31 am]
[08:08 am]
[08:06 am]
[08:05 am]
[06:39 am]










![[close]](/images/up.gif)
che style