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 

needing help with a script

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



Joined: 17 Dec 2006
Posts: 15

Digg It
PostPosted: Fri Dec 22, 2006 12:14 am    Post subject: needing help with a script

hello everyone i am trying to make a script from the wii saber script that has different sounds from counterstrike using stuff on the wiimote like B, A, and the d pad. i am having problems because only two things work.
here is the script i have so far
sorry i cant upload the sound. if u see any errors please fix them

Quote:

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

var.xRot = Wiimote.RawaccX + var.xOffset
var.yRot = Wiimote.RawaccY + var.yOffset
var.zRot = Wiimote.rawforceZ + var.zOffset


if var.rmbl = false then
debug = "Press B to start"
endif

if var.rmbl = true then
debug = "Press Up Down Left or Right for sounds or A to finish."
endif

if (wiimote.B) + (var.on = 0) then
playsound("wiistike\parental.wav")
var.time = 25
var.rmbl = true
wait(0s)
var.on = 1
var.soundon = 1
endif


if wiimote.a + (var.on = 1) then
playsound("wiistrike\profan.wav")
var.on = 0
var.soundon = 0
var.time = 200
wait(0.2s)
var.rmbl= false
endif

if (var.zrot > 20) + (var.on = 1) + (wiimote.down = 1) then
playsound("wiistrike\holy.wav")
var.hitz = 1
var.time = 0
var.time = 50
wait(0.2s)
var.hitz = 0
endif

if (var.zrot > 20) + (var.on = 1) + (wiimote.right = 1) then
playsound("wiistrike\boom.wav")
var.hitz = 1
var.time = 0
var.time = 50
wait(0.2s)
var.hitz = 0
endif

if (var.zrot > 20) + (var.on = 1) + (wiimote.left = 1) then
playsound("wiistrike\dont.wav")
var.hitz = 1
var.time = 0
var.time = 50
wait(0.2s)
var.hitz = 0
endif

if (var.zrot > 20) + (var.on = 1) + (wiimote.up = 1) then
playsound("wiistrike\kick.wav")
var.hitz = 1
var.time = 0
var.time = 50
wait(0.2s)
var.hitz = 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 or var.swingminusy or var.swingminusx or var.strikeminusy or var.strikeminusx or var.hitminusy or var.hitminusx) = 1 then
var.soundon = 0
else if var.on = 1
var.soundon = 1
endif
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