Modifié par gordonbrown82, 22 avril 2010 - 03:07 .
using script to check for ability in conversation? (solved)
Débuté par
gordonbrown82
, avril 20 2010 11:42
#1
Posté 20 avril 2010 - 11:42
Not sure how a script like that would look like and how to set the conversation editor for it to work.
#2
Posté 21 avril 2010 - 09:52
If you want to look for a specific ability that isn't convered by the skills plot, you'll need to make your own defined flag, added to any relevant plot you have. There are tutorials and such on how to make and script defined flags.
Within the defined flag, you can use HasAbility() to determine if whichever creature, I presume you want to check the hero so you use GetHero(), has the ability. There are constants for all of the various spells in the game, starting with "ABILITY_".
Within the defined flag, you can use HasAbility() to determine if whichever creature, I presume you want to check the hero so you use GetHero(), has the ability. There are constants for all of the various spells in the game, starting with "ABILITY_".





Retour en haut






