本文整理汇总了Python中services.spawn.MobileTemplate.setOptionsBitmask方法的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate.setOptionsBitmask方法的具体用法?Python MobileTemplate.setOptionsBitmask怎么用?Python MobileTemplate.setOptionsBitmask使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类services.spawn.MobileTemplate
的用法示例。
在下文中一共展示了MobileTemplate.setOptionsBitmask方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [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 setOptionsBitmask [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
示例3: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName("heroic_tusken_massiff")
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("heroic tusken")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
templates = Vector()
templates.add("object/mobile/shared_tusken_massif.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("heroic_tusken_massiff", mobileTemplate)
return
示例4: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('nightsister_rancor')
mobileTemplate.setLevel(80)
mobileTemplate.setDifficulty(1)
mobileTemplate.setAttackRange(6)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(4)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(6)
mobileTemplate.setDeathblow(True)
mobileTemplate.setSocialGroup('nightsister')
mobileTemplate.setAssistRange(12)
mobileTemplate.setRespawnTime(300)
mobileTemplate.setOptionsBitmask(192)
templates = Vector()
templates.add('object/mobile/shared_rancor.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', 6, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('nightsister_rancor', mobileTemplate)
示例5: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('giant_crystal_snake')
mobileTemplate.setLevel(68)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Carnivore Meat")
mobileTemplate.setMeatAmount(7)
mobileTemplate.setHideType("Scaley Hide")
mobileTemplate.setHideAmount(4)
mobileTemplate.setSocialGroup("crystal snake")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_giant_crystal_snake.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('giant_crystal_snake', mobileTemplate)
return
示例6: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName("hirsch_sif")
mobileTemplate.setLevel(57)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("sif")
mobileTemplate.setAssistRange(6)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
mobileTemplate.setOptionsBitmask(128)
templates = Vector()
templates.add("object/mobile/shared_dressed_hirsch_sif.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("hirsch_sif", mobileTemplate)
return
示例7: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('woolamander_harrower')
mobileTemplate.setLevel(78)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setHideType("Wooly Hide")
mobileTemplate.setHideAmount(40)
mobileTemplate.setBoneType("Mammal Bones")
mobileTemplate.setBoneAmount(40)
mobileTemplate.setSocialGroup("woolamander")
mobileTemplate.setAssistRange(40)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_woolamander_hue.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('woolamander_harrower', mobileTemplate)
return
示例8: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('fierce_borgle')
mobileTemplate.setLevel(63)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setHideType("Leathery Hide")
mobileTemplate.setHideAmount(5)
mobileTemplate.setBoneType("Avian Bones")
mobileTemplate.setBoneAmount(5)
mobileTemplate.setSocialGroup("borgle")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_borgle.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('fierce_borgle', mobileTemplate)
return
示例9: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName("blurrg_pup")
mobileTemplate.setLevel(62)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(5)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(6)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(0.5)
mobileTemplate.setSocialGroup("blurrg")
mobileTemplate.setAssistRange(0)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(128)
templates = Vector()
templates.add("object/mobile/shared_blurrg.iff")
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate("object/weapon/melee/unarmed/shared_unarmed_default.iff", 6, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack("creatureMeleeAttack")
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate("blurrg_pup", mobileTemplate)
return
示例10: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('corellia_ragtag_tomi_jinsin')
mobileTemplate.setLevel(15)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(1)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("ragtag gang")
mobileTemplate.setAssistRange(4)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(128)
templates = Vector()
templates.add('object/mobile/shared_dressed_corellia_tomi_jinsin.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_cdef.iff', 1, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedShot')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('tomi_jinsin', mobileTemplate)
return
示例11: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('lord_nyax')
mobileTemplate.setLevel(40)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("followers of lord nyax")
mobileTemplate.setAssistRange(6)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_dressed_lord_nyax.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/rifle/shared_rifle_t21.iff', WeaponType.RIFLE, 1.0, 24, 'energy')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedShot')
mobileTemplate.setAttacks(attacks)
lootPoolNames_1 = ['Junk']
lootPoolChances_1 = [100]
lootGroupChance_1 = 100
mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
core.spawnService.addMobileTemplate('lord_nyax', mobileTemplate)
return
示例12: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('geonosian_acklay_bunker_boss')
mobileTemplate.setLevel(93)
mobileTemplate.setDifficulty(Difficulty.BOSS)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("geonosian bunker")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_acklay.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/base/shared_base_weapon_default.iff', WeaponType.UNARMED, 1.0, 6, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureRangedAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('geonosian_acklay_bunker_boss', mobileTemplate)
return
示例13: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('deranged_mantigrue')
mobileTemplate.setLevel(61)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("mantigrue")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_condor_dragon.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('deranged_mantigrue', mobileTemplate)
return
示例14: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('heroic_tusken_mse_droid')
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(6)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("heroic mos espa citizien")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(128)
templates = Vector()
templates.add('object/mobile/shared_mouse_droid.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', 6, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('meleeHit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('heroic_tusken_mse_droid', mobileTemplate)
return
示例15: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setOptionsBitmask [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('bloodseeker_mite_drone')
mobileTemplate.setLevel(64)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("bloodseeker")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_bloodseeker_mite.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_4')
attacks.add('bm_bolster_armor_4')
attacks.add('bm_enfeeble_4')
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('bloodseeker_mite_drone', mobileTemplate)
return