Enchanter script help

Scripts and support for your favorite MUD client.
Minofagal
Sojourner
Posts: 224
Joined: Sat Dec 24, 2005 11:32 am
Contact:

Enchanter script help

Postby Minofagal » Sun Jan 22, 2006 3:53 am

Okay, this might be sloppy but think it might make xping alot easier (been at it 8 hours and chaning groups i am getting names confused).

What I'm looking do is this:

I want to be able to have an alias like -setrog- to find all rogues in group and set them to different alias like hr1 (haste rogue 1), etc. and same for globe.

but do it for all rogues in group

Any ideas?
Kaisi tells you 'get smirn, he's better than me'
--HELP! My legs aren't long enough!--
Marrus
Sojourner
Posts: 46
Joined: Tue Jan 25, 2005 7:59 pm
Contact:

Postby Marrus » Mon Jan 23, 2006 5:21 am

To start with, you can't accomplish that using just an alias alone.

Your alias setrogue will have to turn on at least one trigger that will parse the output of the command who ingroup (could do who rogue ingroup but this will pass up anon types that you may at least want to be aware of).

So, a good place to begin is learning how to make a trigger that examines multiple lines of output.
Ambar
Sojourner
Posts: 2872
Joined: Tue Jul 02, 2002 5:01 am
Location: Our House in Va.
Contact:

Postby Ambar » Mon Jan 23, 2006 11:54 am

I dont use triggers for chanter. I use aliases tho, and set them up manually each time.

this is the alias ..
#al {glr}{glance rog;glance 2rog;glance 3rog;glance 4rog}

this is the variable
#va {rog}{Jim}
#va {2rog}{Leo}
#va {3rog}{{Joe}
#va {4rog}{Bob}

now if i type glr it glances at Jim, Leo, Joe, Bob in order

this is how i manually set them up at first
rog=Jim
2rog=Leo
3rog=Joe
4rog=Bob

I do the same thing for each class (warr, cler, invo, etc)

I can also group them together to glance everyone ..

#al {gtt}{glr;glw;glc;gli;}
so now if I type gtt it glances everyone I have assigned

To be honest I also have a trigger that gags the you dont see that here or whatever the text is, so if one of my assigned isnt in the room it doesnt spam me

I'm sure someone out there has something more difficult, more convoluted, that if you just type group it adds everyoen in there, but I dont use that, I dont like to mechanicalize everything about a class, you need to learn to do it manually or at least just simplify it.

-Telina drow enchanter
-Alieshie grey elf enchanter
"When a child is born, so is a grandmother."

-Italian Proverb
Minofagal
Sojourner
Posts: 224
Joined: Sat Dec 24, 2005 11:32 am
Contact:

Postby Minofagal » Mon Jan 23, 2006 12:00 pm

nogs ambar.. i'm just a slow typer so i thought i'd try and save time while group is gathering etc. so i don't make everyone wait when i get into bigger groups. guess i just need to type faster :P hehe

thanks for feed back though

i jerry-rigged it for now

#alias settank {#var @tank = %1} etc. for rogues also. At this point i haven't needed to do clerics but i guess from what i'm reading in other posts i should go ahead and set that up too. i wasn't aware that you could glance at the whole group though so i need to start looking into that and what feedback i get from the mud when i do it.
Kaisi tells you 'get smirn, he's better than me'

--HELP! My legs aren't long enough!--
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Mon Jan 23, 2006 11:33 pm

Not sure you want to learn zMud, or just want the scripts. But...
Here is a primer to a few concepts.

Lists:
you need to make a list, a list looks sort of like
Anne|Bob|Casper

to add to a list you use
#ADDITEM RogueArray Anne
#ADDITEM RogueArray Bob
#ADDITEM RogueArray Casper

To clear a list
@RogueArray =

Then you need the aliases. since your rogues always is in the list just make them like this

#AL hr1 {cast 'haste' @RogueArray.1
#AL hr2 {cast 'haste' @RogueArray.2
#AL hr3 {cast 'haste' @RogueArray.3

Then you need a trigger to fill the array. the important here is you make a class you turn on before you begin, and turn off after you end the who.

#t+ BuildRogueArray
@RogueArray =
who ingroup rogue

then inside the class BuildRogueArray is a trigger
#tr {~] (%w)} {#ADDITEM RogueArray %1}
#tr {Total visible} {t- BuildRogueArray}

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 6 guests