Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net