`Newbie Needs Change Variable Script

Posted by Babochka on Tue 14 Jun 2005 02:48 AM — 3 posts, 15,806 views.

USA #0
To Life Immortal

I have an alias which my bard uses to fight with.

alias ddd

jab @xx
slash @xx
punch @xx
kick @xx

the alias runs well but I need to know how to change the variable stored in xx.

Is there a way I may write an alias which can change the variable?

Thanks


Babochka
USA #1
Didn't you just ask about this in the other thread?
Anyway, there's two ways of doing it, I'll show you both.
The first doesn't use any scripting (and is language independant), the second uses scripting.

<aliases>
  <alias
   match="target *"
   enabled="y"
   variable="xx"
   send_to="9"
   sequence="100"
  >
  <send>%1</send>
  </alias>
</aliases>

and

<aliases>
  <alias
   match="target *"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>setvariable "xx", "%1"</send>
  </alias>
</aliases>
USA #2
To Life Immortal

I wanted to say thank yo ufor helping me with MUSHClient. Your solution works like a charm!

Thank you Flannel



Babochka