Difference between revisions of "Talk:Rand"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Jtech13
(New page: How do I add a random number of items with this script? Like player.additem 0000000f <rand function> How would i do that?)
 
imported>Innominate
Line 4: Line 4:


How would i do that?
How would i do that?
:Easily. Although you may not be able to use this in the console, and the example you gave looks like it was a console command, not a script.
Short randNum
Set randNum To rand 0 [max]
player.additem <item id> randNum

Revision as of 22:42, 16 July 2008

How do I add a random number of items with this script?

Like player.additem 0000000f <rand function>

How would i do that?

Easily. Although you may not be able to use this in the console, and the example you gave looks like it was a console command, not a script.

Short randNum Set randNum To rand 0 [max] player.additem <item id> randNum