Crossfire Server, Trunk
roll-o-matic Namespace Reference

Functions

def abs_dir (d)
 
def do_handle ()
 
def do_shipwreck (me)
 
def find_floor (x, y)
 
def find_player ()
 
def handle_apply ()
 
def handle_move ()
 
def handle_say ()
 
def has_floor (x, y, name)
 
def is_floor (ob)
 
def start_move (want_dir)
 
def stop ()
 
def try_move (check_directions, want_dir)
 

Variables

list dir_x = [ 0, 0, 1, 1, 1, 0, -1, -1, -1 ]
 
list dir_y = [ 0, -1, -1, 0, 1, 1, 1, 0, -1 ]
 
 evt = Crossfire.WhatIsEvent()
 
string key_direction = 'rom_dir'
 
string key_follow = 'rom_follow'
 
 me = Crossfire.WhoAmI()
 
 params = Crossfire.ScriptParameters()
 
 pl = Crossfire.WhoIsActivator()
 
bool ship_mode = False
 

Function Documentation

◆ abs_dir()

def roll-o-matic.abs_dir (   d)

Definition at line 71 of file roll-o-matic.py.

Referenced by try_move().

+ Here is the caller graph for this function:

◆ do_handle()

def roll-o-matic.do_handle ( )

Definition at line 172 of file roll-o-matic.py.

References handle_apply(), handle_move(), and handle_say().

+ Here is the call graph for this function:

◆ do_shipwreck()

def roll-o-matic.do_shipwreck (   me)

Definition at line 105 of file roll-o-matic.py.

References stop().

Referenced by handle_move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_floor()

def roll-o-matic.find_floor (   x,
  y 
)
Find all objects satisfying is_floor() at the given location.

Definition at line 48 of file roll-o-matic.py.

References is_floor().

Referenced by has_floor(), and start_move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_player()

def roll-o-matic.find_player ( )

Definition at line 56 of file roll-o-matic.py.

Referenced by handle_move().

+ Here is the caller graph for this function:

◆ handle_apply()

def roll-o-matic.handle_apply ( )

Definition at line 162 of file roll-o-matic.py.

References start_move(), stop(), and try_move().

Referenced by do_handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handle_move()

def roll-o-matic.handle_move ( )

Definition at line 108 of file roll-o-matic.py.

References do_shipwreck(), find_player(), make_face_from_files.int, and try_move().

Referenced by do_handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handle_say()

def roll-o-matic.handle_say ( )

Definition at line 143 of file roll-o-matic.py.

References start_move(), and stop().

Referenced by do_handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_floor()

def roll-o-matic.has_floor (   x,
  y,
  name 
)
Check whether one floor at the given location matches the given 'name'.

Definition at line 64 of file roll-o-matic.py.

References find_floor().

Referenced by try_move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_floor()

def roll-o-matic.is_floor (   ob)

Definition at line 42 of file roll-o-matic.py.

Referenced by find_floor().

+ Here is the caller graph for this function:

◆ start_move()

def roll-o-matic.start_move (   want_dir)

Definition at line 131 of file roll-o-matic.py.

References find_floor(), guildoracle.list, and make_face_from_files.str.

Referenced by handle_apply(), and handle_say().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stop()

def roll-o-matic.stop ( )

◆ try_move()

def roll-o-matic.try_move (   check_directions,
  want_dir 
)

Definition at line 83 of file roll-o-matic.py.

References abs_dir(), has_floor(), stop(), and make_face_from_files.str.

Referenced by handle_apply(), and handle_move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ dir_x

list roll-o-matic.dir_x = [ 0, 0, 1, 1, 1, 0, -1, -1, -1 ]

Definition at line 37 of file roll-o-matic.py.

◆ dir_y

list roll-o-matic.dir_y = [ 0, -1, -1, 0, 1, 1, 1, 0, -1 ]

Definition at line 38 of file roll-o-matic.py.

◆ evt

roll-o-matic.evt = Crossfire.WhatIsEvent()

Definition at line 190 of file roll-o-matic.py.

Referenced by get_npc().

◆ key_direction

string roll-o-matic.key_direction = 'rom_dir'

Definition at line 34 of file roll-o-matic.py.

◆ key_follow

string roll-o-matic.key_follow = 'rom_follow'

Definition at line 35 of file roll-o-matic.py.

◆ me

roll-o-matic.me = Crossfire.WhoAmI()

Definition at line 191 of file roll-o-matic.py.

◆ params

roll-o-matic.params = Crossfire.ScriptParameters()

Definition at line 193 of file roll-o-matic.py.

