Add Item randomly from formlist?

Post » Wed Jun 30, 2010 6:50 am

Hi! Is it possible to player.addItem something random from a formlist?
User avatar
Naughty not Nice
 
Posts: 3527
Joined: Sat Nov 04, 2006 6:14 am

Post » Wed Jun 30, 2010 3:18 am

You can use NVSE functions to do that. Use GetRandomPercent to get a random number, then use ListGetNthForm to get an item in the form list. Use Player.AddItem to add the item, of course.
User avatar
JAY
 
Posts: 3433
Joined: Fri Sep 14, 2007 6:17 am

Post » Tue Jun 29, 2010 10:49 pm

Or use a levelled list instead :P
User avatar
W E I R D
 
Posts: 3496
Joined: Tue Mar 20, 2007 10:08 am


Return to Fallout: New Vegas