DSE with timed cut scenes
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.
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.
-
Calissa Leigh
- Regular
- Posts: 54
- Joined: Wed Apr 11, 2012 11:04 am
- Completed: No games, just books. :)
- Projects: Murder Mystery 1
- Organization: Arcato Publishing
- Location: Among the people, and Cajuns
- Contact:
DSE with timed cut scenes
If I were to use DSE for the day planner part, and I want a series of event checks every 7 days, 15 days and after every 30 days, what's the protocol?
And if I wanted two days a week to have a different calendar every day?
I could do it "long hand" with the Ren'Py system. I was in the middle of coding it by using just variables and listing the days one by one in the script, and then when I wanted I had event checks. I was wondering if there's a variable I could use to make use of the DSE code?
Like an event.only or event.depends, but the system will stop every so often, and then check those events listed for those particular times and will see if any should be shown?
Or is it only triggered by stat every day? Hm... maybe setting up a stat that equals to 7 and 15 and 30 and starts over after it reaches those times?
And if I wanted two days a week to have a different calendar every day?
I could do it "long hand" with the Ren'Py system. I was in the middle of coding it by using just variables and listing the days one by one in the script, and then when I wanted I had event checks. I was wondering if there's a variable I could use to make use of the DSE code?
Like an event.only or event.depends, but the system will stop every so often, and then check those events listed for those particular times and will see if any should be shown?
Or is it only triggered by stat every day? Hm... maybe setting up a stat that equals to 7 and 15 and 30 and starts over after it reaches those times?
-
Calissa Leigh
- Regular
- Posts: 54
- Joined: Wed Apr 11, 2012 11:04 am
- Completed: No games, just books. :)
- Projects: Murder Mystery 1
- Organization: Arcato Publishing
- Location: Among the people, and Cajuns
- Contact:
Re: DSE with timed cut scenes
Or maybe event trigger:
Hmm... something similar...
Code: Select all
$ event("biweeklyevent", "act == 'eventname'", and day = 15, 30, 45, 60, priority=200) - sciencewarrior
- Veteran
- Posts: 356
- Joined: Tue Aug 12, 2008 12:02 pm
- Projects: Valentine Square (writer) Spiral Destiny (programmer)
- Location: The treacherous Brazilian Rainforest
- Contact:
Re: DSE with timed cut scenes
Code: Select all
$ event("weeklyevent", "act == 'eventname1' and day % 7 = 0", priority=200)
$ event("biweeklyevent", "act == 'eventname2' and day % 15 = 0", priority=200) Code: Select all
dp_choice("name", value="somevalue", show="day % 7 = 1 or day % 7 = 6"):
Keep your script in your Dropbox folder.
It allows you to share files with your team, keeps backups of previous versions, and is ridiculously easy to use.
It allows you to share files with your team, keeps backups of previous versions, and is ridiculously easy to use.
-
Calissa Leigh
- Regular
- Posts: 54
- Joined: Wed Apr 11, 2012 11:04 am
- Completed: No games, just books. :)
- Projects: Murder Mystery 1
- Organization: Arcato Publishing
- Location: Among the people, and Cajuns
- Contact:
Re: DSE with timed cut scenes
Wow.
Yes. That'll work. Thanks bunches!
Who is online
Users browsing this forum: No registered users