Location: Wiimote Glove PIE scripts

Discussion: morrowind 1.0 glovepie script by Tricksty FIRST PARTReported This is a featured thread

Showing 2 posts

Posted Anonymously
morrowind 1.0 glovepie script by Tricksty FIRST PART
Aug 24 2009, 10:46 AM EDT | Post edited: Aug 24 2009, 10:46 AM EDT
// Morrowind script
// Made by Tricksty
// Enjoy this old classics with the WIIMOTE(r)
// fell free to distibuite/modify this script as u like as long as u dont make profit doing it
// all right reservered to all respective owners

/*
Description :
Ver 1.0

A button interact ( E on morrowind)
B or swing attack (or click on menu)
C jump (space)
Z crouch (ctrl)
1 toggle run (caps lock)
2 item/spell menu (right click)
Arrows movement (WASD)
nunchuk analog pad mouse movement and visual

plus and minus have several function :
if nunchuck normal change weapon
if nunchuck rolled change spell
when pressed Z
if nunchuck normal + ready weapon(F) - ready spell(R)
if nunchuck rolled + journal (J) - sleep (T)

Home + nunchuk pad use number between 1-8 for fast ready objects/spell/potion
*/

var.multX=50
var.multY=50
var.deadzone=0.11

Key.E = Wiimote1.A // i use key e to interact with ppl

var.joyX=Wiimote1.Nunchuk.JoyX
var.joyY=Wiimote1.Nunchuk.JoyY
if abs(var.joyX)< var.deadzone Then var.joyX=0
if abs(var.joyY)< var.deadzone Then var.joyY=0

if (not (Wiimote1.Home))
var.joyX=var.joyX*abs(var.joyX)
var.joyY=var.joyY*abs(var.joyY)
Mouse.DirectInputX = Mouse.DirectInputX + (var.joyX * var.multX)
Mouse.DirectInputY = Mouse.DirectInputY + (var.joyY * var.multY)
endif

[NOT FINISHED CONTINUE IN PART 2]
3  out of 3 found this valuable. Do you?    

Posted Anonymously
1. RE: morrowind 1.0 glovepie script by Tricksty SECOND PART
Aug 24 2009, 10:47 AM EDT | Post edited: Aug 24 2009, 10:47 AM EDT

if (Wiimote1.Home)
Key.1 = (abs(var.joyX) < 0.1) && (var.joyY < -0.75)
Key.2 = (var.joyX > 0.35) && (var.joyY < -0.45)
Key.3 = (var.joyX > 0.8) && (abs(var.joyY) < 0.1)
Key.4 = (var.joyX > 0.35) && (var.joyY > 0.45)
Key.5 = (abs(var.joyX) < 0.1) && (var.joyY > 0.8)
Key.6 = (var.joyX < -0.35) && (var.joyY > 0.45)
Key.7 = (var.joyX < -0.8) && (abs(var.joyY) < 0.1)
Key.8 = (var.joyX < -0.35) && (var.joyY < -0.45)
Key.0 = (Wiimote1.A)
endif

Key.W = Wiimote1.Up
Key.A = Wiimote1.Left
Key.S = Wiimote1.Down
Key.D = Wiimote1.Right

Key.LeftControl = Wiimote1.Nunchuk.ZButton
Key.Space = Wiimote1.Nunchuk.CButton

var.attack= (Wiimote1.RelAccX > 20) || (Wiimote1.RelAccY > 20) ||(Wiimote1.B)
Mouse.LeftButton = var.attack
Key.CapsLock = Wiimote1.One
Mouse.RightButton = Wiimote1.Two

var.nr= Wiimote1.Nunchuk.roll
if (Wiimote1.Nunchuk.ZButton)
Key.F =(var.nr<40 && Wiimote1.Plus)
Key.R =(var.nr<40 && Wiimote1.Minus)
Key.J =(var.nr>40 && Wiimote1.Plus)
Key.T =(var.nr>40 && Wiimote1.Minus)
endif

if (not Wiimote1.Nunchuk.ZButton)
Key.X =(var.nr <40 && Wiimote1.Plus)
Key.Z =(var.nr <40 && Wiimote1.Minus)
Key.c =(var.nr >40 && Wiimote1.Plus)
Key.v =(var.nr >40 && Wiimote1.Minus)
endif

//END
2  out of 3 found this valuable. Do you?