本文整理汇总了Python中services.spawn.MobileTemplate.setCustomName方法的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate.setCustomName方法的具体用法?Python MobileTemplate.setCustomName怎么用?Python MobileTemplate.setCustomName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类services.spawn.MobileTemplate
的用法示例。
在下文中一共展示了MobileTemplate.setCustomName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('a chassis broker')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
templates = Vector()
templates.add('object/mobile/shared_space_chassis_broker_01.iff')
templates.add('object/mobile/shared_space_chassis_broker_02.iff')
templates.add('object/mobile/shared_space_chassis_broker_03.iff')
templates.add('object/mobile/shared_space_chassis_broker_04.iff')
templates.add('object/mobile/shared_space_chassis_broker_05.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('chassisbroker', mobileTemplate)
return
示例2: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('miner')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
templates = Vector()
templates.add('object/mobile/shared_dressed_mand_miner_hum_03.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('rangedShot')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('miner', mobileTemplate)
return
示例3: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('a Patron')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
templates = Vector()
templates.add('object/mobile/shared_dressed_commoner_tatooine_aqualish_male_01.iff')
templates.add('object/mobile/shared_dressed_commoner_tatooine_trandoshan_female_01.iff')
templates.add('object/mobile/shared_dressed_commoner_naboo_bothan_female_01.iff')
templates.add('object/mobile/shared_dressed_commoner_fat_twilek_male_01.iff')
templates.add('object/mobile/shared_dressed_commoner_naboo_bothan_male_01.iff')
templates.add('object/mobile/shared_dressed_commoner_naboo_human_male_05.iff')
templates.add('object/mobile/shared_dressed_commoner_fat_zabrak_male_01.iff')
templates.add('object/mobile/shared_dressed_commoner_naboo_human_male_08.iff')
templates.add('object/mobile/shared_dressed_commoner_naboo_human_male_08.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('patron', mobileTemplate)
return
示例4: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('A disabled AT-XT')
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(Difficulty.ELITE)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("rebel")
mobileTemplate.setAssistRange(0)
mobileTemplate.setStalker(False)
mobileTemplate.setFaction("rebel")
mobileTemplate.setFactionStatus(FactionStatus.Combatant)
mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
mobileTemplate.setAIEnabled(False)
templates = Vector()
templates.add('object/mobile/shared_atxt.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/vehicle/shared_vehicle_atst_ranged.iff', WeaponType.CARBINE, 1.0, 15, 'energy')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('gcw_atst_attack_tower')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('rebel_invasion_disabled_atxt', mobileTemplate)
return
示例5: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('Kuhyofl Plizaquaz (an artisan)')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
templates = Vector()
templates.add('object/mobile/shared_dressed_artisan_trainer_02.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('kuhyofl_plizaquaz', mobileTemplate)
return
示例6: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('')
mobileTemplate.setCustomName('Baritha')
mobileTemplate.setLevel(81)
mobileTemplate.setDifficulty(Difficulty.ELITE)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(6)
mobileTemplate.setSocialGroup('nightsister')
mobileTemplate.setRespawnTime(300)
mobileTemplate.setOptionsBitmask(Options.CONVERSABLE | Options.INVULNERABLE)
templates = Vector()
templates.add('object/mobile/shared_dressed_dathomir_nightsister_spellweaver.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/sword/shared_sword_01.iff', WeaponType.ONEHANDEDMELEE, 1.0, 5, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('meleehit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('baritha', mobileTemplate)
示例7: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('A demoralized imperial soldier')
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(Difficulty.ELITE)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setSocialGroup("imperial")
mobileTemplate.setAssistRange(0)
mobileTemplate.setStalker(False)
mobileTemplate.setFaction("imperial")
mobileTemplate.setFactionStatus(FactionStatus.Combatant)
mobileTemplate.setAIEnabled(False)
templates = Vector()
templates.add('object/mobile/shared_dressed_stormtrooper_black_white.iff')
templates.add('object/mobile/shared_dressed_stormtrooper_white_black.iff')
templates.add('object/mobile/shared_dressed_stormtrooper_white_white.iff')
templates.add('object/mobile/shared_dark_trooper.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_e11.iff', WeaponType.CARBINE, 1.0, 15, 'energy')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedShot')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('imp_invasion_demoralized_soldier', mobileTemplate)
return
示例8: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName("Doikk Na'ts")
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
templates = Vector()
templates.add("object/mobile/tatooine_npc/shared_figrin_dan.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("doikknats", mobileTemplate)
return
示例9: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName("Errik Darksider")
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
templates = Vector()
templates.add("object/mobile/shared_dressed_herald_tatooine_01.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("errikdarksider", mobileTemplate)
return
示例10: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName("")
mobileTemplate.setCustomName("Gate Keeper Seik")
mobileTemplate.setLevel(81)
mobileTemplate.setDifficulty(Difficulty.ELITE)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(6)
mobileTemplate.setSocialGroup("nightsister")
mobileTemplate.setRespawnTime(300)
mobileTemplate.setOptionsBitmask(Options.QUEST | Options.CONVERSABLE | Options.INVULNERABLE)
templates = Vector()
templates.add("object/mobile/shared_dressed_dathomir_nightsister_protector.iff")
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate(
"object/weapon/melee/sword/shared_sword_01.iff", WeaponType.ONEHANDEDMELEE, 1.0, 5, "kinetic"
)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack("meleehit")
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate("gate_keeper", mobileTemplate)
示例11: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('Lt. Akal Colzet')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
mobileTemplate.setFaction("imperial")
mobileTemplate.setFactionStatus(FactionStatus.OnLeave)
templates = Vector()
templates.add('object/mobile/shared_dressed_imperial_trainer_space_01.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('akalcolzet', mobileTemplate)
return
示例12: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
#mobileTemplate.setCreatureName('')
mobileTemplate.setCustomName('sprywing (a mountain spineflap)')
mobileTemplate.setLevel(41)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Insect Meat")
mobileTemplate.setMeatAmount(10)
mobileTemplate.setHideType("Scaley Hide")
mobileTemplate.setHideAmount(5)
mobileTemplate.setBoneType("Avian Bones")
mobileTemplate.setBoneAmount(3)
mobileTemplate.setSocialGroup("capper spineflap")
mobileTemplate.setAssistRange(8)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_capper_spineflap.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 6, 'energy')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
attacks.add('bm_bite_2')
attacks.add('bm_wing_buffet_2')
mobileTemplate.setDefaultAttack('rangedShot')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('sprywing', mobileTemplate)
return
示例13: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('elder gualama')
mobileTemplate.setLevel(13)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Wild Meat")
mobileTemplate.setMeatAmount(200)
mobileTemplate.setHideType("Wooly Hide")
mobileTemplate.setHideAmount(150)
mobileTemplate.setBoneType("Animal Bones")
mobileTemplate.setBoneAmount(90)
mobileTemplate.setSocialGroup("gualama")
mobileTemplate.setAssistRange(0)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_gualama.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()
attacks.add('bm_bite_3')
attacks.add('bm_defensive_3')
attacks.add('bm_kick_3')
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('elder_gualama', mobileTemplate)
return
示例14: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
#mobileTemplate.setCreatureName('')
mobileTemplate.setCustomName('enraged kaadu stampeeder')
mobileTemplate.setLevel(17)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMeatType("Avian Meat")
mobileTemplate.setMeatAmount(120)
mobileTemplate.setHideType("Leathery Hide")
mobileTemplate.setHideAmount(85)
mobileTemplate.setBoneType("Avian Bones")
mobileTemplate.setBoneAmount(70)
mobileTemplate.setSocialGroup("kaadu")
mobileTemplate.setAssistRange(6)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_kaadu.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()
attacks.add('bm_bite_1')
attacks.add('bm_kick_1')
attacks.add('bm_spit_1')
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('enraged_kaadu_stampeeder', mobileTemplate)
return
示例15: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setCustomName [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('A gurk')
mobileTemplate.setLevel(79)
mobileTemplate.setMinLevel(79)
mobileTemplate.setMaxLevel(80)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Carnivore Meat")
mobileTemplate.setMeatAmount(1450)
mobileTemplate.setHideType("Leathery Hide")
mobileTemplate.setHideAmount(1350)
mobileTemplate.setSocialGroup("kimogila")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_voritor_dasher.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('lok_gurk', mobileTemplate)
return