TheNVModder89 Posted April 16, 2011 Share Posted April 16, 2011 I am working in geck and I am wondering if there is a script that can freeze the item count in a container so you can virtually have infinite items. Is it possible? Link to comment Share on other sites More sharing options...
tunaisafish Posted April 16, 2011 Share Posted April 16, 2011 There may be something like that already in the God Items section. Freezing the contents of a container is probably more complex than you need. An activator that added the supplies to your inventory would be easier. OnActivate player.AddItem YummyCheese 999End But, everyone already has that cheat on the console should they be so inclined :) Link to comment Share on other sites More sharing options...
angelwraith Posted April 16, 2011 Share Posted April 16, 2011 ive done this before tis not too hard. does require nvse however. i didi it cause i needed a permanent list of what was in a container for sorting purposes. use two containers. you load the first one and upon closing it, itll copy all contents to the second container. then you retrieve contents of second container.. can dupe item quick this way actually. but the cheats i design are a bit more complicated to achieve and this is giving away too much too easy for me to make one for my mod for you. Link to comment Share on other sites More sharing options...
TheNVModder89 Posted April 16, 2011 Author Share Posted April 16, 2011 There may be something like that already in the God Items section. Freezing the contents of a container is probably more complex than you need. An activator that added the supplies to your inventory would be easier. OnActivate player.AddItem YummyCheese 999End But, everyone already has that cheat on the console should they be so inclined :) Thank you for the reply. Where would I put that code? In the container's script? Link to comment Share on other sites More sharing options...
TheNVModder89 Posted April 16, 2011 Author Share Posted April 16, 2011 I have another question. Is there any way to make an item respawn instantly? Say I wanted to place a nuka cola in my level and once it is picked up, it respawns instantly. Is that possible? Link to comment Share on other sites More sharing options...
angelwraith Posted April 16, 2011 Share Posted April 16, 2011 (edited) I have another question. Is there any way to make an item respawn instantly? Say I wanted to place a nuka cola in my level and once it is picked up, it respawns instantly. Is that possible? yes and no no you cant do it with the nuka-cola ingestible. but yes you can do something that looks identical and acts the way you need. make a new activator, use the model from the ingestible for it (gonna have to unpack bsa files to do point to that nif)then for the activators script do something like this: scn AAAnukaREFhandler ; this script needs to be attached to a NEW activator with the nukacola nif for its model. ref meREF float refTimer int disableractive begin onACTIVATE player set meREF to GetSelf player.additem NukaCola 1 1 meREF.disable set refTimer to 2 ; change this value to determine how long it takes to respawn. right now its 2 seconds. set disableractive to 1 END Begin GAMEMODE if disableractive == 1 set refTimer to refTimer - GetSecondsPassed if refTimer <= 0 meREF.enable set disableractive to 0 endif endif end *EDIT* reordered a couple of lines. Edited April 16, 2011 by angelwraith Link to comment Share on other sites More sharing options...
Recommended Posts