I am trying to set an alias where I can def up when I enter realms and some things require mineral balance, or that I regain equlibrium. How can I set a delay to allow for this?
I don't know about the HTML client, to be honest, but the general best way to do that is to make a trigger for the balance, and every time you recover, do the next thing on a list. Track defences/etc with variables.
As Trevize said, the best way probably isn't to use a delay (they can be thrown off by all kinds of things). I've only used the HTML5 client a small amount, and didn't do all that much with it, but it uses JavaScript so you want the setTimeout function:
var delayedAction = setTimeout(function() { // do something }, 1000);
The // do something is where you'd put the action you want to perform; I can't remember the function used to send something to Achaea. 1000 is the delay in milliseconds (so that's a 1 second delay). The delayedAction variable also stores the timeout so you can, if you wish, get rid of it before it goes off using the clearTimeout function:
this looks nice! I was looking for a timer that updates, and prints the time I have left every second. This is what I have got so far. Its not updating the timer for some reason. any ideas?
hey guys im really really bad at doing this kind of thing! what i want is to set an alias or trigger to harvest herbs. but i require a delay to compensate for balance recovery! aslo im that bad a writing these that i would like to ask for a blow by blow on ow to do it
Answers