Thread: Keys in Order
View Single Post
  #9  
Old 01-15-2014, 12:48 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
If you can pinpoint things directly, lets say variable name being the same as the key order, why just not check if it exists?

Lets take a modular example, with great possibilities when it comes to expanding the concept as a system.

http://pastebin.com/A21Yc1sA

I had to pastebin it, since I got an Access Denied when trying to post the code.

I wrote it without testing it, but the general idea should be there. I also made it much bigger than it had to be, but it was fun. Could easily become something bigger, it's quite flexible if some more changes are done to it. Also made it so you have to enable the possibility of doing combos.

This code is not done at all, I just wrote it for this post to illustrate an example.
__________________
Reply With Quote