|
|
|||
[Package Index | Mudlib Index | Effect Index]File /std/effects/faith/basic_ritual.cThis array respresents all of the skills that will be sourced from the player creating an imbue. The remainder will be source from the player 'using' the imbue.IncludesThis class includes the following files /include/guilds.h, /include/nroff.h, /include/tasks.h, /include/obj_parser.h, /include/ritual_system.h, /include/weather.h, /include/deity.h, /include/effect.h, /include/move_failures.h, /include/playtesters.h and /include/player.hMethod index
Public FunctionsThese are functions that everyone can access..
varargs void add_stage(string * messages,
string skill,
int level,
string * materials,
string * consumables,
int time_modifier,
int pause,
function f,
string prayer,
int imbue_source)
Use add stage if you don't want to change an existing stage,
just add one onto the end, it calculates the identifier and calls
set_stage itself.
int calc_old_bonus(int bonus)
int cast_spell(string words,
int scroll,
object staff)
The part that kick starts all of the other parts.
It is called by the cast command.
I think this is depreciated. Lets check!
mapping check_benefit(class ritual info,
string type)
A list of all of the things that can decrease difficulty.
This uses the same types as check impediment, but returns
a mapping containing a string and a float describing why
it is more difficult.
ie: ([ "on fire", 0.75 ]);
would mean that a player gets the message:
It seems easier to perform Great Womble because you are on fire.
They then receive a bonus of 75% to their stats.
These bonuses are cumulative.
mapping check_difficulty(class ritual info,
string type)
A list of all of the things that can increase difficulty.
This uses the same types as check impediment, but returns
a mapping containing a string and a float describing why
it is more difficult.
ie: ([ "on fire", 0.75 ]);
would mean that a player gets the message:
You are having trouble performing Great Womble because you are on fire.
They then suffer a penalty of 75% to their stats.
These penalties are cumulative.
string * check_impediment(class ritual info,
string type)
A list of all the types of impediments we are looking for.
Centralised for easy access!
void end(object person,
class ritual info,
int id)
string * generate_message(string * _messages,
object caster,
object * targets,
string deity,
string ritual,
string prayer)
object * get_room_targets(class ritual _info) string help()
int perform_ritual(object player,
string args,
int scroll,
object * targets,
object imbue)
This is called by the perform command, it replaces cast_spell.
string query_classification() int query_faith_ritual() int query_indefinite()
int query_point_cost(object caster,
object * targets,
class ritual temp)
int query_power_level(class ritual temp,
int stage)
Query the difficulty of a given stage.
string * query_prayers() int query_ritual() string query_ritual_formatted() string query_shadow_ob()
int ritual_check_target(object caster,
object targets)
void ritual_failed(class ritual info,
int bonus)
void ritual_resisted(class ritual info,
int bonus)
This -must- be masked if you want to use it.
void set_alignment(int * align)Set the max and min alignments for this ritual. Runtimes if not handed an array of 2 ints
|
||||
|
Brought to you by CMOT Dibbler's Sensational Sausages; buy one while they're hot. |