I've been bumming around on here for the past couple hours but I've come up with bumkis, either the question's never been asked or my searching skills are rusty. Anyway, this is the issue I'm running into. Currently I have a trigger setup to fire an alias once the start room's name shows up, the alias then uses a series of wait commands and a timer for attacking to clear each room in a circuit, before finally ending up at the start room, which then repeats the cycle.
Now, the issue with this current setup is that since it runs off a wait alias and timer, I'm not only losing a lot of efficiency(Some rooms may or may not have mobs in it, wasting 15 seconds which is what the wait in the alias is set to), and the attack doesn't have 100% chance of landing(It's a room clearing skill), sometimes it gets hitched up with trying to move while still being in combat, or it leaves the room with mobs still in it.
What I've been toying around with and trying to do, is have the alias only continue it's rotation after "There's no one else here to attack!" comes back from my skill, which would remove the need for the wait timer in the alias. But sadly, I have no idea how to actually get that interaction to take place. I'm completely new to scripting, so I was hoping someone might be able to fill me in on how I could set this up.
This is a portion of the alias, the timer is just "hitall" every second, and the trigger is just a simple world.execute trigger to fire off of the room name, the "elbow"(it oneshots the mobs) is just to give me some room for error in the case I'm still in combat before it tries to move to a new room.
Now, the issue with this current setup is that since it runs off a wait alias and timer, I'm not only losing a lot of efficiency(Some rooms may or may not have mobs in it, wasting 15 seconds which is what the wait in the alias is set to), and the attack doesn't have 100% chance of landing(It's a room clearing skill), sometimes it gets hitched up with trying to move while still being in combat, or it leaves the room with mobs still in it.
What I've been toying around with and trying to do, is have the alias only continue it's rotation after "There's no one else here to attack!" comes back from my skill, which would remove the need for the wait timer in the alias. But sadly, I have no idea how to actually get that interaction to take place. I'm completely new to scripting, so I was hoping someone might be able to fill me in on how I could set this up.
Quote:
Send ("hitall")
wait.time (15)
Send ("s")
Send ("hitall")
wait.time (15)
Send ("elbow")
Send ("w")
Send ("hitall")
wait.time (15)
Send ("elbow")
Send ("w")
Send ("hitall")
wait.time (15)
Send ("elbow")
Send ("n")
Send ("hitall")
wait.time (15)
Send ("s")
Send ("hitall")
wait.time (15)
Send ("elbow")
Send ("w")
Send ("hitall")
wait.time (15)
Send ("elbow")
Send ("w")
Send ("hitall")
wait.time (15)
Send ("elbow")
Send ("n")
This is a portion of the alias, the timer is just "hitall" every second, and the trigger is just a simple world.execute trigger to fire off of the room name, the "elbow"(it oneshots the mobs) is just to give me some room for error in the case I'm still in combat before it tries to move to a new room.