Is there any form to configure the attribute Jinx for affects only to enemies and not to everybody around you?
Thanks
On my todo list since a few years back. :P
Should be quite easy to do a derivative attribute:
in ffx.py, add this after the regular Jinx section:
######################### JINX ENEMIES #############################################
def initjinxenemies(char,update=0):
RegTimer('updateJinx',5,0,char)
def updateJinx(event):
obj=event.object
if hasAttribute(obj,'jinx')==0:
return
RegTimer('updateJinx',5,0,obj)
if Object_IsAlive(obj)==0:
return
for adversary in getAllAdversaries(obj):
if distanceSq(adversary, obj) < (300*300):
if FFX_Rand(1,100) <= FFX_JINX_CHANCE_JAM:
Object_SetSecondaryState(adversary, SCSTATE_POWER_NULLIFICATION, 15, 0)
if FFX_Rand(1,100) <= FFX_JINX_CHANCE_SLIP:
fallOver(adversary)
Create the attribute in FFEdit, add its description in strings.txt and generate the language files. Not tested, but hopefully, it should work. Let me know how it goes.
P.S.: As always, backup ffx.py, attributes.dat and strings.txt first, just in case.
Thank you Epimethee!!
now I´m at work. it will try tonight at home.
Tested in my Scarlet wich hero file and works fine!!! :thumbup:
Thank you
My pleasure. :)