Dropping caps?

Post » Tue Aug 25, 2009 8:31 pm

I've been fiddling with the weights of items in the game and I've added a small amount of weight to the caps, but since you can't drop them, I can foresee a bit of a problem. I don't had any scripting experience, so I'm wondering if it's possible to make a script that removes 100, 500, and 1000 caps from the players inventory and adds them to bags which can then be dropped and used like ammo boxes. Any tips on where to start?
User avatar
butterfly
 
Posts: 3467
Joined: Wed Aug 16, 2006 8:20 pm

Post » Tue Aug 25, 2009 9:43 pm

you can drop caps yet, just use a container to store them in ;)

if you want to put them in bags:

create a quest and check "start game enabled" (nothing else needs to be set)

script for the quest (must be a quest script):

short dooncebegin gamemode ;; runs every 5 seconds, you could also use "begin menumode" then it would only run while youre in menusif player.getitemcount F >= 100 ;;F is the ID of capsset doonce to 1endif;;set JaySuSRules to 1 ;; needed to make the quest work if doonce == 1player.removeitem f 100player.additem MyMoneyBag 1set doonce to 2endifend


script to put on the bag item (in this case it must be a consumable/aid item, the script needs to be an object script):

begin onActivateplayer.removeitem MyMoneyBag 1player.additem f 100end


the first script checks every 5 seconds if you have 100 caps and if you do puts them in a bag
the second script gives you 100 caps and removes the bag if you click on it

mind that you should set the weight of the bag to be equal to the weight of 100 caps obviously
User avatar
lucile davignon
 
Posts: 3375
Joined: Thu Mar 22, 2007 10:40 pm

Post » Wed Aug 26, 2009 12:17 pm

I have just a second before school to say this. The ID of caps is actually 000000f, but it doesnt matter because you cant use ID's in scripts. You must use the objects name, which is Caps001. (So use that instead of 'F')
User avatar
Gracie Dugdale
 
Posts: 3397
Joined: Wed Jun 14, 2006 11:02 pm

Post » Wed Aug 26, 2009 12:38 pm

nonsense :P

for one can you leave the 0s out and for another do the hexadecimal ids work just as well as the named ones, hence writing F is much shorter than writing Caps001... obviously...
User avatar
Jason White
 
Posts: 3531
Joined: Fri Jul 27, 2007 12:54 pm


Return to Fallout: New Vegas