Crossfire Server, Trunk  1.75.0
npc_dialog Namespace Reference

Functions

def parseJSON (filename, relpath)
 
def parseJSONstr (s, relpath='')
 

Variables

def dialogs = parseJSON([params], '')
 
int index = 0
 
string location = "defaultdialognamespace"
 
 npc = Crossfire.WhoAmI()
 
 params = Crossfire.ScriptParameters()
 
 player = Crossfire.WhoIsActivator()
 
 rule
 
 speech = Dialog(player, npc, location)
 

Function Documentation

◆ parseJSON()

def npc_dialog.parseJSON (   filename,
  relpath 
)

Definition at line 78 of file npc_dialog.py.

References CFBank.open(), and parseJSONstr().

Referenced by parseJSONstr().

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

◆ parseJSONstr()

def npc_dialog.parseJSONstr (   s,
  relpath = '' 
)

Definition at line 51 of file npc_dialog.py.

References parseJSON().

Referenced by parseJSON().

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

Variable Documentation

◆ dialogs

def npc_dialog.dialogs = parseJSON([params], '')

Definition at line 104 of file npc_dialog.py.

◆ index

◆ location

string npc_dialog.location = "defaultdialognamespace"

Definition at line 49 of file npc_dialog.py.

◆ npc

◆ params

npc_dialog.params = Crossfire.ScriptParameters()

Definition at line 101 of file npc_dialog.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_shoottype(), 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(), 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(), and write_on_item().

◆ player

npc_dialog.player = Crossfire.WhoIsActivator()

Definition at line 100 of file npc_dialog.py.

◆ rule

npc_dialog.rule
Initial value:
1 = DialogRule(jsonRule["match"],
2  jsonRule.get("pre", []),
3  jsonRule["msg"],
4  jsonRule.get("post", []),
5  jsonRule.get("replies", None))

Definition at line 112 of file npc_dialog.py.

◆ speech

npc_dialog.speech = Dialog(player, npc, location)

Definition at line 108 of file npc_dialog.py.