here is the script as i have it and it works fine but i am
trying to add another check against a variable and not sure
how to go about it...
What I want to get this to do is get the script to check the my variable "combat" and if "in" wait to fire until the "out" trigger fires I can think of a couple work arounds involving either: alot of new triggers, or another sub like "OnScore" changing send to execute and a single alias & trigger but either way seems clunky seems to me like there should be a simpler way I just am not seeing
trying to add another check against a variable and not sure
how to go about it...
function Clvl (total)
select case total
case "1" Clvl = 1
case "2" Clvl = 2
case "3" Clvl = 3
case "4" Clvl = 4
case "5" Clvl = 5
case "6" Clvl = 6
case "7" Clvl = 7
case "8" Clvl = 8
case "9" Clvl = 9
case else Clvl = 10
end select
end function
Sub OnLevel (thename, theoutput, arrWildcards)
Dim lvls, statted
lvls = Getvariable ("levels")
Statted = vbTrue
If Clvl (lvls) < 10 then statted = vbFalse
If statted then
enabletrigger "statting2", 1
world.send "score"
setvariable "levels", "1"
End if
End Sub
What I want to get this to do is get the script to check the my variable "combat" and if "in" wait to fire until the "out" trigger fires I can think of a couple work arounds involving either: alot of new triggers, or another sub like "OnScore" changing send to execute and a single alias & trigger but either way seems clunky seems to me like there should be a simpler way I just am not seeing