Hi everybody,
I play rpg game and i want to make a loot generator
I write this, i want when i random "parchemins" i import random for a new liste.
Someone can help me ? thanks
I play rpg game and i want to make a loot generator
I write this, i want when i random "parchemins" i import random for a new liste.
Someone can help me ? thanks
import random liste = ['potion','objet magique','flèches','parchemins'] tresors = random.choice(liste) print (tresors) if 'parchemins' in tresors: print ("Dark_alchemy")Dark_alchemy = 1
Larz60+ write Aug-15-2023, 02:24 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Added tags for you this time. Please use BBCode on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Added tags for you this time. Please use BBCode on future posts.