![](templates/Classic/images/spacer.gif) |
lifegod Newbie
Joined: 23 Feb 2004 Posts: 3 Location: USA
|
Posted: Mon Feb 23, 2004 11:02 am
Newbie type questions... |
Okay I have a couple problems, and looking through back messages I should note that do all my triggers, aliases, etc stright into the tabs in the "settings in memeory" part of zmud so I probally wont understand much of the code.
Anyway here goes...
Problem 1: Is there a way to allow multiple aliases or triggers to cause the same affect? For example I would like to use fireshield fshield and fs all for aliases for cast 'fireshield' %1 without having to make 3 seperate aliases. The same applies for color changing triggers and sound triggers.
Problem 2: Adding sounds to some of my spells, and since zmud allows only 1 sound at a time is there a way to set the presidence level of the sounds? I havent run into a problem yet but Im jsut planning ahead.
Problem 3: Ive set up color changing triggers to equipment as it get worn. Slightly worn, heavily worn, falling apart, etc so that it get darker red as the equipment get worse. However I couldnt figure out how to do this to the equipment itself so I set the colors to the slightly worn message following the equipment. I know I can change the whole line but It got annoying, so Im looking for a way to grab the name of the equipment following the part of body it is worn on.
Lines are set up like this:
[7] <worn on head> a spiked helm (blue glow, humming) [slightly worn]
ideally I would like to change the a spiked helm (blue, humming)
to a different color as it get more worn while also changing the [slightly worn] message black to make it disappear into the background
Thats it, thanks for any help
Lifegod |
|
|
![](templates/Classic/images/spacer.gif) |
Darker GURU
Joined: 24 Sep 2000 Posts: 1237 Location: USA
|
Posted: Mon Feb 23, 2004 4:06 pm |
Problem 1: Yes, but it's not worth the grief. Just create 3 aliases to get the job done, it's easier.
Problem 2: Not that I know of. Use short sounds. :P
Problem 3:
#SUB is how I'd do it, but it's not exactly straightforward.
You'll have to capture the whole line (the pattern matching ought to be a fun job) and use #sub to replace the line, and %ansi to color it. |
|
|
![](templates/Classic/images/spacer.gif) |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Feb 23, 2004 6:58 pm |
1. An alias can only have one name. If you want fireshield, fshield, and fs to all stand for "cast 'fireshield' %1" then you'll need three aliases. However, it is possible for two of them to just refer to the third.
Name: fs
Value: cast 'fireshield' %1
Name: fshield
Value: fs
Name: fireshield
Value: fs
3. I'd use #PCOL since you just want to change colors. This will also give you far more shades of red than %ansi, which only allows two. See the Help for colorname to get a complete list of the colors #PCOL supports by name.
Pattern: ~[%d~] ~<worn on *~> (*) (~[slightly worn~])
Value: #PCOL bisque %x1;#PCOL black %x2 |
|
|
![](templates/Classic/images/spacer.gif) |
Darker GURU
Joined: 24 Sep 2000 Posts: 1237 Location: USA
|
Posted: Mon Feb 23, 2004 8:46 pm |
Hrm. I should give Lightbulb my Guru tag.
|
|
|
![](templates/Classic/images/spacer.gif) |
Arcane_of_Discworld Wanderer
Joined: 29 Jan 2002 Posts: 99 Location: UK
|
Posted: Tue Feb 24, 2004 1:42 am |
quote: Originally posted by Darker
Hrm. I should give Lightbulb my Guru tag.
Agreed ![Wink](images/smiles/icon_wink.gif) |
|
|
![](templates/Classic/images/spacer.gif) |
lifegod Newbie
Joined: 23 Feb 2004 Posts: 3 Location: USA
|
Posted: Wed Feb 25, 2004 7:45 am |
Cool that worked thanks a lot =)
Keep an eye out for all my other problems Ill sure Ill posting soon ;)
Lifegod |
|
|
![](templates/Classic/images/spacer.gif) |
|
|