|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Thu Apr 03, 2003 9:24 pm
Trigger problem |
Ok this is weird:
#trigger {something} {inv}
#trigger {^%s({@item})$} {#echo %ismember("%1",@item)}
#var item dog|cat
#alias inv {#show ~ dog;#show ~ cat}
when i type Something and hit enter the inv is sent,it triggers:
dog
cat
and is supposed to give me:
dog
1
cat
2
but it gives me this instead:
dog
1
cat
2
2
any ideas?
I have tried to rewrite this several times but it keeps doint it.
(6.40)ver
megamog75
Keeper of the only printable help files for Zmud. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Apr 04, 2003 2:16 am |
The second 2 probably comes from another trigger. It didn't show up when I tested your script myself.
LightBulb
Advanced Member |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Fri Apr 04, 2003 6:09 pm |
there are noother triggers in this character,but i did figure it out late ;ast night it seems it is just a glitch when useing a trigere to alias back to trigger.
when i changed it from this:
#trigger {something} {inv}
to this:
#trigger {something} {invs} and typed inv when i saw invs i got the result I was looking for. I still have to test this inside the mud but I think it will do.
Thank you :)
megamog75
Keeper of the only printable help files for Zmud. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Apr 04, 2003 7:30 pm |
You're right. I saw the alias, so I was testing by typing "inv". When I typed "something", I got the same results you first posted.
I have no idea what causes this, but it's obviously a bug.
LightBulb
Advanced Member |
|
|
|
|
|