Author Topic: [2238] questions about follower scripts  (Read 4644 times)

Offline Alvarez

  • Forget the past, go outside and have a blast
[2238] questions about follower scripts
« on: July 03, 2013, 05:37:10 pm »
How is the script for selling slaves called?

JovankaB

  • Guest
Re: [2238] questions about follower scripts
« Reply #1 on: July 03, 2013, 05:52:18 pm »
I don't know but you can find it Metzger dialog.

Offline Lexx

  • Rotator
  • Mexican Apple Thief
Re: [2238] questions about follower scripts
« Reply #2 on: July 03, 2013, 06:02:42 pm »
Better check Vortis in NCR, his dialog is not as huge as the one from Metzger.

Offline Atom

  • Rotator
Re: [2238] questions about follower scripts
« Reply #3 on: July 03, 2013, 06:16:14 pm »
How is the script for selling slaves called?

Slaves count as mercs, look for r_ and d_ functions inside merc_dialog.fos. The mercs definitions themselves are in mercs.fos, inside InitMercs (there you can find the mercs' ids).

Offline Alvarez

  • Forget the past, go outside and have a blast
Re: [2238] questions about follower scripts
« Reply #4 on: July 03, 2013, 07:49:00 pm »
Thank you, it was indeed there. I had one more question if you don't mind:

If i were to make a shepherd dog, which would allow to carry two more brahmin in companion slots, would this equation in follower_common.fos make any sense?

Code: [Select]
else if (FollowerType == FOLLOWER_TYPE_DOG)
{
    uint Dog = GetNumberOfType(player, FOLLOWER_TYPE_DOG);
return(Dog < 1 + (GetNumberOfType(FOLLOWER_TYPE_BRAHMIN) + 2))

}

JovankaB

  • Guest
Re: [2238] questions about follower scripts
« Reply #5 on: July 03, 2013, 08:46:54 pm »
No, it means (if you had it in CanHaveMoreFollowers) that you could buy a third dog only if you had at least one brahmin, 4th dog if you had at least 2 brahmin and so on. It would disable party points system for dogs, at least within this function.

The easiest way to do what you want, is to make every dog "shepherd dog", then all you have to do is to change

Code: [Select]
return(Brahmin < 1 + (GetNumberOfType(player, FOLLOWER_TYPE_DOG) / 2));
to

Code: [Select]
return(Brahmin < 1 + (GetNumberOfType(player, FOLLOWER_TYPE_DOG) * 2));
And every dog will increase your max number of brahmin by 2.

Otherwise you would have to make a whole new type of follower (dog shepherd) and modify scripts in a few more places.
« Last Edit: July 03, 2013, 09:12:52 pm by b__B »

Re: [2238] questions about follower scripts
« Reply #6 on: July 03, 2013, 09:30:42 pm »
I got a question too.
I got 10 CHarisma and I still can't get anny fallower , it is saying  I am too ugly or things like tht