// Virtua Tennis PC Script V1.1 by Ethan // Work on AZERTY Keyboard //Debug debug = "X:"+ Wiimote.RelAccX + " Y:"+ Wiimote.RelAccY // Control Movement // In menu Enter = Wiimote.Home right = Wiimote.Up LEFT = Wiimote.Down UP = Wiimote.Left down = Wiimote.Right key.A = Wiimote.Plus = Wiimote.A key.S = Wiimote.Minus = Wiimote.B Tab = Wiimote.One Space = Wiimote.Two var.xtrim = 6 var.ytrim = -31 var.ztrim = 6 if wiimote.relaccy<=-30 then press(left) wait 200 ms release(left) endif if wiimote.relaccy>=30 then press(right) wait 200 ms release(right) endif if Wiimote.RelAccx <= -60 then // For smash Press(A) Wiimote.Rumble = True Wait 200 ms Release(A) Wiimote.Rumble = False elseif( Wiimote.RelAccx <= -60 and Wiimote.RelAccz >= 60) then // For Lob Press(S) Wiimote.Rumble = True Wait 200 ms Release(S) Wiimote.Rumble= False endif if wiimote.rawforcey<=-90 THEN if wiimote.relaccy>=30 then press(left) wait 200 ms release(left) endif if wiimote.relaccy<=-30 then press(right) wait 200 ms release(right) endif if Wiimote.RelAccx <= -60 then // For smash Press(A) Wiimote.Rumble = True Wait 200 ms Release(A) Wiimote.Rumble = False elseif( Wiimote.RelAccx <= -60 and Wiimote.RelAccz <= -60) then // For Lob Press(S) Wiimote.Rumble = True Wait 200 ms Release(S) Wiimote.Rumble= False endif if wiimote.rawforcex >= 20 then press(up) wait 200 ms release (up) endif if wiimote.rawforcex <= -20 then press(up) wait 200 ms release (up) endif endif if wiimote.rawforcex <=-20 then press(up) wait 200 ms release (up) endif if wiimote.rawforcex >= 20 then press(up) wait 200 ms release (up) endif