Welcome to the Builder Academy

Question Converting to uppercase in fight.c combat messages?

More
17 May 2019 17:10 #8395 by Sapphire
I'm trying to make my fight/combat messages for melee weapon type damage display the name of the enemy in all uppercase text, but I cannot seem to figure out how to make this work. Does anyone have an idea for how to make this work?

Please Log in or Create an account to join the conversation.

More
21 May 2019 21:49 #8396 by WhiskyTest
Damage messages all go through the act() function. Any changes you make there will affect the whole Mud though..
It wouldn't be a straightforward undertaking I suspect

Please Log in or Create an account to join the conversation.

More
23 May 2019 19:55 #8397 by thomas
In your messages, add $U before $N :

Your smash obliterates $U$N!

This is the "uppercase next word" flag. Alternatively, add $u after:

Your smash obliterates $N$u!

Which uses the "uppercase previous word" method.

Please Log in or Create an account to join the conversation.

Time to create page: 0.420 seconds