A few changes, newbie changes..

Posted by Mozzy on Mon 10 Feb 2003 08:58 AM — 5 posts, 18,612 views.

#0
Hey guys, I got in all compiling, changed a few of the things round..

Okay, I have looked on a few diffrenet tutorials, but I cant seem to find out how I edit the battle messages? How do I go about it? At the start, when you first start a battle I want a message, then custom messages all through that. How do I go about it?

Also - how do I set my pretitle? I cant figure it out! 'Supreme Entity' is starting to annoy me >.<

- Mozzy
Greece #1
What pretitle? You mean the rank?
Australia Forum Administrator #2
"Use the Source, Luke" ...



You can answer questions like that by doing a "grep" in the source directory for SMAUG (or a Find In Files if you are using some sort of Windows GUI editor). eg.


$ grep -n Supreme *.c
act_info.c:2640:        case MAX_LEVEL -  0: class = "Supreme Entity";  break;
db.c:4285:      case MAX_LEVEL -  0: towizfile( " Supreme Entity" );    break;
player.c:351:       case  10:  send_to_pager( "You are a Supreme Entity.\n\r", ch );    break;
player.c:770:       case  10:  send_to_pager( "You are a Supreme Entity.\n\r", ch );    break;
player.c:1150:        case  10:  send_to_pager( "You are a Supreme Entity.\n\r", ch ); break;
update.c:1908:      case 21: t = "Ahh... the power of a Supreme Entity... what to do...\n\r";   break;


That shows what files to edit (and what line numbers), then do a "make" if you are using Cygwin.
Amended on Mon 10 Feb 2003 10:51 PM by Nick Gammon
#3
Ahh okay, cool. What about custom battle mesgaes and stuff?

- Mozzy
USA #4
Battle damage messages are done in fight.c, theyre kinda burried and rather difficult to search for given the usually odd colorations and extra chars involved to screw up the search pattern.