View Full Version : Notice/respond to entrance
AestheticDeath
10-03-2006, 07:52 PM
Along the lines of that last thread.. How can I notice a person who enters a room, save the name, and perform an action based on that persons name?
Latrinsorm
10-03-2006, 08:23 PM
With the Jamus Scripting Engine or Lich (and I think with UltraTech).
Shaelun
10-03-2006, 09:23 PM
If you're talking about vulturing wounds, I don't recommend it; you'd be shocked at the level of enmity that can bring (not to mention unprovoked attacks and reports to GMs, etc.).
Whatever you have in mind, with Wizard or StormFront, it would be very, VERY tedious. Latrinsorm's right, use Lich, JSE (Jamus' Scripting Engine), UltraTech, zMUD, or whatever else your fancy is.
JSE:
matchbool dostuff %name% just arrived.
matchwait
dostuff:
put Hi %name%
exit
Lich:
name = matchfind "? just arrived."
put "Hi #{name}"
exit
... and I dunno about any others. That's also quite literally the only JSE script I've ever written, so take it with a grain of salt.
AestheticDeath
10-03-2006, 11:17 PM
Awesome.. now I guess I have to install lich and learn how to script in it..
Didnt you say something about it being similar to Ruby? Or being programmed with Ruby.. Or am I pullin things outta no where again?
Shaelun
10-04-2006, 01:04 AM
I can see why you'd be confused. The program includes a slightly modified Ruby interpreter and a bunch of stuff I wrote for it; so Lich scripts have access to a lot of stuff that a stock Ruby interpreter doesn't include and can't execute, but Lich can run any stock Ruby program -- so it's more than just "like" ruby, it is Ruby (with a lot of MUD-designed junk added).
The pieces that can end up being executed thousands of times a second are written in plain C for efficiency reasons, as are the pieces where for some reason or another I just needed a low-level language.
For the other parts that even a TI-83 calculator would have been efficient enough to implement, I stuck to Ruby -- it's just a lot faster and easier than the alternatives.
If you wanna know more or d/l it, the site is http://lich.gs4groups.com
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.