Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
init:
## All variables are in a seperate varables.rpy file.
$ crawlacrossfield = False
$ walkacrossfield = False
$ runacrossfield = False
label edgeofthefield:
scene scene2image1
pvts "This looks dangerous. What should we do?"
scene scene2image2
menu:
"We should low crawl across.":
$ crawlacrossfield = True
jump crawlacrossfield
"We should walk aross.":
$ walkacrossfield = True
jump walkacrossfield
"We should run across.":
$ runacrossfield
jump runacrossfield
return
label crawlacrossfield:
scene scene2aimage1
mc "We're gonna low crawl. The tall grass will hide us from snipers."
jump afteractionreview1
return
label walkacrossfield:
scene scene2bimage1
mc "We're gonna move carefully across. Watch your sectors of responsibilty."
jump afteractionreview1
return
label runacrossfield:
scene2cimage1
mc "We're gonna run like Hell. We'll be across before they can react."
jump afteractionreview1
return
label afteractionreview1:
scene scene3image1
co "Great job out there Sergeant."
scene scene3image2
mc: "Thank you, Sir."
if crawlacrossfield == True:
co "It was smart crawling to avoid snipers."
elif walkacrossfield == True:
co "I might not have moved that slow across a danger area."
elif runacrossfield == True:
co "It was smart to move quickly across the danger area."
scene scene3image3
co "Move your squad out, Sergeant."
return
Last edited by Two Dollars on Sun Oct 22, 2023 11:56 pm, edited 3 times in total.