Jump to content

Auto add perk after freeform quest


McRegan

Recommended Posts

Alright so I want to set up a perk that is added to the player like in the power armor training quest. I want the perk to be added after you drink 20 beers. I have created the perk and I know you have to create a free form quest but i don't really know what else to do. How would I go about doing this. Sorry I know this probably sounds confusing and if you need more clarification let me know and I will try to be more helpful.
Link to comment
Share on other sites

One way would be to add a script to the beer item that looks something like this:

 


scn beerscript

short    beersdrank
short     doonce

BeginOnactivate

set beersdrank to beersdrank + 1

End

Begin GameMode

If beersdrank >= 20
    if doonce = 0
         addperk yourbeerperk
         set doonce to 1
     endif
endif

End

 

I'm not sure if the doonce is absolutely necessary but it seems safer to include it.

Link to comment
Share on other sites

One way would be to add a script to the beer item that looks something like this:

 


scn beerscript

short    beersdrank
short     doonce

BeginOnactivate

set beersdrank to beersdrank + 1

End

Begin GameMode

If beersdrank >= 20
    if doonce = 0
         addperk yourbeerperk
         set doonce to 1
     endif
endif

End

 

I'm not sure if the doonce is absolutely necessary but it seems safer to include it.

 

It says there is a syntax error on line 15, if doonce = 0, any thoughts?

Link to comment
Share on other sites

ok so everything works fine when i try to save the script but when i add it to the beer and try drink 20 of them in game nothing happens. Everything in the script is perfect but it just doesn't work in game. You've been a ton of help already but if you had any ideas on why this might be I would greatly appreciate it.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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