CoffeeMud: Making Stats Trainers

Written by Laurent Marechal - 27 january 2017

Classified in : Links, Mud - Tags : none

Site d'origine : http://computer-programming.genedavis.com/2016/08/coffeemud-making-skills-trainers.html

So you've got CoffeeMud up and running, and you're an Archon. Cool. You're not done, yet.

When starting up a CoffeeMud based mud, you can go ahead and create your world, but you aren't done once you have a few areas for your players to wander around in and a few monsters to kill.

The issue is that players need trainers. Making a trainer isn't really obvious without a whole bunch of research. Here's the quick and simple steps for creating a trainer.

 

 

Nice start. You should have got a response similar to the following

 

 

 
Suddenly, a generic mob instantiates from the Java Plane.
 
1. Name: 'a generic mob'.
 
2. Display: 'A generic mob stands here.'.
 
5. Rejuv Ticks: '0' (0=never).
7. Alignment: pure neutral (0)
12. Actions/Attacks per tick: '1.0'.
13. Attack Adjustment: '0'.
15. Armor (lower-better): '100'.
16. Hit Points Bonus Modifier: '11'.
18. Money Variation: '0.0'.
24. Factions: alignment(0);
27. MXP Image filename: ''.
Now you have a list of attributes you can change. Just type in a number and press enter to make changes. First you'll want to modify #1, #2, and #3. That's just for aesthetic reasons.

Now for the important changes.

Select #20 and set to MOBTeacher. MOBTeacher allows you to set the skills that the teacher can share. Type 'ahelp MOBTeacher' and the following comes up.

Behavior   : MOBTeacher
Targets    : MOBs
Parameters : Char class name(s), ability name(s), expertise name(s),
Parameters : percentages, nocommon flag, noedus flag, or empty to teach all.
Example    : mage evoker illusionist transmuter
Example    : 100% mage 10% Thief_Steal NOCOMMON
Example    : Spell_Sleep 5% Spell_Wish
Example    : Spell_BurningHands


Description:

This behavior makes the mob suitable to teach skills, spells, prayers,
songs, or expertises as specified in the parameters.  If the parameter is
empty, the mob will be able to teach all abilities.  If the parameter
contains the name of a character class, the mob will only teach abilities of
that class. *Any* class may always practice with a MOBTeacher, but the mob
may only teach those abilities for the character class the parameters
describe.  The classes listed by mob teacher are NOT base classes.  To have a
teacher able to teach skills from an entire base class, all sub-classes must
be listed.


Percentages may be included inside the parameters as well.  The percentage
will always apply only to the character classes or spells listed after the
percentage, not before.  Encountering another percentage entry will override
the previous.  A percentage will dictate the chance that a given spell will
be known by the teacher, or the chance that a particular spell in a given
character class will be known.


Two flags can also modify your list.  The NOCOMMON flag prevents the teacher
from teaching common skills, even if they would normally be on his list.  The
NOEXPS flag prevents the teacher from teaching expertises, even if he would
normally qualify for them.


If this behavior has NO parameters whatsoever, the mob will teach all basic
skills. Expertises will only be taught if the mob otherwise qualifies for
them himself, and Character Class changes will only be taught if the mob is
that class.

Next, select #21 and Prop_StatTrainer. This is very important. It allows you to customize the level of stats that the trainer is capable of teaching. The trainer can not train players above their own level, so it is important the the trainer have high enough stats to be useful to the players trying to train.

To see more info on configuring the Prop_StatTrainer, type in 'ahelp prop stattrainer'. Notice no underscore between 'prop' and 'stattrainer'.

If you exit the editor accidentally, or realize you need to still change your trainer. (Typos anyone?) Just type 'modify <your trainer's name>'.

When you're all done configuring the configuration for the trainer will look something like the following.

*. Class: GenMob
1. Name: 'A beggar'.
2. Display: 'A beggar squats in the dust.'.
3. Description: 'He looks like he might have fleas. Don`t get too close.'.
4. Level: '60'.
5. Rejuv Ticks: '67' (0=never).
6. Race: 'Human'.
7. Alignment: pure neutral (0)
8. Gender: 'M'.
9. Height: '74'.
10. Weight: '174'.
11. Clans: ''.
12. Actions/Attacks per tick: '2.0'.
13. Attack Adjustment: '5'.
14. Damage: '5'.
15. Armor (lower-better): '60'.
16. Hit Points Bonus Modifier: '11'.
17. Money: '13'.
18. Money Variation: '0.0'.
19. Abilities: 'Chopping'.
20. Behaviors: 'MOBTeacher(30% Fighter)'.
21. Effects: 'Prop_StatTrainer'.
22. Dispositions: 
23. Senses: 
24. Factions: alignment(0);
25. Tattoos: ''.
26. Expertises: 'ACROBAT7, ALERT9, ANATOMY10, ANIMALIST7, ARMORFOCUS7,
ARMORO...'.
27. MXP Image filename: ''.
Edit which?

Comments are closed.

SEARCH

Categories

Tags

Archives

Last articles

Last comments

 

Valid XHTML 1.0 Strict