Files
NGECore2/scripts/radial/player.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

23 lines
613 B
Python

from resources.common import RadialOptions
from resources.datatables import Posture
import sys
def createRadial(core, owner, target, radials):
if target.getPosture() == Posture.SkillAnimating:
if target.getPerformanceType() is True:
radials.add(RadialOptions(0, 140, 1, 'Watch'))
else:
radials.add(RadialOptions(0, 140, 1, 'Listen'))
return
def handleSelection(core, owner, target, option):
if option == 140:
if target.getPerformanceType() is True:
core.commandService.callCommand(owner, 'watch', target, '')
return
else:
# TODO: Insert callCommand /listen
return
return
return