Aller au contenu

Photo

Abilities that interrupts other abilities [SOLVED]


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Nattfodd

Nattfodd
  • Members
  • 321 messages
Hi,
my problem seems to be more difficult than the title description.
In game, all talents/spells are added in queue while we select them (unless we paused the combat). So if i am a dual weld warrior and i cast "Riposte" and quickly after it, i cast "Punisher", the punisher talent will be performed only after the end of  "riposte" talent (do not count other events that can interrupt, the flow such as "Stuns", "KnockBack" etc.).
How i can make the "punisher" talent to be casted instantly and not only after the end of previous talent?
So what i want is something like to what happen when we press any movement key: a function to interrupt the previous talent (preventing it to make damage or other effects) and istantly perform the last talent i casted.

Modifié par Nattfodd, 30 octobre 2010 - 10:59 .


#2
Nattfodd

Nattfodd
  • Members
  • 321 messages
up

#3
Nattfodd

Nattfodd
  • Members
  • 321 messages
If someone is interested:

you have to intercept the EVENT_TYPE_COMMAND_ADDED in player_core script, and if the command added is an Ability command, use ClearCurrentCommand() function.

Modifié par Nattfodd, 30 octobre 2010 - 11:02 .