Jump to content

Adding caps to container weekly question


jet4571

Recommended Posts

I am making a dance club the player purchases that also includes a player home. It costs 10,000 caps to purchase the place. It is a business and I want the player to be able to make caps off it weekly. Either by the main bartender giving the weekly take to the player or from a container someplace in the cell. But I don't want the container to respawn weekly, If the player doesn't touch it for 3 weeks I want all 3 weeks worth of caps inside of it. What would be the script to add to a container?

 

The mod I am working on: http://www.nexusmods.com/newvegas/mods/56577/?

Edited by jet4571
Link to comment
Share on other sites

http://geck.bethsoft.com/index.php?title=GetDayOfWeek

 

Also from the wiki:

 

 

Quoteref rContainer
Begin OnAdd
set rContainer to GetContainer
rContainer.AddItem caps001 1000 1
End

 

No idea what to do with GetDayOfWeek. rContainer will be the refid of my container I assume. "GetDayOfWeek 6"???

 

ScriptName AACashRegisterScript

 

REF rContainer
Begin OnAdd
GetDayOfWeek 6 1
set rContainer to GetContainer
rContainer.AddItem caps001 1000 1
End

 

Does that even remotely look like what I want or am I as lost as I think I am?

Edited by jet4571
Link to comment
Share on other sites

I have this so far to test, the last one didn't work at all.

REF rContainer
Begin OnAdd
if GetDayOfWeek == 6
rContainer.AddItem caps001 1000 1
endif
End

If not that then looking at HVGoodBenefitContainerScript I can try this:

ScriptName AACashRegisterScript

 
Begin OnAdd
if GetDayOfWeek == 6
AddItem caps001 1000 1
endif
End

 

If I actually knew what I was doing and knew what any of that meant I wouldn't be asking for help. Rearranging gibberish is what I am doing until something happens lol.

Link to comment
Share on other sites

I am going to consider this to NOT work and/or just not possible. Nothing I tried worked and thought of making a quest to do it rather than attach the script to the container but I have no idea on how to make a script for the effing quest. If anyone else who is as ignorant of scripting as I am wants to do this then I hope you have better luck and help than I received. My mod will just be without this important feature and rely on container respawns which is to say wont happen. I give up with scripting.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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