Simplified Sub Main
Code: Select all
(varsets, events, defines)
:Mainloop
/doevents
(call inrange script)
(call checkbehind script)
/call twist
/doevents
/goto :Mainloop
/return
Code: Select all
Sub twist
/if $currentsong=="songone" {
/if n timer=="0" {
/stop
/delay 3
/cast $song1
/doevents
/varset timer "$dly"
/echo timer = $timer and dly = $dly
/if $song2!="" {
/varset currentsong "songtwo"
}
/if #song2=="" {
/varset currentsong "songone"
}
} else {
/return
}
} /return
/if $currentsong=="songtwo" {
/if n timer=="0" {
/stop
/delay 3
/cast $song2
/doevents
/varset timer "$dly"
/if $song3!="" {
/varset currentsong "songthree"
}
/if #song3=="" {
/varset currentsong "songone"
}
} else {
/return
}
/return
}
/if $currentsong=="songthree" {
/if n timer=="0" {
/stop
/delay 3
/cast $song3
/doevents
/varset timer "$dly"
/if $song4!="" {
/varset currentsong "songfour"
}
/if #song4=="" {
/varset currentsong "songone"
}
} else {
/return
}
/return
}
/if $currentsong=="songfour" {
/if n timer=="0" {
/stop
/delay 3
/cast $song4
/doevents
/varset timer "$dly"
/if $song5!="" {
/varset currentsong "songfive"
}
/if #song5=="" {
/varset currentsong "songone"
}
} else {
/return
}
/return
/if $currentsong=="songfive" {
/if n timer=="0" {
/stop
/delay 3
/cast $song5
/doevents
/varset timer "$dly"
/varset currentsong "songone"
} else {
/return
}
/return
}
/return
Sub Event_MissedNote
/if $currentsong=="songone" {
/cast $song1
/delay 4
}
/if $currentsong=="songtwo" {
/cast $song2
/delay 4
}
/if $currentsong=="songthree" {
/cast $song3
/delay 4
}
/if $currentsong=="songfour" {
/cast $song4
/delay 4
}
/if $currentsong=="songfive" {
/cast $song5
/delay 4
}
/doevents
/return
What this does is basically spams the songs as if it wasn't checking to make sure the timer = 0, and an echo of teh variables showed that $dly was reseting the timer to the appointed delay.
I'm completely confused on this one, I hope someone can make some sense out of it


