Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Some questions on scripting

Page: 1 of 1
 Soulforged
12-08-2006, 10:55 PM
#1
Is there a function to call a feat so the impact provoques exactly that feat's effect?

EDIT: What about a function to reduce ConjTime or CastTime on an specific Force Power? I'm talking about a passive Force Power here (or always active).
 Lit Ridl
12-09-2006, 6:29 AM
#2
Casting feat, yeah?
void main ()
{
object oFeatUser = OBJECT_SELF;
object oTarget = OBJECT_SELF;
talent tPowerAttack = TalentFeat(FEAT_POWER_ATTACK);
ActionUseTalentOnObject(tPowerAttack, oTarget);
}
Here, FEAT_POWER_ATTACK is feat constant taken from nwscript.nss
Also you may just use row number from feats.2da as this constant.
OBJECT_SELF is feat user, you may change from OBJECT_SELF to GetFirstPC(), this is player. Or GetObjectByTag("object_tag") to get object with the specified tag. So any object you want. the same is with OBJECT_SELF, but OBJECT_SELF is feat's target.
Hope it helps you.
Page: 1 of 1