SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Help

Reply
 
Thread Tools Search this Thread
Old 2 Weeks Ago   #1
Extem the Hedgeho
Default Executing Commands with a Custom Button (I need help with Lua Scripting)

Hey guys, remember me? The insignificant guy who wanted to play SRB2 with a Wired Fight Pad Pro? Yeah, I'm back with another question because I'm THAT stupid. Right now, I need help with some Lua stuff. I'm bad at programming and I honestly didn't want to read the wiki. How do I make a Lua file that will make it so that when you press custom3, it executes the "toggletwod" command if you have devmode enabled?

Why? That's simple, because I want to try and see if I can beat srb2 with mostly 2d, and only a few seconds in 3d to change positions.





I wish I were smart. :(
Extem the Hedgeho is offline   Reply With Quote
Old 2 Weeks Ago   #2
ClassicNC
Also known as Sonic Plus
 
ClassicNC's Avatar
Default

Quote:
Originally Posted by Extem the Hedgeho View Post
Hey guys, remember me? The insignificant guy who wanted to play SRB2 with a Wired Fight Pad Pro? Yeah, I'm back with another question because I'm THAT stupid. Right now, I need help with some Lua stuff. I'm bad at programming and I honestly didn't want to read the wiki. How do I make a Lua file that will make it so that when you press custom3, it executes the "toggletwod" command if you have devmode enabled?

Why? That's simple, because I want to try and see if I can beat srb2 with mostly 2d, and only a few seconds in 3d to change positions.





I wish I were smart. :(
There's a way to map commands to a specific button.
Goes a little something like this https://youtu.be/_Vsvkukg2Ws
__________________
Hey, Sonic! Long time no see-
That's my line.
Wh-
Shut up, Tails.
ClassicNC is online now   Reply With Quote
Old 2 Weeks Ago   #3
Extem the Hedgeho
Default Thank you :)

Quote:
Originally Posted by ClassicNC View Post
There's a way to map commands to a specific button.
Goes a little something like this https://youtu.be/_Vsvkukg2Ws
Thanks, I'll try this and see if it works :)
Extem the Hedgeho is offline   Reply With Quote
Old 2 Weeks Ago   #4
Extem the Hedgeho
Default Yay!!! (confetti appears)

It works! I could also try using a JoyToKey configuration to be able to use the command on a controller! Thank you so much! :D
Extem the Hedgeho is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:55 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.