Jump to content

Need help scripting one off payment to follower to get them to follow you


Recommended Posts

I'm making a follower and I have a bunch of dialogue set up so that you give him a one off payment of caps to be your follower but I don't know what kind of script to put in as I'm horrible with that sort of thing. Any help would be greatly appreciated.

 

My script already looks like the following:

 

;Remove Caps
Game.GetPlayer().RemoveItem(LHSOC1PCaps,300)

It compiles and it works but I need the script to actually check how many caps you have and take the allocated number if you have enough and to reset to a certain section of dialogue if you don't.

Edited by LimaHotel807
Link to comment
Share on other sites

You might want to look at how it was done for Macready.

That's what I did and that's where I got the original script but it takes whatever caps you have if you don't have 300 caps and I'm lost and don't know where to go from there.

Edited by LimaHotel807
Link to comment
Share on other sites

 

You might want to look at how it was done for Macready.

That's what I did and that's where I got the original script but it takes whatever caps you have if you don't have 300 caps and I'm lost and don't know where to go from there.

 

 

Use the conditions you can set on the dialogue lines themselves.

 

You can check GetItemCount on the player. Check for Caps < 300 and don't take the money in that one and condition another for GetItemCount Caps > 299 (or whatever numbers you want to use) and that one removes the player's caps.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...