|
Trind Beginner
Joined: 04 Jan 2003 Posts: 12 Location: Sweden
|
Posted: Mon Nov 24, 2003 3:31 pm
Variables |
Hi i have this line.
Limdul R'yleh the female drow
and wanna make it
Limdul(Enemy) R'yleh the female drow
With this this type of trigger
{@enemy}
Since i have a list of many enemies.
Anyway todo it? |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Mon Nov 24, 2003 5:28 pm |
#tr {^({@enemy}) (*)} {#sub {%1~(Enemy~) "%2"}}
Put () around {@enemy}
This will make it a wildcard
Use sub to replace the line
I used two spaces between #sub and the text because this helps with trigger loops
Also I inclose what I wantd into a {} to make sure every thing got evaluated befor being #sub'd out. |
|
|
|
Trind Beginner
Joined: 04 Jan 2003 Posts: 12 Location: Sweden
|
Posted: Mon Nov 24, 2003 6:02 pm |
Worked greatly thanks
|
|
|
|
|
|