Crossfire Server, Trunk
npc_dialog Namespace Reference

Functions

def parseJSON (filename, relpath)
 

Variables

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

Function Documentation

◆ parseJSON()

def npc_dialog.parseJSON (   filename,
  relpath 
)

Definition at line 51 of file npc_dialog.py.

References CFBank.open().

+ Here is the call graph for this function:

Variable Documentation

◆ dialogs

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

Definition at line 100 of file npc_dialog.py.

◆ filename

npc_dialog.filename = Crossfire.ScriptParameters()

Definition at line 99 of file npc_dialog.py.

Referenced by add_to_tar(), AssetsTracker.assetDefined(), ModifiedAssetsManager< archt >.assetDefined(), ResourcesManager.assetDefined(), assets_pack(), cfpython_openpyfile(), check_login(), command_help(), command_overlay_reset(), compilePython(), copy_file(), dead_player(), display_help_file(), help_topics(), i18n_init(), init_artifacts(), init_attackmess(), init_clocks(), init_emergency_mappath(), init_formulae(), init_regions(), TarLoader.load(), FacesetLoader.load(), MessageLoader.load(), ArchetypeLoader.load(), PngLoader.load(), FaceLoader.load(), QuestLoader.load(), TreasureLoader.load(), WrapperLoader.load(), AssetCollector.load(), load_bells(), load_citylife(), inja::Parser.load_file(), inja::Environment.load_file(), inja::Environment.load_json(), load_materials(), load_overlay_map(), TreasureLoader.loadTreasure(), make_path_to_file(), mtar_open(), pack_images(), inja::Environment.parse_file(), inja::Parser.parse_into_template(), inja::Environment.parse_template(), LicenseManager.readLicense(), inja::Environment.render_file(), inja::Environment.render_file_with_json_file(), save_map(), save_player(), server_pack_assets(), tempnam_secure(), TarLoader.willLoad(), MessageLoader.willLoad(), FacesetLoader.willLoad(), FaceLoader.willLoad(), ArchetypeLoader.willLoad(), PngLoader.willLoad(), QuestLoader.willLoad(), TreasureLoader.willLoad(), WrapperLoader.willLoad(), ModifiedAssetsManager< archt >.write(), inja::Environment.write(), write_todclock(), and inja::Environment.write_with_json_file().

◆ index

int npc_dialog.index = 0

Definition at line 102 of file npc_dialog.py.

Referenced by artifact_msg(), cf_get_month_name(), cf_get_periodofday_name(), cf_get_season_name(), cf_get_weekday_name(), check_wall(), command_pickup(), ArchetypesModel.data(), CFGuilds.CFGuild.demote_member(), dump_unused_maps(), find_title(), ArchetypesModel.flags(), nlohmann::detail::dtoa_impl.get_cached_power_for_binary_exponent(), get_colorname(), get_index(), get_month_name(), get_periodofday(), get_season_name(), get_skill_client_code(), get_weekday(), i18n_find_language_by_code(), i18n_list_languages(), knowledge_alchemy_attempt(), knowledge_alchemy_can_use_item(), knowledge_alchemy_get_recipe(), list_map(), minheap_get_left(), minheap_get_parent(), minheap_get_right(), object_find_free_spot(), CREMessagePanel.onDuplicate(), CREMessagePanel.onMoveDown(), CREMessagePanel.onMoveUp(), pop_wall_point(), CFGuilds.CFGuild.promote_member(), registerCommand(), CRESubItemQuest.selectedStepChanged(), set_block(), ArchetypesModel.setData(), CRESubItemQuest.setData(), CREStringListDelegate.setEditorData(), CREPlayerRepliesDelegate.setEditorData(), CREMultilineItemDelegate.setEditorData(), CREPrePostSingleConditionDelegate.setEditorData(), CREMessageTypeDelegate.setEditorData(), CREPrePostConditionDelegate.setEditorData(), CREFormulaePanel.setItem(), CREStringListDelegate.setModelData(), CREPlayerRepliesDelegate.setModelData(), CREMultilineItemDelegate.setModelData(), CREPrePostSingleConditionDelegate.setModelData(), CREMessageTypeDelegate.setModelData(), CREPrePostConditionDelegate.setModelData(), inja::Renderer.visit(), write_attribute_index(), write_book_archive(), and write_type_index().

◆ location

string npc_dialog.location = "defaultdialognamespace"

Definition at line 49 of file npc_dialog.py.

Referenced by Player_SetBedMap().

◆ npc

◆ player

npc_dialog.player = Crossfire.WhoIsActivator()

Definition at line 97 of file npc_dialog.py.

◆ replies

npc_dialog.replies = None

Definition at line 105 of file npc_dialog.py.

◆ rule

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

Definition at line 108 of file npc_dialog.py.

Referenced by convert(), MessageFile.copy(), CREMessageItemModel.data(), MessageFile.duplicate(), MessageFile.parseFile(), MessageFile.save(), CREMessageItemModel.setData(), CREMessagePanel.setItem(), CREQuestPanel.setItem(), and CREMessageItemModel.setSelectedRule().

◆ speech

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

Definition at line 101 of file npc_dialog.py.