I cant take credit for this script, I didnt create it. But after searching the vault and asking for help on the bioware forums, I finally was given exactly what I wanted, and I thought I would share it with those that had the same problem I did....
basically I wanted a script that when used on a placable, would randomely give an item based on the items resref randomly, and respawn after a period of time....
This script does that.... Just place it in the Onopen event of your placable. make the placable usable, I like to make it plot.
and make it have inventory.
Then place the resref of the items you want the script to give into the script, and change the respawn time to suite your needs. Also I have the script set for 12 items but you can make it as many items as you want.
Posted by nux2000 at 2007-09-05 20:53:01 Voted 10.00 on 09/05/07
Very nice little script. I have owned the game for sometime but suck on scripting. I also am happy to get a switch random item script to study. Thanks again.
Posted by rascal at 2007-06-03 08:42:14 Voted 10.00 on 06/03/07
Awesome!
Posted by Blazer3393 at 2007-04-14 01:04:52 Voted 10.00 on 04/14/07
Hah I've been looking for this for a long time xD thank you for posting it _________________________ It's likea RAWR!
Posted by geojedi73 at 2007-03-30 15:12:02 Voted 10.00 on 03/07/07
Just a note:
It appears this script does not like stacked items, I tested it with a stack of 99 arrows and always get 1 out of it. Not 1 stack of 99 but 1 arrow.... _________________________ Today is born the seventh one
Born of woman the seventh son
And he in turn of a seventh son
He has the power to heal
He has the gift of the second sight
He is the chosen one
So it shall be written
So it shall be done
Posted by geojedi73 at 2007-03-07 14:50:34 Voted 10.00 on 03/07/07
I think my vote counts...... _________________________ Today is born the seventh one
Born of woman the seventh son
And he in turn of a seventh son
He has the power to heal
He has the gift of the second sight
He is the chosen one
So it shall be written
So it shall be done
You must be Logged In to post comments in this section.