Aller au contenu

Photo

[questions] New ability from scratch


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Apolyon6k

Apolyon6k
  • Members
  • 175 messages
I need to create a new ability that works similar to stealing or single target combat talents but start a conversation on click. All I need is the part where I get the target cursor when activating the ability.

I had a look at the scripts for stealing and the talent_singletarget but the second one uses effects on targets and in the first one I did not find the part I need if it was even in there at all.

#2
Sunjammer

Sunjammer
  • Members
  • 925 messages
I'm AFT (away from toolset) just now but you might want to have a look at the RequestTarget (one of the "new" functions were added by v1.03).  The first parameter should take one or more TARGET_TYPE_* flags combined together using the BITWISE OR operator.

For example:

int nTargetType = TARGET_TYPE_FRIENDLY_CREATURE | TARGET_TYPE_HOSTILE_CREATURE;

Modifié par Sunjammer, 05 avril 2011 - 12:46 .