Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
Csoda

[XP] Random Item generation

Question

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

6 answers to this question

Recommended Posts

  • 0

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"

Share this post


Link to post
Share on other sites
  • 0

I think he means a truly random item/weapon/armor given per chest from a list of predesignated treasures.

Share this post


Link to post
Share on other sites
  • 0

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.

post-12276-126227097451_thumb.jpg

post-12276-12622709833_thumb.jpg

Share this post


Link to post
Share on other sites
  • 0

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

post-12276-12622716141_thumb.jpg

Share this post


Link to post
Share on other sites
  • 0

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...