forum

Taiko mode GlovePIE Wiimote script.

posted
Total Posts
5
Topic Starter
Neo@lex
Because people asked for it.
(it's useful untill loginer posts a flawless one and semiflames everyone.)

X (keyboard) = Swing/tilt Wiimote or press B
Space (keyboard) = Swing/tilt Nunchuk or press Z
The thumbstick moves the cursor to the edges of the screen, for spinners.
Plus sets a custom cursor position and A goes to it.
ESC (keyboard) = Home

Copy this into GlovePIE:
//X (keyboard) = Swing/tilt Wiimote or press B
//Space (keyboard) = Swing/tilt Nunchuk or press Z
//The thumbstick moves the cursor to the edges of the screen, for spinners.
//Plus sets a custom cursor position and A goes to it.
//ESC (keyboard) = Home
var.1 = (-5 < wiimote.Nunchuk.JoyX < -0.5) and var.15=0 and var.45=0
var.15 = (-5 < wiimote.Nunchuk.JoyX < -0.5) and (0.5 < wiimote.Nunchuk.JoyX < 5)
var.2 = (0.5 < wiimote.Nunchuk.JoyX < 5) and var.25=0 and var.15=0
var.25 = (0.5 < wiimote.Nunchuk.JoyX < 5) and (0.5 < wiimote.Nunchuk.Joyy < 5)
var.3 = (-5 < wiimote.Nunchuk.Joyy < -0.5) and var.35=0 and var.25=0
var.35 = (-5 < wiimote.Nunchuk.Joyy < -0.5) and (0.5 < wiimote.Nunchuk.Joyy < 5)
var.4 = (0.5 < wiimote.Nunchuk.Joyy < 5) and var.45=0 and var.35=0
var.45 = (0.5 < wiimote.Nunchuk.Joyy < 5) and (-5 < wiimote.Nunchuk.JoyX < -0.5)

var.5 = 0 //<<<For some reason, 0 on it's own doesn't work for me.

if wiimote.plus
var.mouseposx = var.mousex
var.mouseposy = var.mousey
endif


var.x = wiimote.RawforceX + 7 < -9
x = var.x or wiimote.b
var.sp = wiimote.Nunchuk.RawForcey > 100
keyboard.space = var.sp or wiimote.Nunchuk.ZButton
keyboard.escape = wiimote.home
var.p = wiimote.a //<<<<<dunno if it's important or not, but I can't be bothered to change it.

if var.1 > var.5 and var.2 = 0 and var.3 = 0 and var.4 = 0

mouse.x = 0
mouse.y = 0.5
endif

if var.1 > var.5 and var.3 > var.5

mouse.x = 0
mouse.y = 0
endif

if var.1 > var.5 and var.4 > var.5

mouse.x = 0
mouse.y = 1
endif


if var.2 > var.5 and var.1 = 0 and var.3 = 0 and var.4 = 0

mouse.x = 1
mouse.y = 0.5
endif

if var.2 > var.5 and var.3 > var.5

mouse.x = 1
mouse.y = 0
endif

if var.2 > var.5 and var.4 > var.5

mouse.x = 1
mouse.y = 1
endif

if var.3 > var.5 and var.2 = 0 and var.1 = 0 and var.4 = 0

mouse.x = 0.5
mouse.y = 0

endif



if var.4 > var.5 and var.2 = 0 and var.3 = 0 and var.1 = 0
mouse.x = 0.5
mouse.y = 1
endif



if var.p = 1

mouse.x = var.mouseposx
mouse.y = var.mouseposy
endif

Wiimote.Led1 = var.sp
Wiimote.Led2 = var.x
Wiimote.Led3 = var.x
Wiimote.Led4 = var.sp

var.mousex = mouse.x
var.mousey = mouse.y

var.rawy = wiimote.rawforcey
LuigiHann
this would be more fun if it didn't make me fail so much :|
Topic Starter
Neo@lex

LuigiHann wrote:

this would be more fun if it didn't make me fail so much :|
I fail more on easier maps, but hard ones like God Knows and Kyouki no Udongein seem easier...
Loginer
I'm not going to flame anyone. D:
Besides, I have a real drum, so writing a better script wouldn't help me. <.<
Edit: My lulz, this script is horrible. Disregard that, I must fix this. <__<
Topic Starter
Neo@lex
This map has been deleted on the request of its creator. It is no longer available.
Please sign in to reply.

New reply