Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init python:import random
- last = -1
- def margo_rand(o):
- global last
- z = random.randint(0, o)
- while z == last:
- z = random.randint(0, o)
- last = z
- return z
- def margo_main(amount = 10):
- result = u"М"
- t = 5 + margo_rand(amount)
- tmp = margo_rand(2)
- if tmp == 0:
- result += u"а"
- elif tmp == 1:
- result += u"у"
- else:
- result += u"о"
- if margo_rand(1) == 1:
- result += u"рг"
- else:
- result += u"гр"
- result += u"а"
- i = 0
- while i < t:
- i += 1
- tmp = margo_rand(4)
- if tmp == 0:
- result += u"р"
- elif tmp == 1:
- result += u"гу"
- elif tmp == 2:
- result += u"ла"
- elif tmp == 3:
- result += u"го"
- result += u"л"
- return result
- mods["TheRasVa__magro_test"] = u"Генератор Моргораграгола"
- label TheRasVa__magro_test:
- $ ololo = margo_main(1)
- $ alala = margo_main()
- $ renpy.say(ololo, "%(alala)s")
- jump TheRasVa__magro_test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement