Aller au contenu

Photo

Givefeat Script


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Seipherwood

Seipherwood
  • Members
  • 72 messages
 Im not sure if this is the correct place to ask or not but i figure its the closest to it.

Is there a way to make a text file or a script that when used in the console command will give targeted player multiple feats? Its really annoying manually doing it for every feat every time.

#2
kevL

kevL
  • Members
  • 4 078 messages
// 'givemefeats'

void main()
{

  //int GetHasFeat(int nFeat, object oCreature=OBJECT_SELF, int nIgnoreUses=FALSE);
  // #12 Extend Spell
  if (!GetHasFeat(12, OBJECT_SELF, TRUE))
  {

    //int FeatAdd(object oCreature, int iFeatId, int bCheckRequirements, int bFeedback=FALSE, int bNotice=FALSE);
    FeatAdd(OBJECT_SELF, 12, FALSE, TRUE, FALSE)

  }
  // #xxx
  //if (!GetHasFeat...);
  {
    //FeatAdd(...);
  }

  // etc.
}


- don't forget to compile, and do the DebugMode 1 thing ( "rs givemefeats" )... you'll have to look up the Feat #'s online, or in Feat.2da ( the row # )

- and use the controlled character, ObjectSelf (not the targetted) But if you really want the target, replace OBJECT_SELF w/ GetPlayerCurrentTarget(OBJECT_SELF) i guess

Modifié par kevL, 06 juillet 2012 - 03:50 .


#3
Seipherwood

Seipherwood
  • Members
  • 72 messages
Thanks alot.

Do you know if it will hurt anything if you give feats that have other feat pre-reqs? Such as Great Cleave ?

Modifié par Seipherwood, 06 juillet 2012 - 10:47 .


#4
kevL

kevL
  • Members
  • 4 078 messages

Seipherwood wrote...

Do you know if it will hurt anything if you give feats that have other feat pre-reqs? Such as Great Cleave ?

I doubt it. The pre-reqs seem to be there just to build a standard progression tree

#5
Seipherwood

Seipherwood
  • Members
  • 72 messages
Okay thanks alot.

#6
kevL

kevL
  • Members
  • 4 078 messages
yep