Files
NGECore2/scripts/commands/distract.py
T
Waverunner ca4e0559a1 Added performance effects, fixed band flos, minor ent service code changes
(Bug Fix) Band Flourishes will now give experience
(Added) Performance Commands
(Code) Changed to ConcurrentHashMap for performance tables
2014-03-20 18:00:13 -04:00

19 lines
476 B
Python

import sys
def setup():
return
def run(core, actor, target, commandString):
command = 'Distract1'
effect = 'entertainer_distract_level_1.cef'
if actor.getLevel() < 18:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
# TODO: Find out levels for other distract 2 and 3
if core.entertainmentService.performEffect(actor, command, effect, target) is True:
actor.sendSystemMessage('@performance:effect_perform_distract', 0)
return