Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set spell timers to max when using spells from this same group #8

Open
krolikson opened this issue Jan 25, 2019 · 4 comments
Open

Set spell timers to max when using spells from this same group #8

krolikson opened this issue Jan 25, 2019 · 4 comments

Comments

@krolikson
Copy link

krolikson commented Jan 25, 2019

Script set all spell timers to max when using spell from this same CooldownGroup. When using "haste" all spells from support CooldownGroup set their timers to max. If i use "haste" and after 10 sec i use "utito tempo" which also i put to support CooldownGroup, "haste" and the rest spells from support CooldownGroup set their timers to max.

@vsz
Copy link
Owner

vsz commented Jan 25, 2019

Please paste the portion of your code below the line 15
## Add your tracked actions here
up until the part
## DO NOT DELETE GROUPS. IF YOU DONT WANT TO SEE IT, JUST SET 'visible=False' IN ARGUMENTS

@krolikson
Copy link
Author

krolikson commented Jan 25, 2019

ADD YOUR TRACKED ACTIONS HERE

actionList = []

Objects

actionList.append(TrackedAction('Potion',TextColor.BLACK,[CooldownGroup.OBJECT],ActionType.CONSUMABLE,['3','4'],visible=False))

Attack Spells

actionList.append(TrackedAction('Exura Ico',TextColor.LBLUE,[CooldownGroup.HEAL],ActionType.HEALCOOLDOWN,['1'],t=1.1,iv=0.5,visible=True))

actionList.append(TrackedAction('Exura Gran Ico',TextColor.LBLUE,[CooldownGroup.HEAL],ActionType.HEALCOOLDOWN,['x'],t=601.0,iv=0.5))

emptyLines = [];

actionList.append(TrackedAction('Exori Hur',TextColor.GREEN,[CooldownGroup.ATTACK],ActionType.ATKCOOLDOWN,['n'],t=6.1,iv=0.5))

actionList.append(TrackedAction('Exori Gran Ico',TextColor.GREEN,[CooldownGroup.ATTACK],ActionType.ATKCOOLDOWN,['q'],t=30.1,iv=0.5))

emptyLines = [7];

actionList.append(TrackedAction('Exori',TextColor.RED,[CooldownGroup.ATTACK],ActionType.ATKCOOLDOWN,['7'],t=4.1,iv=0.5))

actionList.append(TrackedAction('Exori Gran',TextColor.RED,[CooldownGroup.ATTACK],ActionType.ATKCOOLDOWN,['z'],t=6.1,iv=0.5))

actionList.append(TrackedAction('Exori Min',TextColor.RED,[CooldownGroup.ATTACK],ActionType.ATKCOOLDOWN,['9'],t=6.1,iv=0.5))

actionList.append(TrackedAction('Exori Mas',TextColor.RED,[CooldownGroup.ATTACK],ActionType.ATKCOOLDOWN,['y'],t=8.1,iv=0.5))

#actionList.append(TrackedAction('StrongStrike',TextColor.DGREEN,[CooldownGroup.ATTACK],ActionType.ATKCOOLDOWN,['shift+{'],8.0))

#actionList.append(TrackedAction('UltimateStrike',TextColor.rgb2hex((0,137,255)),[CooldownGroup.ATTACK,CooldownGroup.SPECIAL],ActionType.ATKCOOLDOWN,['F11'],30.0))

#actionList.append(TrackedAction('UE',TextColor.ORANGE,[CooldownGroup.ATTACK,CooldownGroup.SPECIAL],ActionType.ATKCOOLDOWN,['F12'],40.0))

Attack Runes

actionList.append(TrackedAction('RUNY',TextColor.PINK,[CooldownGroup.OBJECT],ActionType.ATKRUNE,['F5'],t=2.1,iv=0.5,ut=UseType.CROSSHAIR,visible=True))

#actionList.append(TrackedAction('SD',TextColor.RED,[CooldownGroup.ATTACK,CooldownGroup.OBJECT],ActionType.ATKRUNE,['c'],ut=UseType.CROSSHAIR,visible=False))

Heal

emptyLines = [3,7];

Support

#actionList.append(TrackedAction('Magic Shield',TextColor.WHITE,[CooldownGroup.SUPPORT],ActionType.SUPPORTEFFECT,['4'],200.0))

actionList.append(TrackedAction('Haste',TextColor.DGREEN,[CooldownGroup.SUPPORT],ActionType.SUPPORTEFFECT,['E',],t=30.1,iv=0.5))

actionList.append(TrackedAction('Gran Haste',TextColor.DGREEN,[CooldownGroup.SUPPORT],ActionType.SUPPORTEFFECT,['F8',],t=5.1,iv=0.5))

actionList.append(TrackedAction('Utito Tempo',TextColor.DGREEN,[CooldownGroup.SUPPORT],ActionType.SUPPORTEFFECT,['0',],t=10.1,iv=0.5))

actionList.append(TrackedAction('Utura',TextColor.DGREEN,[CooldownGroup.SUPPORT],ActionType.SUPPORTEFFECT,['F1',],t=60.1))

#actionList.append(TrackedAction('Sword Ring',TextColor.ORANGE,[CooldownGroup.NONE],ActionType.EQUIPMENT,['F5'],t=1800))

It works fine if i put all spells to cooldown group "NONE" but i can't track groups cooldown :/

~I just add spaces to make it more visibility.

@krolikson
Copy link
Author

krolikson commented Jan 25, 2019

I found line in code responsible for triggering all spells from groups.

	# Initialize
	for group in self.groupList:
		group.setActionList(self.actionList)

If i put # before this loop, spells working excellent, but i can't track cooldown groups.

@krolikson
Copy link
Author

I solved this problem by putting all groups into TrackedActions and dupplicate tracked hotkeys. I know, this solution isn't really good but it work fine. I also need to exclude this part of code by putting # in every line

Initialize

for group in self.groupList:
	group.setActionList(self.actionList)

Now, my trackedactions looks like that:

actionList.append(TrackedAction('Heal',TextColor.DGREEN,[CooldownGroup.NONE],ActionType.SUPPORTEFFECT,['F1','F2', 'F3' ],t=2.0,))

actionList.append(TrackedAction('Utura',TextColor.DGREEN,[CooldownGroup.NONE],ActionType.SUPPORTEFFECT,['F1',],t=60.1))

This solution allow me also to display cooldown of groups on arc's. Great, but still need solution to block/suppress Arrow keys on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants