McRegan Posted April 11, 2010 Share Posted April 11, 2010 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 More sharing options...
Quetzlsacatanango Posted April 13, 2010 Share Posted April 13, 2010 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 More sharing options...
McRegan Posted April 15, 2010 Author Share Posted April 15, 2010 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 More sharing options...
Quetzlsacatanango Posted April 17, 2010 Share Posted April 17, 2010 The first block should read Begin OnActivate, not Beginonactivate.Add the space, you should be good. Link to comment Share on other sites More sharing options...
McRegan Posted April 17, 2010 Author Share Posted April 17, 2010 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 More sharing options...
Quetzlsacatanango Posted April 17, 2010 Share Posted April 17, 2010 I have a theory. Let me try it out and get back to you so I don't steer you wrong. Link to comment Share on other sites More sharing options...
Recommended Posts