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.
|