*

Author Topic: Descent 1/2 cheat keystroke AHK script  (Read 4225 times)

Offline Schala

  • Silver
  • **
  • Posts: 7
Descent 1/2 cheat keystroke AHK script
« on: March 18, 2011, 01:36:56 AM »
Update 3/19/11: Fixed a typo in the rapid fire binding and changed the upper key tier bindings to put in LPNLIZARD. Also highlighted D2X-XL exclusive cheats in green. DXX-Rebirth is in orange

I wrote the following AutoHotkey script which binds Descent cheat keystrokes to certain buttons, thus saving time if you feel a bit cheaty. There's preset key bindings in the script, which I will present in a moment. I recommend that you delete all of Descent's alphabetic key bindings before using this! You could just accidentally have the script fire off 5 proximity bombs otherwise...

Anyway here are the default bindings. Feel free to change them, provided you've read up on AHK syntax and know what you're doing... By the way, these work with both D1 and D2, but just be sure to use the right button combos lest your shield and energy drop to 1.

- Regular cheats in white
- D2X-XL cheats in green
- DXX-Rebirth in orange (needs to be added)

Alt-Q = GABBAGABBAHEY
Alt-W = RACERX
Alt-E = GUILE
Alt-R = AHIMSA
Alt-A = FARMERJOE
Alt-S = POBOYS
Ctrl-Q = ALMIGHTY
Ctrl-W = ITSAROCK
Ctrl-E = SCOTTMEUP
Ctrl-R = LEMONTREE
Ctrl-T = LPNLIZARD
Ctrl-Y = WILDFIRE
Ctrl-U = GOWINGNUT
Ctrl-I = HESTHEONE
Ctrl-O = IMAGESPACE
Ctrl-A = CRYPTONITE
Ctrl-P = SILKWING
Ctrl-S = PITAPITA
Ctrl-D = SPANIARD
Ctrl-F = FREESPACE
Ctrl-G = DELSHIFTB
Ctrl-Z = MINEMINE
Ctrl-X = HELPVISHNU
Ctrl-N = SUBSPACE
Ctrl-M = PUMPMEUP

And here's the script. Copy and paste it into an AHK script and then run it. Be sure to turn it off by its tray icon after you exit the game, or you can see what it does in Notepad if you want to.

Code: [Select]
SetKeyDelay, 60, 36

; D2 - Invulnerability on/off
^q::
Sleep, 20
Send {a down}{a up}
Send {l down}{l up}
Send {m down}{m up}
Send {i down}{i up}
Send {g down}{g up}
Send {h down}{h up}
Send {t down}{t up}
Send {y down}{y up}
return

; D2 - Cloak on/off
^w::
Sleep, 20
Send {i down}{i up}
Send {t down}{t up}
Send {s down}{s up}
Send {a down}{a up}
Send {r down}{r up}
Send {o down}{o up}
Send {c down}{c up}
Send {k down}{k up}
return

; D2 - Triple fusion cannon
^e::
Sleep, 20
Send {s down}{s up}
Send {c down}{c up}
Send {o down}{o up}
Send {t down}{t up}
Send {t down}{t up}
Send {m down}{m up}
Send {e down}{e up}
Send {u down}{u up}
Send {p down}{p up}
return

; D2 - Have infinite afterburner
^r::
Sleep, 20
Send {l down}{l up}
Send {e down}{e up}
Send {m down}{m up}
Send {o down}{o up}
Send {n down}{n up}
Send {t down}{t up}
Send {r down}{r up}
Send {e down}{e up}
Send {e down}{e up}
return

; D2 - Homing weapons
^t::
Sleep, 20
Send {l down}{l up}
Send {p down}{p up}
Send {n down}{n up}
Send {l down}{l up}
Send {i down}{i up}
Send {z down}{z up}
Send {a down}{a up}
Send {r down}{r up}
Send {d down}{d up}
return

