Best method of doing this?

Discussion in 'Plugin Development' started by bloodless2010, May 27, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    bloodless2010

    Okay so I'm working on a small RPG server. I had the idea of having random loot.
    What would be the best way to make it so that certain chests (I define the locations), when opened, contain random stuff, maybe a wooden sword with a random name (like Eager sword of Prosperity) what would be the best way to do this? a config file with loads of names or something? I need some ideas to throw me in the right direction, thanks!
     
  2. Offline

    Rocoty

    I would have two lists in the config. One containing adjectives and one containing nouns. So you could pick a random adjective to place in front of the item type and a random noun to place behind it.

    So say the first list contained Fierce and the noun list contained Greatness, and the item was an axe. It could be called Fierce Axe of Greatness. So that could do for some cool or weird random names.
     
Thread Status:
Not open for further replies.

Share This Page