Hi, I'd just like to say that I'm very new to Ren'Py and the only way I've been able to learn has really been from select YouTube tutorials. I've been trying to use other resources but atm they feel a bit too advanced for me. I'm currently in a prototype stage of just trying to make a very basic point and click game.
With all that being said, how do I trigger a one-time dialogue event when the player enters a new screen for the first time? How do I set that kind of condition to be recognized?
Code: Select all
screen Room2():
imagemap:
ground "Room2.png"
hotspot (1187, 25, 456, 458) action Jump ("toHallway")
e "Dialogue"
I just learned how to active hotspots on imagemaps and I've learned the basics of image buttons. For what I've been trying, imagemaps have been easier for me to make for moving the player from one screen to another. However, putting dialogue along like this just results in an error. Same if I try to provide a label underneath.
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/screens/myscreens.rpy", line 22: u'e' is not a keyword argument or valid child for the imagemap statement.
e "Dialogue"
^
Ren'Py Version: Ren'Py 7.3.5.606
Thu Oct 15 15:29:58 2020
In addition, I'd like this to be a one-time event. I'm not very familiar with adding conditions to the situation, so if someone could help in that regard, I'd appreciate that as well. Thank you.