|
Ren Beginner
Joined: 04 Apr 2003 Posts: 27
|
Posted: Fri May 30, 2003 9:52 am
nesting string variables in a variable |
@evil = troll|orc
@good = priest|priestess
@both = @evil|@good
Is this possible?
I tried this test trigger:
Pattern: You killed (%w)
#if (%1 ~= @both) {#show %1}
Unfortunately it shows me whatever %1 is, whether or not it is under @both
- Ren |
|
|
|
mrdark Novice
Joined: 25 May 2003 Posts: 37
|
Posted: Fri May 30, 2003 10:27 am |
try this:
#if (%ismember(%1,@both)) {#show %1} |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri May 30, 2003 12:34 pm |
It's easier to do the check agaisnt the stringlist in the pattern:
#TRIGGER {You killed ({@both})} {#SHOW %1}
Kjata |
|
|
|
|
|