DSE with timed cut scenes

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.
Post Reply
Message
Author
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

#1 Post by Calissa Leigh » Thu Apr 19, 2012 5:23 pm

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?

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

#2 Post by Calissa Leigh » Thu Apr 19, 2012 5:58 pm

Or maybe event trigger:

Code: Select all

    $ event("biweeklyevent", "act == 'eventname'", and day = 15, 30, 45, 60, priority=200)    
Hmm... something similar...

User avatar
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

#3 Post by sciencewarrior » Thu Apr 19, 2012 10:21 pm

Code: Select all

    
$ event("weeklyevent", "act == 'eventname1' and day % 7 = 0", priority=200)
$ event("biweeklyevent", "act == 'eventname2' and day % 15 = 0", priority=200)    
% is the module (division remainder) operator. You can use the same idea to show different choices in the day planner during the weekends:

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.

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

#4 Post by Calissa Leigh » Fri Apr 20, 2012 9:02 am

Wow. :) Yes. That'll work. Thanks bunches!

Post Reply

Who is online

Users browsing this forum: No registered users