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 

Script for Superstar Chefs [2 Player]

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



Joined: 15 Jan 2007
Posts: 29

Digg It
PostPosted: Wed Jan 17, 2007 11:48 pm    Post subject: Script for Superstar Chefs [2 Player]

Code:
// Script for Superstar Chefs. Its a 2player game. You can download
// the game here http://www.reflexive.com/SuperstarChefs.game
// Hold the wiimote like a NES controller D-pad to move
// 1 or 2 to jump, home to go to menu
// Two wiimotes needed for a 2player game
// Script Created by Predator04! Enjoy
// Controls Wiimote 1
if wiimote1.Up then
  Key.Left = True
  Wait 60ms
  Key.Left = False
endif
if wiimote1.Down then
  Key.Right = True
  Wait 60ms
  Key.Right = False
endif
if wiimote1.Left then
  Key.Down = True
  Wait 60ms
  Key.Down = False
endif
if wiimote1.Right then
  Key.Up = True
  Wait 60ms
  Key.Up = False
endif

if wiimote1.Two then
  Key.Ctrl = True
  Wait 60ms
  Key.Ctrl = False
endif

if wiimote1.One then
  Key.Ctrl = True
  Wait 60ms
  Key.Ctrl = False
endif

//Wiimote 1 Rumble
if Wiimote1.Two then
    Wiimote1.Rumble = True
    Wait 20ms
    Wiimote1.Rumble = False
    end if
if Wiimote1.One then
    Wiimote1.Rumble = True
    Wait 20ms
    Wiimote1.Rumble = False
    end if

//Controls Wiimote 2
if wiimote2.up then
   Key.A = True
   Wait 60ms
   Key.A = False
endif
if wiimote2.Down then
   Key.D = True
   Wait 60ms
   Key.D = False
endif
if wiimote2.Left then
   Key.S = True
   Wait 60ms
   Key.S = False
endif
if wiimote2.Right then
   Key.W = True
   Wait 60ms
   Key.W = False
endif
if wiimote2.One then
   Key.Shift = True
   Wait 60ms
   Key.Shift = False
endif
if wiimote2.Two then
   Key.Shift = True
   Wait 60ms
   Key.Shift = False
endif

//Wiimote 2 Rumble
if Wiimote2.Two then
    Wiimote2.Rumble = True
    Wait 20ms
    Wiimote2.Rumble = False
end if
if Wiimote2.One then
    Wiimote2.Rumble = True
    Wait 20ms
    Wiimote2.Rumble = False
end if
//Escape
Key.Escape=wiimote1.Home
Key.Escape=wiimote2.Home

//Lights on Wiimote. Know who is player 1 and who is player 2
if true then
  wiimote1.Leds = 1
  wiimote2.Leds = 2
endif


You can find the game here http://www.reflexive.com/SuperstarChefs.game
Its not the most clean script but it gets the job done and im happy with that. Let me know what you think
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