Csoda 0 Report post Posted December 30, 2009 I need to be able to open a chest, or do something and be rewarded with random loot Much like how you can give Gold as a random veriable of X~Y i would like to be able to give times and weapons as veriables of X~Y EX .................................................................................................................................. 01 LSword 02 SSword<________ 03 Lance.................| 04 Axe....................|_____> = [item] random [02] ~ [06] 05 Dagger...............| 06 IceDagger<_____| 07 IceAxe Thanks for the help! Share this post Link to post Share on other sites
0 EmilyAnnCoons 7 Report post Posted December 30, 2009 That wouldn't be hard, you just run a "Control Variable" and set it random with X~Y as your numbers (replacing X and Y with the numbers of course). Then, you run a conditional branch that's set to "when [variable] is equal to x" and run one of those for each option, then under each you give the player whichever item (i.e. "when [variable] is equal to 3, give Lance" 1 Csoda reacted to this Share this post Link to post Share on other sites
0 Marked 197 Report post Posted December 31, 2009 As Emily said, here's the demo form: Random Weapons.zip Since this doesn't require a script, I'll move the topic to the general support forum. [moved] 1 Csoda reacted to this Share this post Link to post Share on other sites
0 Leon 55 Report post Posted December 31, 2009 I think he means a truly random item/weapon/armor given per chest from a list of predesignated treasures. 1 Csoda reacted to this Share this post Link to post Share on other sites
0 Csoda 0 Report post Posted December 31, 2009 Exactly what leon said The amount of time to complete that task would kill me, as well if i wanted a repeatable random chest the loot would not change from that chest as the game assigns the chest a random number at the start of the game. i want it so if u go into your data base and see a list of weapons rageing from item 01-99 i want to be able to make it random acording to the veriables wich have already been set in your data base, ill attach some edited screen shots for my ex. Share this post Link to post Share on other sites
0 Csoda 0 Report post Posted December 31, 2009 On secong thought, could you take out parts from the troop set battle encounter script and make it into a list of ithems/weapons ect? (i think this is what leon actualy meant which is a very clever idea) *EDIT* Sorry for any typos iv been staying up very late working on this project X_x Share this post Link to post Share on other sites
0 Blackbound 4 Report post Posted January 1, 2010 Make a Troop called "Treasure" and make a troop event with it. that would be the best place to start on this Share this post Link to post Share on other sites
I need to be able to open a chest, or do something and be rewarded with random loot
Much like how you can give Gold as a random veriable of X~Y i would like to be able to give times and weapons as veriables of X~Y
EX
..................................................................................................................................
01 LSword
02 SSword<________
03 Lance.................|
04 Axe....................|_____> = [item] random [02] ~ [06]
05 Dagger...............|
06 IceDagger<_____|
07 IceAxe
Thanks for the help!
Share this post
Link to post
Share on other sites