Aller au contenu

Photo

using script to check for ability in conversation? (solved)


2 réponses à ce sujet

#1
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
Not sure how a script like that would look like and how to set the conversation editor for it to work.

Modifié par gordonbrown82, 22 avril 2010 - 03:07 .


#2
_L_o_B_o_

_L_o_B_o_
  • Members
  • 117 messages
Use the plots and scripting tab in the conversation editor.



There you can add conditions to the conversation lines. Add a condition using this plot "gen00pt_skills". Once added look in the flag drop down list and select the ability check you want to do.

#3
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
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_".