Difference between revisions of "Lua Scripts"

From DKC Speedruns
Jump to: navigation, search
Line 5: Line 5:
 
Download and unzip the file where you'd like. In Snes9x rr v1.53, go to File>Lua Scripting>New Lua Script Window. From here, hit browse and navigate to the .lua file you unzipped. Finally, hit run! You should notice white numbers/letters appear at the top of your screen!
 
Download and unzip the file where you'd like. In Snes9x rr v1.53, go to File>Lua Scripting>New Lua Script Window. From here, hit browse and navigate to the .lua file you unzipped. Finally, hit run! You should notice white numbers/letters appear at the top of your screen!
  
===DKC1 Scripts===
+
== DKC1 Scripts ==
====Useful scripts====
+
 
 +
=== Useful scripts ===
 
First up is a timer. Starts when you press L and ends when you press R. It clears when you load a save state. AND it could be used for any SNES game, not just DKC1. This only works on Snes9x rr.
 
First up is a timer. Starts when you press L and ends when you press R. It clears when you load a save state. AND it could be used for any SNES game, not just DKC1. This only works on Snes9x rr.
  
 
[[File:Timer.zip]]
 
[[File:Timer.zip]]
  
 
+
=== Fun Scripts ===
====Fun Scripts====
 
 
Inspired by Newageretrohippies "cursed cart", this script enables X to fly! Enjoy!
 
Inspired by Newageretrohippies "cursed cart", this script enables X to fly! Enjoy!
  
 
[[File:X2Fly.zip]]
 
[[File:X2Fly.zip]]
  
====Coming soon====
+
=== Coming soon ===
 
*A practice script that makes you immune to most enemies
 
*A practice script that makes you immune to most enemies
 
*Another "fun" script that messes with speed (all I'll say)
 
*Another "fun" script that messes with speed (all I'll say)
 +
 +
== DKC2 Scripts ==

Revision as of 04:17, 9 February 2017

What is Lua?

Lua is a programming language that is built-in to many emulators. It is used primarily for TASes, but has many applications. The ones provided here work for Snes9x rr only unless otherwise specified. If you have any ideas for future Lua scripts, contact Rainbowsprinkles or Kipples_.

How to Use

Download and unzip the file where you'd like. In Snes9x rr v1.53, go to File>Lua Scripting>New Lua Script Window. From here, hit browse and navigate to the .lua file you unzipped. Finally, hit run! You should notice white numbers/letters appear at the top of your screen!

DKC1 Scripts

Useful scripts

First up is a timer. Starts when you press L and ends when you press R. It clears when you load a save state. AND it could be used for any SNES game, not just DKC1. This only works on Snes9x rr.

File:Timer.zip

Fun Scripts

Inspired by Newageretrohippies "cursed cart", this script enables X to fly! Enjoy!

File:X2Fly.zip

Coming soon

  • A practice script that makes you immune to most enemies
  • Another "fun" script that messes with speed (all I'll say)

DKC2 Scripts