Files
NGECore2/scripts/commands/flourish.py
T
Waverunner d210dc7ad7 Added posture checks, radial script for player objects, bug fixes
(Bug Fix) Must now wait before performing multiple flourishes
(Bug Fix) Can no longer propose to yourself (aka your hand)
(Bug Fix) Fixed some strings that didn't have variables
(Added) Posture checks before Skill Animating
(Added) Additional radial options show on players
2014-03-19 15:56:52 -04:00

26 lines
653 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
core.entertainmentService.performFlourish(actor, flourish)