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 

Basic Virtua Tennis Script v0.1

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



Joined: 15 Dec 2006
Posts: 2

Digg It
PostPosted: Fri Dec 15, 2006 9:25 am    Post subject: Basic Virtua Tennis Script v0.1

Hello, im a spanish wiimote user (sorry for my english).

Im not a good programmer, but i thinked, that it must be posible to program a script to play virtua tennis 1.

Its a game with low minimun system requeriments but its wonderful, and when i think that i could play it with wiimote....arrgggffhh Smile

I think that its possible to program.

byez! thx!

-----------

Move: up down left right Smile

This version is only playable with the normal shot. (Z in keyboard)

Code:

//Virtua Tenis PC Script
//Aidan is learning! :D

//Player basic movement
Up = Wiimote.Up
Down = Wiimote.Down
Left = Wiimote.Left
Right = Wiimote.Right

//Led Control
Wiimote.leds = 1

var.xOffset = 0
var.yOffset = -17
var.zOffset = -10

var.xRot = Wiimote.RawForceX + var.xOffset
var.yRot = Wiimote.RawforceY + var.yOffset
var.zRot = Wiimote.RawforceZ + var.zOffset


debug = "Welcome to Virtua Tenis Script v0.0.0.1"


var.on = 1

if var.soundon = 1
keyboard.z = Wiimote.A
var.time = 100
wait(452ms)
endif

//Normal Shot

if (var.yrot > 40) then
keyboard.z  = true
var.strikey = 1
var.time = 0
Wiimote.Leds = 15
wait(0.3s)
var.time = 50
wait(0.38s)
var.strikey = 0
endif



if (var.swingy or var.swingx or var.swingz or var.strikey or var.strikex or var.strikez or var.hity or var.hitx or var.hitz) = 1 then
var.soundon = 0
else if var.on = 1
var.soundon = 1
endif




Please, can help me with the programation? I know that there is things that are wrong... but i used other scripts to help me...

thx!
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