TalentSpell(int)

Creates a spell talent

talent TalentSpell(
    int nSpell
);

Parameters

nSpell

SPELL_*


Description

Create a Spell Talent.



Version

1.30

Example

//Have the caller heal the nearest non-PC

void main()
{
//Determine skill to use
talent tTaunt=TalentSpell(SPELL_HEAL);

object oCreature=GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_NOT_PC);

ActionUseTalentOnObject(tTaunt, oCreature);
}

See Also

functions: TalentFeat | TalentSkill
categories: Talents/Skills/Feats Functions
constants: SPELL_* Constants


 author: Lilac Soul
 Send comments on this topic.