I've got a small problem, and I fixed some of it, but would like expand it a little if you guys could help me.
I've got a MUD game I play and I have a custom monitor that fires off every 3-6 seconds and it looks like this:
HP: * ( * ) GP: * ( * ) XP: ( * ) Align: ( * )
when I see that, I have a trigger that does this.
if %3 > 200 then
DoAfter(math.random(1)+1, "XXX")
end -- if
So, if that third *, my GP, is above 200 I send a MM command. That works perfect but would like to expand it.
In that * next to align, there can be several things appear there. "extremely good", "very good", "quite good", "good", "barely good", "neutral", "barely evil", "evil", "quite evil", "very evil", and last but not least, "extremely evil"
I play an evil god, and can only cast the MM command if my alignment is Barely evil - extremely evil. What I wanted to do is follows, but I dont know the syntax.
if %3 > 200 and %6 == "barely evil|evil|quite evil|very evil|extremely evil" then
DoAfter(math.random(1)+1, "XXX")
end -- if
Basically, I need both of those conditions to be true, before it fires "XXX"
I also thought about triggering HP: * ( * ) GP: * ( * ) XP: ( * ) Align: ( * ) and using that to consistently update two variables too. But im unsure how to call variables inside the send box.
if GP > 200 and (AS == "barely evil" or AS == "evil" or AS == "quite evil" or AS == "very evil" or AS == "extremely evil" then
DoAfter(math.random(1)+1, "XXX")
end -- if
but both of those solutions gives me error, I would appricaite the help, if anyone could help me. One other thing is when I see this "HP: * ( * ) GP: * ( * ) XP: ( * ) Align: ( * )" in my mud - can it update the variables and fire off XXX if both conditions inside those variables are met?
I've got a MUD game I play and I have a custom monitor that fires off every 3-6 seconds and it looks like this:
HP: * ( * ) GP: * ( * ) XP: ( * ) Align: ( * )
when I see that, I have a trigger that does this.
if %3 > 200 then
DoAfter(math.random(1)+1, "XXX")
end -- if
So, if that third *, my GP, is above 200 I send a MM command. That works perfect but would like to expand it.
In that * next to align, there can be several things appear there. "extremely good", "very good", "quite good", "good", "barely good", "neutral", "barely evil", "evil", "quite evil", "very evil", and last but not least, "extremely evil"
I play an evil god, and can only cast the MM command if my alignment is Barely evil - extremely evil. What I wanted to do is follows, but I dont know the syntax.
if %3 > 200 and %6 == "barely evil|evil|quite evil|very evil|extremely evil" then
DoAfter(math.random(1)+1, "XXX")
end -- if
Basically, I need both of those conditions to be true, before it fires "XXX"
I also thought about triggering HP: * ( * ) GP: * ( * ) XP: ( * ) Align: ( * ) and using that to consistently update two variables too. But im unsure how to call variables inside the send box.
if GP > 200 and (AS == "barely evil" or AS == "evil" or AS == "quite evil" or AS == "very evil" or AS == "extremely evil" then
DoAfter(math.random(1)+1, "XXX")
end -- if
but both of those solutions gives me error, I would appricaite the help, if anyone could help me. One other thing is when I see this "HP: * ( * ) GP: * ( * ) XP: ( * ) Align: ( * )" in my mud - can it update the variables and fire off XXX if both conditions inside those variables are met?