WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Smash Bros w/nunchuck script!!!

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
gameshark39



Joined: 07 Feb 2007
Posts: 3

Digg It
PostPosted: 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
Back to top
View user's profile Send private message
gameshark39



Joined: 07 Feb 2007
Posts: 3

Digg It
PostPosted: Wed Feb 07, 2007 1:39 am    Post subject:

btw is you were wondering, this is smash bros for n64...not melee Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group