Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Command trigger for progs (http://www.topmudsites.com/forums/showthread.php?t=285)

Jaegar 03-16-2003 01:25 AM

I am working on a Rom2.4 mud and have a builder asking if there is a way to add a command trigger into the mprog/oprog/rprog code.  Here is the note he left me.

The "command" flag.  this would make a prog trigger when the player enters a command.
Such as "enter waterfall".  By typing that, the player would trigger the program.

Does anyone have any idea how this could be accomplished?  Any assistance would be very much appreciated.

Thanks in advance,

Jaegar

LordKiev 04-03-2003 06:41 PM

I'm not sure, I'm not an MPROG person, but instead, look at the logical result of that command. Use 'act' for entering a waterfall (if act even travels on moves, I'm not sure) to grab player moves. I also know there's a trigger for exit/enter. But instead of catching 'give (xyz) 100 silvers', trigger on the result from that.


All times are GMT -4. The time now is 06:29 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022