View Single Post
Old 05-05-2006, 05:04 PM   #7
KaVir
Legend
 
KaVir's Avatar
 
Join Date: Apr 2002
Name: Richard
Home MUD: God Wars II
Posts: 2,052
KaVir will become famous soon enoughKaVir will become famous soon enough
Yeah, that's the same approach I used for the dynamic descriptions snippet I released back in 1999.

I use the same sort of thing, and actually combine it with the dynamic description tags (which are basically used everywhere), so that the code ends up looking like:

apCreature->PutSense( IThing::eSIGHT, "{name} gives {his/her} {weapon} a hard tug as it coils around {opponent}'s {opponent.legs}.\n\r" );

It's a pretty effective approach IMO - much less hassle than putting together strings each time, and much more readable than the $N/$n/$S/etc tags used by Diku.
KaVir is offline   Reply With Quote