Levels/ Promote/Remort Etc?

Posted by Sparro on Mon 03 May 2004 11:43 PM — 9 posts, 31,972 views.

USA #0
Like the last post I made, I am looking for advice on the best way to incorporate some new features.

First, i want to increase the Max nuber of levels (about 35 more). I found how to do that, Cool.

I want a way to promote characters (ala remort? possibly) from their class into another limited class. For instance, When a knight reaches level 60, he may present the right objects to his guildmaster and be promoted either to a Paladin, a Cavalier, or a Terror Knight. He would then continue from that point forward with all the skills he had acquired to that point as a level 61 with the ability to gain new Paladin or Cavalier or TerrorKnight skills/spells until he reaches level 85 which would be the Highest mortal level. Leaving the 15 IMM/IMP levels in place at the top of the scale. So Reg characters play from level 1-60, Promoted characters play from 61-85, and 85+ is Imm range...

From messing around a little, if I just change a player's class, they lose all the skills they had acquired that the new class can't have. I could include all the same skills in the new classes, but would SMAUG leave the amount they had learned, or when the class change occurred would their skills revert to 0.

This is important because I want there to be some overlap for certain classes to come about, i.e warriors or clerics could be promoted to monks, but I want them to retain their initial skills, so the path the player took to get there reflects their classes abilities.
Amended on Mon 03 May 2004 11:46 PM by Sparro
USA #1
To answer your question correctly, one would have to know exactly what these 'promotion classes' mean. What do they do? Add spells, skills? HP/mana/move? Stats? Is it just a title? Does something else change?

Off the top of my head it would seem that making whole new classes is not the right solution. Again though, it depends on what exactly you are trying to accomplish.
USA #2
I want these promoted classes to have additional spells & skills not available to any other class, and to receive a small stat improvement in a secondary stat, which would be different depending on the specific class (knights would probably get a +1 wis if promoted to Paladin... etc.)
USA #3
Off the top of my head, then, I would suggest something like the following:

Add an entry to character data that specifies what promotion they have.

For each new skill, in your do_skill function, make sure that the character's promotion is one of the valid paths for this skill. This means that you must implement the new skills as functions and not smaug_spell type skills.

Upon promotion, simply add to the character's base stats.

This sounds like the easiest way to get this done, but not the "right way". But since you're a beginning coder this is probably the best way to do it.
United Kingdom #4
I suggest you look at my mud's code LROS it's a smaug dir with a semi-working remort code in it. I'm currently working on it still so if you want to look at the code vist the site and download it at http://lros.co.uk or you can connect to the game at lros.co.uk:6060

Anyway that's one way of how you can do it, and remember it's not finished. (I'am planning on releasing it as a snippet shortly once it's all finished, if you want to wait till then.)

Rash
USA #5
Cool, I sent you (RASH) an email. Does anyone else already have a working remort snippet I could take a gander at? I am mainly curious about remorting to a level equal to the player's current level, while finding a way to retain their currently learned skills. I am pretty sure Ksilyan's way would work, but am always willing to look for alternative methods... :)
USA #6
What are you trying to accomplish with the following code:

for ( obj = ch->first_carrying; obj; obj = obj->next )
    {
     if ( obj->in_obj ) continue;
    }
    obj_from_char(obj);


(from remort.c)
United Kingdom #7
Ksilyan was that question pointed at me?
If so then anything to do with the eq system in remort is in construction. It's not finished yet. This is due to the the new magic and eq system myself and Dedsune (from dyremud.com:2424) are working on. Also if anyone want's they can help we clean the code up and help me work on it? Everyone's welcome to help! (And i WILL credit you unlike others...)

And on the other note: I have replied to your email. It contain's two links to the download.
USA #8
Hmm he's probably trying to take all the equipment from the player, than put it back on them after the remort is complete.. cuz with almost all remorting, they lose their items..