Classes

These are nice data types for dealing with... Data!

 * ritual
class ritual {
               string name;
               string family;
               int base_gp_cost;
               int * align;
               int targets;
               class stage * stages;
               int pk_check;
               int teach_base;
               int learn_base;
               string training_skill;
               int movement;
               int speech;
               int vision;
               string * materials , * consumables;
               function target_check;
               string resist_skill;
               string help;
               int offensive;
               object caster;
               object imbue;
               object * rit_targets;
               object * resistors;
               int current_stage;
               int start_time;
               int target_count;
               function valid;
               int degree;
               string deity;
               mapping difficulties;
               mapping benefits;
}

Data Storage for Rituals

 * stage
class stage {
              int key;
              string * messages;
              string skill;
              int level;
              string * materials;
              string * consumables;
              int pause;
              int time_modifier;
              function success_func;
              string prayer;
              int imbue_source;
}

Each ritual has one or more stages. Each stage must have messages for both the player and external parties. Each stage can optionally have a skill check. Each stage can optionally have items which can be consumed. Each stage can be optionally lengthened, this will then be modified by other factors. [alignment and skill]. This defaults to 1 if not entered.


Discworld MUD's distribution world wide web pages.
brought to you by
Cut Me Own Throat Dibbler's Sensational Sausages; buy one while they are hot.
File last modified: Fri, 05 Sep 2003 20:51:44 GMT

Lost? Try Discworld's home page.