Page 1 of 1

Making races class restricted, and vice versa

Posted: Sun Jul 18, 2004 8:39 pm
by Sven
Alright, so if anyone was wondering of a way to do this, here is one method. Its fairly simple in design, but might take a little while to set up.



First you need "filter" rooms. If you arn't using sys gotos, at the ferryman, you can make it take you to a new area. All the deathrooms for the area need to be set to the newhaven temple.



You can start off with 1 main room/area, where all the exits allow 1 race (can do this under exits in the room editor, choose race option). They walk through the exit into the race area, where they get to choose their classes' exit. If they don't have an exit for their class, they can't continue, thus have to reroll or stick to scripting newhaven all their life.



A little more complex, but neater way would have text commands at the ferryman. The user would enter, say "dwarf paladin" and be taken to a specific area. They walk through 2 rooms and appear at the docks. 1 room has a race check for dwarf, the other has a class check for paladin.



Don't know if anyone really cares about this, but I had to make it for a mud I am working on so just decided to share.





edited for spelling errors





Alright, just thought up of the best way for this. Just have a textblock that verifys the race class of the user and teleports them if it fits.

This works by:

1:User says dwarf paladin (assuming thats an acceptable race/class combo)

2:Textblock checks race and class of user according to what they said.

3:If textblock returns true for the check, user is teleported to docks.



it would look somethin like this..



dwarf paladin:race 2:class 3:teleport room# map#: