veisen
Joined: 11 May 2007 Posts: 1
Digg It |
Posted: Fri May 11, 2007 11:03 pm Post subject: WOW script |
|
|
i make little wow script
it isnt complete but it is realy good try it
| Code: |
var.x = wiimote1.RawForceX + var.trimx
var.y = wiimote1.RawForceY + var.trimy
var.z = wiimote1.RawForceZ + var.trimz
var.sense0 = 1000
var.thresh0x = 2
var.thresh0y = 1
var.sense = 300
var.threshx = 10
var.threshy = 5
var.sense2 = 100
var.thresh2x = 15
var.thresh2y = 8
var.sense3 = 50
var.thresh3x = 20
var.thresh3y = 12
if var.x > var.thresh0x
mouse.x = mouse.x - 1/var.sense0
endif
if var.x < -var.thresh0x
mouse.x = mouse.x + 1/var.sense0
endif
if var.z > var.thresh0y
mouse.y = mouse.y - 1/var.sense0
endif
if var.z < -var.thresh0y
mouse.y = mouse.y + 1/var.sense0
endif
if var.x > var.threshx
mouse.x = mouse.x - 1/var.sense
endif
if var.x < -var.threshx
mouse.x = mouse.x + 1/var.sense
endif
if var.z > var.threshy
mouse.y = mouse.y - 1/var.sense
endif
if var.z < -var.threshy
mouse.y = mouse.y + 1/var.sense
endif
if var.x > var.thresh2x
mouse.x = mouse.x - 1/var.sense2
endif
if var.x < -var.thresh2x
mouse.x = mouse.x + 1/var.sense2
endif
if var.z > var.thresh2y
mouse.y = mouse.y - 1/var.sense2
endif
if var.z < -var.thresh2y
mouse.y = mouse.y + 1/var.sense2
endif
if var.x > var.thresh3x
mouse.x = mouse.x - 1/var.sense3
endif
if var.x < -var.thresh3x
mouse.x = mouse.x + 1/var.sense3
endif
if var.z > var.thresh3y
mouse.y = mouse.y - 1/var.sense3
endif
if var.z < -var.thresh3y
mouse.y = mouse.y + 1/var.sense3
endif
end if
mouse.LeftButton = Wiimote.B
mouse.RightButton = Wiimote.A
w = Wiimote.Up
s = Wiimote.Down
a = Wiimote.Left
d = Wiimote.Right
Wiimote.Led2 = w
Wiimote.Led3 = w
Wiimote.Led2 = s
Wiimote.Led3 = s
Wiimote.Led1 = a
Wiimote.Led4 = d
if Wiimote.RawAccY <= -15 m per s per s then
keyboard.shift+keyboard.9 = true
wait 60 ms
keyboard.shift+keyboard.9 = False
Wiimote.Led1 = true
wait 200 ms
Wiimote.Led2 = true
wait 200 ms
Wiimote.Led3 = true
wait 200 ms
Wiimote.Led4 = true
wait 200 ms
Wiimote.Led3 = true
wait 200 ms
Wiimote.Led2 = true
wait 200 ms
Wiimote.Led1 = true
endif
debug = 'battery level: ' + wiimote.Battery
B = wiimote.Home
O = wiimote.Plus
L = wiimote.Minus
keyboard.Two = wiimote.One
keyboard.seven = wiimote.Two
|
|
|