Referenced by add_exit_to_item(), basic_emote(), cfanim_runPluginCommand(), command_abil(), command_accountpasswd(), command_accuse(), command_addexp(), command_afk(), command_apply(), command_applymode(), command_arrest(), command_banish(), command_beg(), command_bleed(), command_blush(), command_body(), command_bounce(), command_bow(), command_bowmode(), command_brace(), command_burp(), command_cackle(), command_cast(), command_cast_spell(), command_chat(), command_chuckle(), command_clap(), command_cointoss(), command_cough(), command_create(), command_cringe(), command_cry(), command_dance(), command_debug(), command_delete(), command_diff(), command_disarm(), command_dm(), command_dmhide(), command_dmtell(), command_drop(), command_dropall(), command_dump(), command_dumpabove(), command_dumpallarchetypes(), command_dumpallmaps(), command_dumpallobjects(), command_dumpbelow(), command_dumpfriendlyobjects(), command_dumpmap(), command_east(), command_empty(), command_examine(), command_face(), command_fire(), command_fire_stop(), command_fix_me(), command_flip(), command_follow(), command_forget_spell(), command_free(), command_freeze(), command_frown(), command_gasp(), command_giggle(), command_glare(), command_goto(), command_grin(), command_groan(), command_growl(), command_gsay(), command_help(), command_hiccup(), command_hide(), command_hiscore(), command_hug(), command_insert_into(), command_inventory(), command_invisible(), command_invoke(), command_kick(), command_kick2(), command_kill_pets(), command_kiss(), command_knowledge(), command_language(), command_laugh(), command_learn_special_prayer(), command_learn_spell(), command_learn_spell_or_prayer(), command_lick(), command_listen(), command_listplugins(), command_loadplugin(), command_loadtest(), command_lock_item(), command_malloc(), command_mapinfo(), command_maps(), command_mark(), command_me(), command_mon_aggr(), command_motd(), command_news(), command_nod(), command_north(), command_northeast(), command_northwest(), command_nowiz(), command_overlay_reset(), command_overlay_save(), command_partial_commands(), command_party(), command_party_rejoin(), command_passwd(), command_patch(), command_peaceful(), command_petmode(), command_pickup(), command_players(), command_poke(), command_possess(), command_pout(), command_printlos(), command_puke(), command_quest(), command_quit(), command_recollect(), command_remove(), command_rename_item(), command_reply(), command_reset(), command_resistances(), command_rotateshoottype(), command_rskill(), command_rules(), command_run(), command_run_stop(), command_save(), command_say(), command_scream(), command_search(), command_search_items(), command_setgod(), command_shake(), command_shiver(), command_shout(), command_showpets(), command_shrug(), command_shutdown(), command_sigh(), command_skills(), command_slap(), command_smile(), command_smirk(), command_snap(), command_sneeze(), command_snicker(), command_sniff(), command_snore(), command_sound(), command_south(), command_southeast(), command_southwest(), command_speed(), command_spit(), command_ssdumptable(), command_stack_clear(), command_stack_list(), command_stack_pop(), command_stack_push(), command_statistics(), command_stats(), command_stay(), command_strings(), command_strut(), command_style_map_info(), command_sulk(), command_summon(), command_swap(), command_take(), command_teleport(), command_tell(), command_tell_all(), command_thank(), command_think(), command_throw(), command_time(), command_title(), command_toggle_shout(), command_twiddle(), command_unarmed_skill(), command_unloadplugin(), command_use(), command_usekeys(), command_uskill(), command_version(), command_wave(), command_west(), command_whereabouts(), command_whereami(), command_whistle(), command_who(), command_wimpy(), command_wink(), command_wizcast(), command_wizpass(), command_yawn(), do_skill_by_number(), do_tell(), do_wizard_dm(), find_best_apply_object_match(), find_best_object_match(), find_object_both(), get_dm_object(), knowledge_display(), knowledge_do_attempt(), knowledge_show(), CREMapInformationManager.loadCache(), make_matcher(), matcher_all(), matcher_name(), matcher_number(), matcher_pickup_type(), move_internal(), python_command_function(), request_info_cmd(), send_class_info(), send_image_sums(), send_race_info(), send_skill_extra(), send_skill_info(), set_body_info(), set_move(), show_matching_spells(), CREMapInformationManager.storeCache(), and write_on_item().

◆ pl

roll-o-matic.pl = Crossfire.WhoIsActivator()

Definition at line 192 of file roll-o-matic.py.

◆ ship_mode

bool roll-o-matic.ship_mode = False

Definition at line 40 of file roll-o-matic.py.