Jump to content

Script / Spell Chaining question


GSGlobe

Recommended Posts

Another question:

 

I have made 5 abilities and 5x scripts set to constant linked to these abilites

 

5 perks linked to these 5 abilities and 5 spells that toggle each ability on and off.

 

I'm wondering how I can make it so that WHEN 1 spell fires, 2 ability toggles on, WHEN 2 spell fires, 3 abilitiy toggles on etc

till 5 spell fires then go back to activate spell 1?

 

I've tried to make the ability 1 (Don't fire when Cooldown 1 is active) Ability 2 (Fire when Cooldown 1 is active and Cooldown 2 ISNT active) and so on, on the ability spell window, I also tried setting it up on Magic Effect Window, but I can't recall if I removed the Spell conditions on the ability beforehand or not, don't suppose that makes any difference?

 

But if I toggle ability 1 - 2 - 3 - 4 - 5 Only first spell activates and second spell never activates unless I activate it when Cooldown 1 is active. Would be nice if the second spell activates directly after Spell 1 is fired by itself, without having to cast the toggle ability after the first spell is fired.

 

I figured adding HasMagicEffect(CooldownX) into the scripts but I'm worried it might cause performance hit since the scripts are constant?

However only active for a while.

 

Edit: The spells dispels after each use and places a cooldown upon itself. If that makes any difference?

My initial idea was to have Spell 1 - Cast spell 2 and Spell 2 Cast Spell 3, and Spell 5 cast a cooldown and Spell 1, but then we're back at the problem I'm having now that Spell 1 Won't activate because cooldown X is active.

 

Perhaps Cooldown X needs a script to cast Spell 1 on effect finish? Im out of ideas, please?

But that makes it so, one needs to have all 5 spells in order for it to reset.. I wanna keep it so, one can choose spell 1 2 3 and not need all of them. If that makes any sense

 

Any ideas would be greatly appreciated as I'm uncapable of seeing a fix, I'm quite lost on this one!

Best regards!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...