gameshark39
Joined: 07 Feb 2007 Posts: 3
Digg It |
Posted: Wed Feb 07, 2007 1:37 am Post subject: Smash Bros w/nunchuck script!!! |
|
|
This is for all you guys who love playing smash bros on an emulator with your wiimotes.
//Smash Bros w/Nunchuk
//Gameshark39 copyright
//wiimote one
//Set your emulator for these controls
// Up = Up key
// Down = down key
// Left = left key
// right= right key
// A = ,
// B = M
// Start = Enter
// L = right shift
// R = K
// Z = Z
//basically nunchuk controls movement, a on wiimote is a, b on wiimote is b, Z on nunchuck is Z, C on nunchuck is R, Select on wiimote is C-down and Start on wiimote is start
//wiimote and nunchuck buttons
RightShift = wiimote1.Minus
Enter = wiimote1.Plus
Delete = wiimote1.home
M = wiimote1.B
Comma = wiimote1.A
z = wiimote.nunchuk.zbutton
k = wiimote.nunchuk.cbutton
// Nunchuk movement:
if 2 > Wiimote1.Nunchuk.JoyX > 0.5 then
Right = true
wait 60 ms
Right = false
endif
if -2 < Wiimote1.Nunchuk.JoyX < -0.5 then
left = true
wait 60 ms
left = false
endif
if 2 > Wiimote1.Nunchuk.JoyY > 0.5 then
down = true
wait 60 ms
down = false
endif
if -2 < Wiimote1.Nunchuk.JoyY < -0.5 then
up = true
wait 60 ms
up = false
endif
//wiimote identification script
var.count = Wiimote.Count
Debug = "You have " + var.count + " Wiimotes connected to your computer."
if var.count = 1
Wiimote1.Led1 = True
endif
if var.count = 2
Wiimote1.Led1 = True
Wiimote2.Led2 = True
endif
if var.count = 3
Wiimote1.Led1 = True
Wiimote2.Led2 = True
Wiimote3.Led3 = True
endif
if var.count = 4
Wiimote1.Led1 = True
Wiimote2.Led2 = True
Wiimote3.Led3 = True
Wiimote4.Led4 = True
endif |
|