A few inquiries

Posted by Akula on Tue 15 Jan 2002 01:32 AM — 8 posts, 28,541 views.

#0
I dislike the movement point system and wish to remove it from the game, how do I go about doing this? Also I will need to change the default prompt for that and don't know how to.
I downloaded this bank snippet where the NPC needs a banker flag. In area editor is there a way to add this flag?
And if I do indeed put banking into the game, I want the player to lose all the money on their corpse at the time of death.
Someone please help me with this stuff :)
Australia Forum Administrator #1
Quote:

I dislike the movement point system and wish to remove it from the game, how do I go about doing this?


Look for references to ch->move and remove them.

For example:


if ( ch->move <= 0 ) {
send_to_char( "You're too exhausted to flee from combat!\n\r", ch );
return;
}


As for the default prompt, remove "%vmv" from functions default_fprompt and default_prompt.

Quote:

In area editor is there a way to add this flag?


You can add or change flags in the Area Editor by editing the configuration file. You can only do this for registered copies, however with an unregistered copy look at the smaugconfig.dat file to see the general idea.


Quote:

And if I do indeed put banking into the game, I want the player to lose all the money on their corpse at the time of death.
Quote:


You could do that by adding this:


ch->gold = 0;


to wherever the code is for dying (fight.c?).

Amended on Tue 15 Jan 2002 02:17 AM by Nick Gammon
#2
Thanks a lot for your responses to my questions, Nick Gammon, they really did help me a whole bunch :)
One last brief question I forgot to post before I'm all set:
Your starting level is at level 2, is it possible to make it that you start at level '0' and on completion of the newbie area you become level 1?
Thanks again for your help in the past.
Akula
Australia Forum Administrator #3
I suppose. You might need to be careful, a whole lot of code might assume the lowest level is 1, and if you have a player at level 0 you might get "array out of bounds" errors, in other words, a crash.
#4
Well then, how do I make it that you start off at level 1 ( not level 2) then become level 2 on completion of the newbie area?
Thanks
Akula
Australia Forum Administrator #5
In the file system/sysdata.dat you should have the line:


Waitforauth 1


That forces players through the introduction area, where they start at level 1, as far as I know.

#6
Thanks, so now I made it that you start off at level 1. Now when completing the newbie area (entering a certain room the challenge is finding the key to open it) is there a prog or somthing I can add to make it that you are now level 2? Also it would be nice to automatically 'save' as if someone would forget to save their character will be deleted.
Thanks a lot.
Akula
Australia Forum Administrator #7
I think the command is "mpadvance".

I also think SMAUG is originally set so that you need to be level 2 to save, if you could find that code you could change it.