DSE-Questions on Priority and Events

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
User avatar
infel
Veteran
Posts: 290
Joined: Mon Jun 09, 2014 8:26 pm
Projects: Mark's Story(BxB(Reach for the Stars(GxG), Mermaid Sonata(GxG,NaNo16), Black Dale-Curse of the Scarlet Witch(Semi Hiatus), A Few Secret Games
Tumblr: lunarwingsgames
Contact:

DSE-Questions on Priority and Events

#1 Post by infel »

So I'm trying to learn DSE coding. I've downloaded the most recent one and though it's pretty helpful, I'm utterly confused about priority for evens and the event.solo(), event.once(), and codes like that.

Here's an example on the DSE code with the priorities and what the even.??? means. If anyone can help, that would be great. I just don't get this part =(.

Code: Select all

  # Here are Sporty Girl's events that happen during the exercise act.
    $ event("catchme", "act == 'exercise'",
            event.depends('introduction'), event.once())
    $ event("cantcatchme", "act == 'exercise'",
            event.depends('catchme'), event.solo(), priority=190)
    $ event("caughtme", "act == 'exercise' and strength >= 50",
            event.depends('catchme'), event.once())
    $ event("together", "act == 'exercise' and strength >= 50",
            event.depends('caughtme'), event.solo(), priority=180)
    $ event("apart", "act == 'exercise' and strength < 50",
            event.depends('caughtme'), event.solo(), priority=180)
    $ event("pothole", "act == 'exercise' and strength >= 100",
            event.depends('caughtme'), event.once())
    $ event("dontsee", "act == 'exercise'",
            event.depends('pothole'), event.solo(), priority=170)
    $ event("sg_confess", "act == 'class'",
            event.depends('dontsee'), event.once())    
Please support my Twitter, Tumblr and Patreon

Patreon
https://www.patreon.com/user?u=885797&ty=h

Current Projects

Image
A GxG game about overcoming your fears and growing up in an forever changing world. Also focuses on lesbian relationships and self image.

Mermaid Sonata- A game about mermaids, magic, and adventure

http://lemmasoft.renai.us/forums/viewto ... 50&t=37512

User avatar
theCodeCat
Regular
Posts: 62
Joined: Sun Sep 06, 2015 8:40 pm
Projects: Lucid9, Mystic Destinies: Serendipity of Aeons
Skype: theCodeCat
Contact:

Re: DSE-Questions on Priority and Events

#2 Post by theCodeCat »

It's difficult to give useful advice without knowing more about which parts you're having trouble with.

I can try helping you out over Skype IM if you want (my id there is 'thecodecat').

Post Reply

Who is online

Users browsing this forum: Google [Bot], piinkpuddiin