freshgeardude
Joined: 17 Dec 2006 Posts: 15
Digg It |
Posted: 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
|
|
|