[crossfire] Maps passwords/phrases text

Nicolas Weeger nicolas.weeger at laposte.net
Tue Mar 13 14:00:58 CDT 2007


Hello.

>   The real solution here is to use keywords instead of the actual word,
> like $SCORN_PASSWORD.  So you'd have something like:
>
> @match $SCORN_PASSWORD
> you look ok, ...

Agreed there, shouldn't be too hard. Also makes everything way more souple, 
not linked to maps.
Of course, there should be appropriate warnings when a variable isn't found in 
the substitution file.

> Method 1:
<snip>

Not really that great IMO, for the reasons you give.


> Method 2:
<snip>

I like that method.

IMO, that could even be done through a small plugin - intercept the 
EVENT_MAPLOAD and do the substitution.

> Method 3:
<snip>

This method has one drawback, in that it adds some overhead to every NPC 
talk / magic ear/mouth.
Note that this is similar to what I did for the quest management stuff, btw 
(change the message dynamically).

If I were to choose, I'd choose #2 :)


I like both methods #2 and #3, because they give DM some more power over the 
world. IMO we should move to that kind of system for game-related options - 
let DMs customize.
Arguably, it's the role of the server administrator, but he doesn't always 
have the time for everything, and currently many options require a server 
restart.
For instance, if we ever implement shop opening hours, that'd be something I'd 
let DMs tweak ingame directly :)


Nicolas
-- 
http://nicolas.weeger.free.fr [Petit site d'images, de textes, de code, bref 
de l'aléatoire !]



More information about the crossfire mailing list