gunslinger6792 Posted July 8, 2013 Share Posted July 8, 2013 I'm making another house mod and I've added a small garden. I can pick the vegetables but after waiting more than 72 hours it hasn't regrown. How do i get the vegetables to regrow is this going to require me to write a script? Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted July 9, 2013 Share Posted July 9, 2013 Check out my http://newvegas.nexusmods.com/mods/36366/?'>Bountiful Harvest mod. I implemented a timer based reset on them as opposed to the cell based reset they were supposed to use. Feel free to use those scripts and change them how you like. Link to comment Share on other sites More sharing options...
gunslinger6792 Posted July 9, 2013 Author Share Posted July 9, 2013 Kudos to you sir you just saved my mod! Link to comment Share on other sites More sharing options...
gunslinger6792 Posted July 9, 2013 Author Share Posted July 9, 2013 Well I just figured out that I don't know how to add a new script to the game or override an exsisting one. For some reason can't save a new script. It will ask me if I want to save but after clicking yes it won't close the script window :( Link to comment Share on other sites More sharing options...
gunslinger6792 Posted July 9, 2013 Author Share Posted July 9, 2013 Oh when I try to save i get the following message. Save Current= not sure if that means anything. Link to comment Share on other sites More sharing options...
jazzisparis Posted July 10, 2013 Share Posted July 10, 2013 It means there are errors in the script. Please post it here so we can help you find out what's wrong. Link to comment Share on other sites More sharing options...
gunslinger6792 Posted July 10, 2013 Author Share Posted July 10, 2013 It means there are errors in the script. Please post it here so we can help you find out what's wrong.Allright thanks, as soon as I'm out of my lectures for the day I'll post some of the scripts. Link to comment Share on other sites More sharing options...
gunslinger6792 Posted July 10, 2013 Author Share Posted July 10, 2013 heres one of the scripts I've tried putting in. gribbleshnibit8 wrote for his mod so I'm assuming it works scn MaizeScriptint Stateint daysPassedbegin onActivate if State == 0 && GetActionRef == player player.additem NVFreshMaize 2 set State to 1 set daysPassed to GameDaysPassed playGroup Backward 1 setdestroyed 1 endifendbegin onLoad if State == 0 playGroup Forward 1 elseif State == 0 && daysPassed == 0 playGroup Forward 1 set State to 0 setdestroyed 0 elseif State == 1 if ((GameDaysPassed - daysPassed) > PlantRespawnRate) playgroup Forward 1 set State to 0 setdestroyed 0 else playGroup Backward 1 endif endifendbegin onReset if State == 1 playgroup Forward 1 set State to 0 setdestroyed 0 endifend Link to comment Share on other sites More sharing options...
jazzisparis Posted July 10, 2013 Share Posted July 10, 2013 (edited) The problem is probably with PlantRespawnRate. I assume it's a global variable Gribb used to set how many days should pass before plants regrow. The script doesn't save because this variable does not exist in your mod. You can simply replace it with a number. For instance, suppose you want plants to regrow every 3 days: if (GameDaysPassed - daysPassed) > 3 Edited July 10, 2013 by jazzisparis Link to comment Share on other sites More sharing options...
gunslinger6792 Posted July 10, 2013 Author Share Posted July 10, 2013 Ahhh thats interesting. Thank you very much for the info I'll try that out. Link to comment Share on other sites More sharing options...
Recommended Posts