Can mulitple variables be set on the same line?
here is what I am thinking (alias and trigger set to tag a mob in a specific direction and escape the way you came in)...
Command:
tag e fire
This would get you the following results...
Set variable @direction to East
Set Variable @target to Fire
move @direction
Kill @target
escape the reverse of @direction which we will call @escapedir (this would be a trigger that would set @direction to the reverse of whatever @direction is).
so the idea is that instead of typing out E;kill fire;escape w you could just do: t e fire
Not sure it is worth it but could be cool
issue is that I have two variables on the command line (@direction and @target) to set.
Thanks
Depok
Tag the mob issue (two variables being set in command line
-
- Sojourner
- Posts: 176
- Joined: Sun Feb 04, 2001 6:01 am
- Contact:
-
- Sojourner
- Posts: 176
- Joined: Sun Feb 04, 2001 6:01 am
- Contact:
Ok, I was bored so threw one together.
#ALIAS tag {#var target %1;#var direction %2;#if (@direction = "u") {#var revdirection d} {#if (@direction = "d") {#var revdirection u} {#if (@direction = "n") {#var revdirection s} {#if (@direction = "s") {#var revdirection n} {#if (@direction "e") {#var revdirection w} {#if (@direction = "w") {#var revdirection e} {#echo No direction given!}}}}}};@direction;kill @target;escape @revdirection} "tag_trig"
type "tag fire e" it sends you east, sends "kill fire", and then escapes w.
only thing that will screw it up is if there is no direction back where you came from, in that case, you'll just escape in some random direction per mud code.
Oh, cut and paste into a txt file and import it, or make sure you have "expand vars" turned off in "view/prefrences/general/script parser" if you paste it into the command line.
#ALIAS tag {#var target %1;#var direction %2;#if (@direction = "u") {#var revdirection d} {#if (@direction = "d") {#var revdirection u} {#if (@direction = "n") {#var revdirection s} {#if (@direction = "s") {#var revdirection n} {#if (@direction "e") {#var revdirection w} {#if (@direction = "w") {#var revdirection e} {#echo No direction given!}}}}}};@direction;kill @target;escape @revdirection} "tag_trig"
type "tag fire e" it sends you east, sends "kill fire", and then escapes w.
only thing that will screw it up is if there is no direction back where you came from, in that case, you'll just escape in some random direction per mud code.
Oh, cut and paste into a txt file and import it, or make sure you have "expand vars" turned off in "view/prefrences/general/script parser" if you paste it into the command line.
Who is online
Users browsing this forum: No registered users and 10 guests