mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-01-17 00:05:17 -05:00
33 lines
827 B
Python
33 lines
827 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
if len(commandString) <= 0:
|
|
actor.sendSystemMessage('@performance:flourish_not_valid', 0)
|
|
return
|
|
|
|
try:
|
|
flourish = int(commandString)
|
|
except ValueError:
|
|
actor.sendSystemMessage('@performance:flourish_not_valid', 0)
|
|
return
|
|
|
|
if flourish < 1 or flourish > 9:
|
|
actor.sendSystemMessage('@performance:flourish_not_valid', 0)
|
|
return
|
|
|
|
if actor.getPerformanceId() <= 0:
|
|
actor.sendSystemMessage('@performance:flourish_not_performing', 0)
|
|
return
|
|
|
|
actor.incFlourishCount()
|
|
actor.sendSystemMessage('@performance:flourish_perform', 0)
|
|
animation = 'skill_action_' + str(flourish)
|
|
if flourish == 9:
|
|
animation = 'mistake'
|
|
|
|
actor.doSkillAnimation(animation)
|