Then I finally got it working earlier today, just thought I would toss this out there for anyone having the same problem I was.
Code: Select all
label base_travel_events:
$ chance = renpy.random.randint(1,100) ## Just the range I want the code to look at to determine what happens
if chance <= 10: ## This is 10% of the time something happens.
$ choice = renpy.random.choice(("choice1","choice2","choice3","choice4","choice5","choice6")) ## These are the events I want to have the code choose from.
if choice == "choice1": ## Same as what is listed above.
jump choice1a ## This is the label that you want the code to point at
elif choice == "choice2":
jump choice2a
elif choice == "choice3":
jump choice3a
elif choice == "choice4":
jump choice4a
elif choice == "choice5":
jump choice5a
elif choice == "choice6":
jump choice6a
else: ## This is the other 90% of the time.
jump hallways
(If theres anyway to make this better or more effective feel free to comment. But please don't raz me to much if this seems a little to simple I am a noobish beginner atm.)