; D2 - Rapid fire (can crash D2X-XL)
^y::
Sleep, 20
Send {w down}{w up}
Send {i down}{i up}
Send {l down}{l up}
Send {d down}{d up}
Send {f down}{f up}
Send {i down}{i up}
Send {r down}{r up}
Send {e down}{e up}
return

; D2 - Guide bot renamed WINGNUT, becomes enraged (on/off)
^u::
Sleep, 20
Send {g down}{g up}
Send {o down}{o up}
Send {w down}{w up}
Send {i down}{i up}
Send {n down}{n up}
Send {g down}{g up}
Send {n down}{n up}
Send {u down}{u up}
Send {t down}{t up}
return

; D2 - Infinite slow motion
^i::
Sleep, 20
Send {h down}{h up}
Send {e down}{e up}
Send {s down}{s up}
Send {t down}{t up}
Send {h down}{h up}
Send {e down}{e up}
Send {o down}{o up}
Send {n down}{n up}
Send {e down}{e up}
return

; D2 - Robot firing off/on
^o::
Sleep, 20
Send {i down}{i up}
Send {m down}{m up}
Send {a down}{a up}
Send {g down}{g up}
Send {e down}{e up}
Send {s down}{s up}
Send {p down}{p up}
Send {a down}{a up}
Send {c down}{c up}
Send {e down}{e up}
return

; D2 - Every robot for themselves
^p::
Sleep, 20
Send {s down}{s up}
Send {i down}{i up}
Send {l down}{l up}
Send {k down}{k up}
Send {w down}{w up}
Send {i down}{i up}
Send {n down}{n up}
Send {g down}{g up}
return

; D2 -
; 1st press: all doors unlocked
; 2nd press: all penetrable walls removed
^a::
Sleep, 20
Send {c down}{c up}
Send {r down}{r up}
Send {y down}{y up}
Send {p down}{p up}
Send {t down}{t up}
Send {o down}{o up}
Send {n down}{n up}
Send {i down}{i up}
Send {t down}{t up}
Send {e down}{e up}
return

; D2 - Kills guide bot
^s::
Sleep, 20
Send {p down}{p up}
Send {i down}{i up}
Send {t down}{t up}
Send {a down}{a up}
Send {p down}{p up}
Send {i down}{i up}
Send {t down}{t up}
Send {a down}{a up}
return

; D2 -
; 1st press: all regular enemy robots killed
; 2nd press: guide bot killed
^d::
Sleep, 20
Send {s down}{s up}
Send {p down}{p up}
Send {a down}{a up}
Send {n down}{n up}
Send {i down}{i up}
Send {a down}{a up}
Send {r down}{r up}
Send {d down}{d up}
return

; D2 - Level warp
^f::
Sleep, 20
Send {f down}{f up}
Send {r down}{r up}
Send {e down}{e up}
Send {e down}{e up}
Send {s down}{s up}
Send {p down}{p up}
Send {a down}{a up}
Send {c down}{c up}
Send {e down}{e up}
return

; D2 - Blow reactor, kill all robots, get all powerups in mine, appear in front of exit
^g::
Sleep, 20
Send {d down}{d up}
Send {e down}{e up}
Send {l down}{l up}
Send {s down}{s up}
Send {h down}{h up}
Send {i down}{i up}
Send {f down}{f up}
Send {t down}{t up}
Send {b down}{b up}
return

; D2 - Gives all weapons/inventory/cloak/invulnerability
^z::
Sleep, 20
Send {m down}{m up}
Send {i down}{i up}
Send {n down}{n up}
Send {e down}{e up}
Send {m down}{m up}
Send {i down}{i up}
Send {n down}{n up}
Send {e down}{e up}
return

; D2 - Create new guide bot
^x::
Sleep, 20
Send {h down}{h up}
Send {e down}{e up}
Send {l down}{l up}
Send {p down}{p up}
Send {v down}{v up}
Send {i down}{i up}
Send {s down}{s up}
Send {h down}{h up}
Send {n down}{n up}
Send {u down}{u up}
return

