mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
(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
26 lines
653 B
Python
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) |