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< Animations >.assetDefined(), ResourcesManager.assetDefined(), assets_pack(), cfpython_openpyfile(), check_login(), command_help(), command_overlay_reset(), compilePython(), copy_file(), dead_player(), display_help_file(), get_template(), help_topics(), i18n_init(), init_attackmess(), init_clocks(), init_emergency_mappath(), init_formulae(), init_regions(), TarLoader.load(), ArtifactLoader.load(), FacesetLoader.load(), MessageLoader.load(), PngLoader.load(), ArchetypeLoader.load(), FaceLoader.load(), TreasureLoader.load(), QuestLoader.load(), WrapperLoader.load(), AssetCollector.load(), ResourcesManager.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.parseLicenseFile(), LicenseManager.readLicense(), inja::Environment.render_file(), inja::Environment.render_file_with_json_file(), save_map(), save_player(), server_pack_assets(), tempnam_secure(), TarLoader.willLoad(), ArtifactLoader.willLoad(), FacesetLoader.willLoad(), ArchetypeLoader.willLoad(), PngLoader.willLoad(), MessageLoader.willLoad(), FaceLoader.willLoad(), TreasureLoader.willLoad(), QuestLoader.willLoad(), WrapperLoader.willLoad(), ModifiedAssetsManager< Animations >.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 addAssetData(), MimeUtils.addQuestStep(), artifact_msg(), cf_get_month_name(), cf_get_periodofday_name(), cf_get_season_name(), cf_get_weekday_name(), check_wall(), RegionsWrapper.child(), RecipeListWrapper.child(), AllAssets.child(), SoundFiles.child(), ArtifactsWrapper.child(), RecipesWrapper.child(), AssetsCollectionWrapper< Animations >.child(), ArtifactListWrapper.child(), RegionWrapper.child(), AttackMessagesWrapper.child(), ArchetypeWrapper.child(), QuestWrapper.child(), RecipeListWrapper.childIndex(), RecipesWrapper.childIndex(), ArtifactsWrapper.childIndex(), ArtifactListWrapper.childIndex(), ArchetypeWrapper.childIndex(), TreasureListWrapper.childIndex(), TreasureWrapper.childIndex(), QuestWrapper.childIndex(), command_pickup(), CREMainWindow.createMenus(), ArchetypesModel.data(), UseFilterAssetModel.data(), CFGuilds.CFGuild.demote_member(), TreasureWrapper.doAddChild(), TreasureWrapper.doRemoveChild(), MimeUtils.extractQuestSteps(), UseFilterAssetModel.filterAcceptsRow(), ScriptFilterAssetModel.filterAcceptsRow(), 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(), knowledge_alchemy_attempt(), knowledge_alchemy_can_use_item(), knowledge_alchemy_get_recipe(), minheap_get_left(), minheap_get_parent(), minheap_get_right(), object_find_free_spot(), CREMessagePanel.onDuplicate(), CREMessagePanel.onMoveDown(), CREMessagePanel.onMoveUp(), AssetFieldCompleter.pathFromIndex(), pop_wall_point(), CFGuilds.CFGuild.promote_member(), registerCommand(), TreasureListWrapper.removeChild(), QuestWrapper.removeChild(), CRESubItemQuest.selectedStepChanged(), set_block(), ArchetypesModel.setData(), CRESubItemQuest.setData(), CREStringListDelegate.setEditorData(), CREPlayerRepliesDelegate.setEditorData(), CREMultilineItemDelegate.setEditorData(), CREPrePostSingleConditionDelegate.setEditorData(), CREMessageTypeDelegate.setEditorData(), CREPrePostConditionDelegate.setEditorData(), CREStringListDelegate.setModelData(), CREPlayerRepliesDelegate.setModelData(), CREMultilineItemDelegate.setModelData(), CREPrePostSingleConditionDelegate.setModelData(), CREMessageTypeDelegate.setModelData(), CREPrePostConditionDelegate.setModelData(), CREResourcesWindow.treeCustomMenu(), 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()

◆ 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(), CREMessageItemModel.setSelectedRule(), CREMessagePanel.updateItem(), and MessageFile.uses().

◆ speech

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

Definition at line 101 of file npc_dialog.py.