|
thalor42 Beginner
Joined: 15 Nov 2004 Posts: 18
|
Posted: Thu Jul 14, 2005 5:00 pm
Using a var as a list of things to trigger from |
Can you program a var to be a list of items to drop if you pick them from a corpse....
IE
You get a goblin shortsword
You get a ring of pain
You get a goblin helm
the var would hold:
---------------------
goblin shortsword
goblin helm
and would trigger like:
You get (@varname)
Is this possible?
Am I explaining it well?
Thanks
-T |
|
|
|
godzilla1 Beginner
Joined: 14 Jul 2005 Posts: 22 Location: Budapest
|
Posted: Thu Jul 14, 2005 5:08 pm |
Correct. Need to know the exact pattern though. (Is there space, punctuacon, end line after the items?)
The pattern of the trigger should be
^You get a ({@varname})(.)
or
^You get a ({@varname})(%q) if not end line. |
|
|
|
adamwalker Apprentice
Joined: 12 Mar 2005 Posts: 195
|
Posted: Thu Jul 14, 2005 7:34 pm ({@citizens}) |
This gave me an idea.. i made a trigger
({@citizens})
and it contained
#cw bold,white
so every word in the citizens variable list would be colored white...
eg @citizens = bob|zugg|johnnymac|etc
but it only colors the first in the list. any ideas? |
|
|
|
adamwalker Apprentice
Joined: 12 Mar 2005 Posts: 195
|
Posted: Thu Jul 14, 2005 7:36 pm |
oh forget that. after i made it again it works. thanks!
|
|
|
|
godzilla1 Beginner
Joined: 14 Jul 2005 Posts: 22 Location: Budapest
|
Posted: Fri Jul 15, 2005 5:54 am |
tThe ({@citizens}) itself isnt enough in the pattern.
eg @citizens = bob|zugg|johnnymac|etc
it will trigger on bobo , azugg etc.
Put a wild char after variable, and either make case sensitive trigger, either put wild char before wariable too.
({@varname})(%q) <- similar to this |
|
|
|
|
|