本文整理汇总了Python中services.spawn.MobileTemplate.setConversationFileName方法的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate.setConversationFileName方法的具体用法?Python MobileTemplate.setConversationFileName怎么用?Python MobileTemplate.setConversationFileName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类services.spawn.MobileTemplate
的用法示例。
在下文中一共展示了MobileTemplate.setConversationFileName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setConversationFileName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('respec_seller')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.CONVERSABLE | Options.INVULNERABLE)
mobileTemplate.setConversationFileName('respec')
templates = Vector()
templates.add('object/mobile/shared_respec_seller_f_1.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 6, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('professioncounselor', mobileTemplate)
return
示例2: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setConversationFileName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('outbreak_imperial_officer_captain_piett')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE | Options.CONVERSABLE)
mobileTemplate.setConversationFileName('outbreak_imperial_officer_captain_piett')
templates = Vector()
templates.add('object/mobile/shared_dressed_imperial_officer_firmus_piett.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 0, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('meleeHit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('outbreak_imperial_officer_captain_piett', mobileTemplate)
return
示例3: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setConversationFileName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('outbreak_stormtrooper_groupleader_hx138')
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(Difficulty.BOSS)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setOptionsBitmask(Options.CONVERSABLE)
mobileTemplate.setConversationFileName('outbreak_imperial_trooper_gate_keeper') #Needs correct conversation when made
templates = Vector()
templates.add('object/mobile/shared_stormtrooper.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/rifle/shared_rifle_e11.iff', WeaponType.RIFLE, 1.0, 0, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedHit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('outbreak_stormtrooper_groupleader_hx138', mobileTemplate)
return
示例4: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setConversationFileName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('outbreak_facility_stormtrooper_survivor')
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(Difficulty.BOSS)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setOptionsBitmask(Options.CONVERSABLE)
mobileTemplate.setConversationFileName('storm_trooper_leader_quarantine_zone')
templates = Vector()
templates.add('object/mobile/shared_stormtrooper.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/rifle/shared_rifle_e11.iff', WeaponType.RIFLE, 1.0, 0, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('meleeHit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('outbreak_facility_stormtrooper_survivor', mobileTemplate)
return
示例5: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setConversationFileName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('rebel_recruiter')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE | Options.CONVERSABLE)
mobileTemplate.setConversationFileName('reb_recruiter')
templates = Vector()
templates.add('object/mobile/shared_dressed_rebel_recruiter_human_female_01.iff')
templates.add('object/mobile/shared_dressed_rebel_recruiter_human_female_02.iff')
templates.add('object/mobile/shared_dressed_rebel_recruiter_moncal_male_01.iff')
templates.add('object/mobile/shared_dressed_rebel_recruiter_twilek_female_01.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 0, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('meleeHit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('rebel_recruiter', mobileTemplate)
return