; D2 - Teleport
^n::
Sleep, 20
Send {s down}{s up}
Send {u down}{u up}
Send {b down}{b up}
Send {s down}{s up}
Send {p down}{p up}
Send {a down}{a up}
Send {c down}{c up}
Send {e down}{e up}
return

; D2 - Full shield/energy
^m::
Sleep, 20
Send {p down}{p up}
Send {u down}{u up}
Send {m down}{m up}
Send {p down}{p up}
Send {m down}{m up}
Send {e down}{e up}
Send {u down}{u up}
Send {p down}{p up}
return

; D1 - Enables cheats
!q::
Sleep, 20
Send {g down}{g up}
Send {a down}{a up}
Send {b down}{b up}
Send {b down}{b up}
Send {a down}{a up}
Send {g down}{g up}
Send {a down}{a up}
Send {b down}{b up}
Send {b down}{b up}
Send {a down}{a up}
Send {h down}{h up}
Send {e down}{e up}
Send {y down}{y up}
return

; D1 - Invulnerability on/off
!w::
Sleep, 20
Send {r down}{r up}
Send {a down}{a up}
Send {c down}{c up}
Send {e down}{e up}
Send {r down}{r up}
Send {x down}{x up}
return

; D1 - Cloak on/off
!e::
Sleep, 20
Send {g down}{g up}
Send {u down}{u up}
Send {i down}{i up}
Send {l down}{l up}
Send {e down}{e up}
return

; D1 - Robot firing off/on
!r::
Sleep, 20
Send {a down}{a up}
Send {h down}{h up}
Send {i down}{i up}
Send {m down}{m up}
Send {s down}{s up}
Send {a down}{a up}
return

; D1 - Level warp
!a::
Sleep, 20
Send {f down}{f up}
Send {a down}{a up}
Send {r down}{r up}
Send {m down}{m up}
Send {e down}{e up}
Send {r down}{r up}
Send {j down}{j up}
Send {o down}{o up}
Send {e down}{e up}
return

; D1 - Blow reactor, kill all robots, get all powerups in mine, appear in front of exit
!s::
Sleep, 20
Send {p down}{p up}
Send {o down}{o up}
Send {b down}{b up}
Send {o down}{o up}
Send {y down}{y up}
Send {s down}{s up}
return

If you play DXX-Rebirth, copy and paste the following after the line with SetKeyDelay:

Code: [Select]
; todo
« Last Edit: March 18, 2011, 09:50:53 PM by Schala »

Offline Pumo

  • Lord PuMo, King of Torbernite
  • Gold
  • ***
  • Posts: 356
  • Fear the Hosakos!
    • Pumo Software
Re: D2X-XL cheat keystroke AHK script
« Reply #1 on: March 18, 2011, 11:13:13 AM »
Just in case someone here wonders, some of the cheats included are D2X-XL cheat codes (e.g. subspace, minemine) but you can use the script also with Rebirth without any issues.
Pumo Software main Website
- Pumo Mines current release: v1.1 (12 Levels)
R.a.M. Land official Website

Offline Scyphi

  • Purple Heart
  • *****
  • Posts: 2386
  • TechPro Jr.
Re: D2X-XL cheat keystroke AHK script
« Reply #2 on: March 18, 2011, 11:16:47 AM »
I figured as such. I had almost forgotten D2X-XL even had it's own set of cheat codes, it's been so long since I used 'em. And the only one I really knew of was "subspace". I think. That's the one that makes you jump to a specific cube in a level, right?
"I thought I had a great idea, but it never really took off. In fact, it didn't even get on the runway. I guess you could say it exploded in the hanger." -Calvin and Hobbes
Check out my deviantART

Offline Schala

  • Silver
  • **
  • Posts: 7
Re: D2X-XL cheat keystroke AHK script
« Reply #3 on: March 18, 2011, 01:11:05 PM »
Yeah. Sorry, I forgot about Rebirth. Well... I guess there's no harm done.

 

An Error Has Occurred!

Cannot create references to/from string offsets