Files
NGECore2/scripts/commands/dazzle.py
T
Waverunner d5f91ab3a1 Merge remote-tracking branch 'origin/master' into Wave_Entertainer
Conflicts:
	scripts/commands/colorlights.py
	scripts/commands/dazzle.py
	scripts/commands/firejet.py
	scripts/commands/smokebomb.py
	scripts/commands/ventriloquism.py
2014-03-22 11:56:54 -04:00

27 lines
720 B
Python

import sys
def setup():
return
def run(core, actor, target, commandString):
command = 'Dazzle1'
effect = 'clienteffect/entertainer_dazzle_level_1.cef'
rLevel = 10 # minimum level to perform this effect
if commandString == '2':
command = 'Dazzle2'
effect = 'clienteffect/entertainer_dazzle_level_2.cef'
rLevel = 20
elif commandString == '3':
command = 'Dazzle3'
effect = 'clienteffect/entertainer_dazzle_level_3.cef'
rLevel = 30
if actor.getLevel() < rLevel:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
if core.entertainmentService.performEffect(actor, command, effect, target) is True:
actor.sendSystemMessage('@performance:effect_perform_dazzle', 0)
return