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
fisher1231
Beginner


Joined: 27 Sep 2004
Posts: 18

PostPosted: Mon Oct 11, 2004 5:03 pm   

Would #TRIGGER {%inwalk( )==0} work?
 
Would #TRIGGER {%inwalk( )==0} work?

Is there any way to work in a trigger like this, im trying to use it, but not working, just wondering if its possible and which modifications has to be made.
_________________
Johnny C Fisher
Reply with quote
The Raven
Magician


Joined: 13 Oct 2000
Posts: 463

PostPosted: Mon Oct 11, 2004 8:49 pm   
 
It needs to be an expression trigger. You can change the trigger type on... er... on the screen that I can't recall offhand, and don't have since I just reformatted my computer. But I believe it's on the 3rd tab of the Trigger page, the options tab, in the upper right corner.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Oct 12, 2004 12:19 am   
 
Actually that won't work as an expression trigger, Expression triggers are evaluated whenever a variable changes NOT when the value of a function changes.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
fisher1231
Beginner


Joined: 27 Sep 2004
Posts: 18

PostPosted: Tue Oct 12, 2004 4:01 am   
 
crap...hey nex, I'm using that alias that you made and it works fine, EXCEPT im trying to make a couple separate scenarios and i can do an if inside onroomenter but i'd rather do onpickuproomenter and ondropoffroomenter, and a couple others, but if I change the name of the alias it dont work, and I do change the name where the alias is being called as well...I can't figure out the prob for the life of me...any ideas?
_________________
Johnny C Fisher
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Oct 12, 2004 12:30 pm   
 
The Only Alias's automaticly executed by zmud are as follows

ONROOMENTER //Executes on entry into a room via mapper
ONWALKEND //Executes in last room of a speedwalk //currently broken in 7.05
ONROOMCREATE //Executes whenever a new room is created
ATCONNECT //Executes upon connection to a mud
ATDISCONNECT //Executes upon disconnection
ATEXIT //Executes when Exiting Zmud? I Think.

It doesn't hurt to expand your onroomenter alias to include ifs. Perhaps if you posted the code you have and what you need it to do someone will help you out.
_________________
Zmud Support Library
Zmud Knowledge Base
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