Code: Select all
routine NewMessages(r, num, a, b) ! The NewMessages routine may be
{ ! replaced, and should return true
return false ! if a replacement message <num>
} ! exists for routine <r>
Code: Select all
case &CheckReach
{
select num
case 1
{
print "Except that "; The(parent(a)); \
MatchPlural(parent(a), "has", "have"); \
" "; The(a); "."
}
case 2
{
print "Except that "; The(parent(a)); \
MatchPlural(parent(a), "doesn't", "don't"); \
" want to give "; The(player, true); \
" "; The(a); "."
}
case 3: print CThe(player); " can't reach "; The(a); \
" from "; The(parent(player)); "."
}
Code: Select all
replace NewMessages(CheckReach, 3)
{ [My modification here.] }
I actually haven't tried to create a different message in place of the library message yet, because I haven't figured out how to do what I want it to (de-capitalize room names). But I can't experiment to try to do that until I can successfully replace the message.