- Feb 2, 2018
- 3,510
- 2,048
Advent Games drinking sake calls drinking beer (text and variable substract beer)
Code:
"[drink_alcohol_sake.item_name] ( [inventory_alcohol_sake] )":
if inventory_alcohol_sake > 0:
$ current_speaker = p
p "Let's drink sake."
$ current_speaker = s
if trust_level < 3:
s "Ehm...[persistent.player_name]. I'm too young to drink alcohol."
jump do_nothing
else:
s "Ehm..."
s "OK."
$ current_action = action_refresh_beer <<<<<
$ had_drink = True
$ inventory_alcohol_beer -= 1 <<<<<
$ d20roll = renpy.random.randint(1, 20)
jump running_commentary
Last edited: