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 

WOW script

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



Joined: 11 May 2007
Posts: 1

Digg It
PostPosted: 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
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