mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-13 03:13:26 -04:00
Added expertise, added AoE/Cone combat, added some commando expertise boxes as an example for expertise scripts
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, target, command):
|
||||
return
|
||||
|
||||
def preRun(core, actor, target, command):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
if actor and target:
|
||||
core.buffService.addBuffToCreature(target, 'me_rheumatic_calamity_1')
|
||||
return
|
||||
@@ -0,0 +1,47 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_deflective_armor_1')
|
||||
|
||||
actor.addSkillMod('damage_decrease_percentage', 2)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_deflective_armor_1')
|
||||
|
||||
actor.removeSkillMod('damage_decrease_percentage', 2)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_deflective_armor_2')
|
||||
|
||||
actor.addSkillMod('damage_decrease_percentage', 2)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_deflective_armor_2')
|
||||
|
||||
actor.removeSkillMod('damage_decrease_percentage', 2)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_deflective_armor_3')
|
||||
|
||||
actor.addSkillMod('damage_decrease_percentage', 2)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_deflective_armor_3')
|
||||
|
||||
actor.removeSkillMod('damage_decrease_percentage', 2)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_deflective_armor_4')
|
||||
|
||||
actor.addSkillMod('damage_decrease_percentage', 2)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_deflective_armor_4')
|
||||
|
||||
actor.removeSkillMod('damage_decrease_percentage', 2)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_pinpoint_shielding_1')
|
||||
|
||||
actor.addSkillMod('energy', 250)
|
||||
actor.addSkillMod('kinetic', 250)
|
||||
actor.addSkillMod('acid', 250)
|
||||
actor.addSkillMod('heat', 250)
|
||||
actor.addSkillMod('cold', 250)
|
||||
actor.addSkillMod('electricity', 250)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_pinpoint_shielding_1')
|
||||
|
||||
actor.removeSkillMod('energy', 250)
|
||||
actor.removeSkillMod('kinetic', 250)
|
||||
actor.removeSkillMod('acid', 250)
|
||||
actor.removeSkillMod('heat', 250)
|
||||
actor.removeSkillMod('cold', 250)
|
||||
actor.removeSkillMod('electricity', 250)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_pinpoint_shielding_2')
|
||||
|
||||
actor.addSkillMod('energy', 250)
|
||||
actor.addSkillMod('kinetic', 250)
|
||||
actor.addSkillMod('acid', 250)
|
||||
actor.addSkillMod('heat', 250)
|
||||
actor.addSkillMod('cold', 250)
|
||||
actor.addSkillMod('electricity', 250)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_pinpoint_shielding_2')
|
||||
|
||||
actor.removeSkillMod('energy', 250)
|
||||
actor.removeSkillMod('kinetic', 250)
|
||||
actor.removeSkillMod('acid', 250)
|
||||
actor.removeSkillMod('heat', 250)
|
||||
actor.removeSkillMod('cold', 250)
|
||||
actor.removeSkillMod('electricity', 250)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_pinpoint_shielding_3')
|
||||
|
||||
actor.addSkillMod('energy', 250)
|
||||
actor.addSkillMod('kinetic', 250)
|
||||
actor.addSkillMod('acid', 250)
|
||||
actor.addSkillMod('heat', 250)
|
||||
actor.addSkillMod('cold', 250)
|
||||
actor.addSkillMod('electricity', 250)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_pinpoint_shielding_3')
|
||||
|
||||
actor.removeSkillMod('energy', 250)
|
||||
actor.removeSkillMod('kinetic', 250)
|
||||
actor.removeSkillMod('acid', 250)
|
||||
actor.removeSkillMod('heat', 250)
|
||||
actor.removeSkillMod('cold', 250)
|
||||
actor.removeSkillMod('electricity', 250)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_pinpoint_shielding_4')
|
||||
|
||||
actor.addSkillMod('energy', 250)
|
||||
actor.addSkillMod('kinetic', 250)
|
||||
actor.addSkillMod('acid', 250)
|
||||
actor.addSkillMod('heat', 250)
|
||||
actor.addSkillMod('cold', 250)
|
||||
actor.addSkillMod('electricity', 250)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_pinpoint_shielding_4')
|
||||
|
||||
actor.removeSkillMod('energy', 250)
|
||||
actor.removeSkillMod('kinetic', 250)
|
||||
actor.removeSkillMod('acid', 250)
|
||||
actor.removeSkillMod('heat', 250)
|
||||
actor.removeSkillMod('cold', 250)
|
||||
actor.removeSkillMod('electricity', 250)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_powered_armor_1')
|
||||
|
||||
actor.addSkillMod('energy', 250)
|
||||
actor.addSkillMod('kinetic', 250)
|
||||
actor.addSkillMod('acid', 250)
|
||||
actor.addSkillMod('heat', 250)
|
||||
actor.addSkillMod('cold', 250)
|
||||
actor.addSkillMod('electricity', 250)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_powered_armor_1')
|
||||
|
||||
actor.removeSkillMod('energy', 250)
|
||||
actor.removeSkillMod('kinetic', 250)
|
||||
actor.removeSkillMod('acid', 250)
|
||||
actor.removeSkillMod('heat', 250)
|
||||
actor.removeSkillMod('cold', 250)
|
||||
actor.removeSkillMod('electricity', 250)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_powered_armor_2')
|
||||
|
||||
actor.addSkillMod('energy', 250)
|
||||
actor.addSkillMod('kinetic', 250)
|
||||
actor.addSkillMod('acid', 250)
|
||||
actor.addSkillMod('heat', 250)
|
||||
actor.addSkillMod('cold', 250)
|
||||
actor.addSkillMod('electricity', 250)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_powered_armor_2')
|
||||
|
||||
actor.removeSkillMod('energy', 250)
|
||||
actor.removeSkillMod('kinetic', 250)
|
||||
actor.removeSkillMod('acid', 250)
|
||||
actor.removeSkillMod('heat', 250)
|
||||
actor.removeSkillMod('cold', 250)
|
||||
actor.removeSkillMod('electricity', 250)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_powered_armor_3')
|
||||
|
||||
actor.addSkillMod('energy', 250)
|
||||
actor.addSkillMod('kinetic', 250)
|
||||
actor.addSkillMod('acid', 250)
|
||||
actor.addSkillMod('heat', 250)
|
||||
actor.addSkillMod('cold', 250)
|
||||
actor.addSkillMod('electricity', 250)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_powered_armor_3')
|
||||
|
||||
actor.removeSkillMod('energy', 250)
|
||||
actor.removeSkillMod('kinetic', 250)
|
||||
actor.removeSkillMod('acid', 250)
|
||||
actor.removeSkillMod('heat', 250)
|
||||
actor.removeSkillMod('cold', 250)
|
||||
actor.removeSkillMod('electricity', 250)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_powered_armor_4')
|
||||
|
||||
actor.addSkillMod('energy', 250)
|
||||
actor.addSkillMod('kinetic', 250)
|
||||
actor.addSkillMod('acid', 250)
|
||||
actor.addSkillMod('heat', 250)
|
||||
actor.addSkillMod('cold', 250)
|
||||
actor.addSkillMod('electricity', 250)
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_powered_armor_4')
|
||||
|
||||
actor.removeSkillMod('energy', 250)
|
||||
actor.removeSkillMod('kinetic', 250)
|
||||
actor.removeSkillMod('acid', 250)
|
||||
actor.removeSkillMod('heat', 250)
|
||||
actor.removeSkillMod('cold', 250)
|
||||
actor.removeSkillMod('electricity', 250)
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
import sys
|
||||
|
||||
def addExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.addSkill('expertise_co_stand_fast_1')
|
||||
|
||||
addAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
def removeExpertisePoint(core, actor):
|
||||
|
||||
player = actor.getSlottedObject('ghost')
|
||||
|
||||
if not player:
|
||||
return
|
||||
|
||||
if not player.getProfession() == 'commando_1a':
|
||||
return
|
||||
|
||||
actor.removeSkill('expertise_co_stand_fast_1')
|
||||
|
||||
removeAbilities(core, actor, player)
|
||||
|
||||
return
|
||||
|
||||
# this checks what abilities the player gets by level, need to also call this on level-up
|
||||
def addAbilities(core, actor, player):
|
||||
|
||||
actor.addAbility('co_stand_fast')
|
||||
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
|
||||
actor.removeAbility('co_stand_fast')
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user