Help - Search - Members - Calendar
Full Version: Targetting(zmud)
Achaea's Forums > Off-Topic > Tech Support
Synbios
Actually, this thread is directed to Miss Lenneth, who was asking about targetting, but anyone who is new to zMUD and/or is curious as to how targetting can be done in zMUD can also benefit.

CODE
#ALIAS t {
  #VAR victim %1
  enemy @victim
  #ECHO {%crlf[VICTIM] - Targetting @victim}
  }


This code means that when you type 't', the system will read the first name that comes after your 't' command and will assign it to a variable(in this case 'victim'). Example would be 't lenneth'. The system will read the 't' command, and will assign the first thing that comes after it, which is 'lenneth', and puts the name in the @victim variable. In my code, I do two additional things as well: enemying them(so that rites will hit them too) and, for a personal touch, echoing my target back to me.

Now, if, say, you want to attack your target, make an alias that looks like this

CODE
#ALIAS dslt {
  stand
  dsl @victim
  }


This code is for the alias DSLT, which will cause you to dsl whoever you targetted(read: assigned to 'victim' variable). The 'stand' command is a personal touch as well, as a pre-emptive check as to whether I was unknowingly proned or legbroken. Anyway.

Now, say you want to use firelash instead, do this:

CODE
#ALIAS cflash {
  cast firelash at @victim
  }


Pretty much does the same thing, only with firelash.

Lenneth
Wow. Thanks, Synbios. I'm touched.
Synbios
No problemo, Miss Lenneth. Other tidbits: If you have targetting in Weaponry, you can even set up aliases/buttons to do this:

CODE
#ALIAS trendlarm {
  thornrend @victim left arm
  }


Though I'm not sure if it works for Viridians(I know it does for DSL - ex. DSL Lenneth LEFT ARM).
Snareman_kindfire
It does, along with maul, and several other melee attacks.

Edit: I'd also like to add I usually have another command added in pt TARGET: @t, which tells the party I'm in the target, but if you want to add this, make sure you are the leader and if not have it off because you will loop like crazy with another person if you don't understand what's going on.
Demfrax
QUOTE (Synbios @ Oct 28 2009, 04:40 AM) *
No problemo, Miss Lenneth. Other tidbits: If you have targetting in Weaponry, you can even set up aliases/buttons to do this:

CODE
#ALIAS trendlarm {
  thornrend @victim left arm
  }


Though I'm not sure if it works for Viridians(I know it does for DSL - ex. DSL Lenneth LEFT ARM).



combat wise it would prob be easier to use tra as the alias, cause typing that in the middle of combat would be a pain. I have all my dsls set to

d
dra
drl

etc etc
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.