I'm trying to familiarize myself with MUSHclient, as it seems to have all the things I need, among them an Infobar (like in my old client). But I just can't get the Infobar to work correctly, for example I'm trying to set an alias to update and display the current value of the variable @target in the Infobar as follows:
- Alias: tar *
- Send:
world.SetVariable("target", "%1")
world.InfoClear()
world.InfoBackground("green")
world.InfoColour("yellow")
world.InfoFont("FixedSys", 12, 0)
world.Info("Target: ", "@target")
- Send To: Script
The above alias does set the value of @target with what I input (e.g. "tar joe"), but instead of this it displays the previous value of @target in the Infobar. It's always whatever @target was previously, never the one I just set... What am I doing wrong?
Another thing I'd like is substitutions, but I gather these aren't implemented? I tried to search for a method how to do it yourself, but didn't really find clear instructions... I take it a simple trigger defined as "Send to output" would not replace the text, but just output both what came from the mud and the trigger text?
- Alias: tar *
- Send:
world.SetVariable("target", "%1")
world.InfoClear()
world.InfoBackground("green")
world.InfoColour("yellow")
world.InfoFont("FixedSys", 12, 0)
world.Info("Target: ", "@target")
- Send To: Script
The above alias does set the value of @target with what I input (e.g. "tar joe"), but instead of this it displays the previous value of @target in the Infobar. It's always whatever @target was previously, never the one I just set... What am I doing wrong?
Another thing I'd like is substitutions, but I gather these aren't implemented? I tried to search for a method how to do it yourself, but didn't really find clear instructions... I take it a simple trigger defined as "Send to output" would not replace the text, but just output both what came from the mud and the trigger text?