How exactly we use DSE? I have download it..help

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
xelacroix
Regular
Posts: 68
Joined: Mon Jul 25, 2011 2:28 am
Projects: beautiful girls
Contact:

How exactly we use DSE? I have download it..help

#1 Post by xelacroix » Fri Aug 05, 2011 12:06 am

i know it has its own tutorial..

but i dont understand..

do we need to copy paste all the folder of DSE to renpy folder?

or just paste the scripts on our game script?

day planner, event, stats, what is that really?

can someone post a code for example of how the script works?

as for time now, i already know this kind of code:

menu:
"Bake some chocolate cheese cakes":
jump cake

"Cook yummy Turkey.":
jump ayam

label cake:
"Ting~ That sound of my cake finished baked."

"Quickly I'm open the oven and tadaa...the smell of chocolate cheese cakes really can makes me feel happy, weird isn't..?."
show cake
with dissolve

"Zoey" "Honey! dinner is ready."

"Leon" "Bring it here darling."

"Leon is fixing the telephone so i bring the cakes to him."

"I give Leon 1 slice of the cakes, and 1 slice for me."

"We only eat a slice, cant eat more..feel like something wrong.."

"Leon" "Its delicious.."

"Zoey" "True, do you want another slice?"



ya, i know how to start a simple kinetik novel... but i want to know what the coding to make a stat rising kind novel...someone show me the coding (one coding example of stat rising game with one made up story) and teach me plsss

sorry for retard english.

Statistics Framework (stats.rpy)

The statistics framework represents statistics as variables that store the value of the statistics. The variables are registered using the register_stat function. They can be updated using normal python operations, but the normalize_stats function should be called to ensure that stats remain between their max and minimum values. The display_stats function displays the statistics on the screen.


Function: register_stat (name, var, default, max):
This should be called from init code to declare a stat.

name - The name of the stat, used to caption it when the stat is displayed.

var - A string containing the name of the variable that contains the stat.

default - The default value that the statistic c

max - The maximum value the stat can take on.


Function: normalize_stats ():
This should be called after one or more stats have been updated. It ensures that each stat has a value that is between 0 and the maximum value defined for that stat.


Function: display_stats (name=True, bar=True, value=True, max=True):
Displays a window containing all the stats, in the order registered. The name, bar, value, and max parameters control the display of the corresponding portions of the statistics.


so how we put this into coding?

User avatar
TakeOverWorld
Regular
Posts: 112
Joined: Fri May 27, 2011 11:00 am
Location: London, UK
Contact:

Re: How exactly we use DSE? I have download it..help

#2 Post by TakeOverWorld » Fri Aug 05, 2011 9:05 am

do we need to copy paste all the folder of DSE to renpy folder?
I think so, then open it up and edit the script there.
Function: register_stat (name, var, default, max):
This should be called from init code to declare a stat.

name - The name of the stat, used to caption it when the stat is displayed.

var - A string containing the name of the variable that contains the stat.

default - The default value that the statistic c

max - The maximum value the stat can take on.
I'm guessing you would do something like this

Code: Select all

register_stat ('Strength', $ strength, 0, 100)

User avatar
xelacroix
Regular
Posts: 68
Joined: Mon Jul 25, 2011 2:28 am
Projects: beautiful girls
Contact:

Re: How exactly we use DSE? I have download it..help

#3 Post by xelacroix » Fri Aug 05, 2011 12:00 pm

full example of full made up stat rising code pls?

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: How exactly we use DSE? I have download it..help

#4 Post by Aleema » Fri Aug 05, 2011 12:04 pm

xelacroix wrote:full example of full made up stat rising code pls?
That's a lot to ask someone, considering the DSE is free to download and has extensive documentation already.
If the DSE is just out of your league, then you should get warmed up with the Ren'Py language first by learning to program other things. Come back to the DSE later and maybe it will make more sense. Or recruit a coder in the Recruitment section.

User avatar
Rewritten Ennui
Veteran
Posts: 279
Joined: Thu Jul 14, 2011 1:50 pm
Organization: TwinTurtle Games
Contact:

Re: How exactly we use DSE? I have download it..help

#5 Post by Rewritten Ennui » Sat Aug 06, 2011 3:58 pm

do we need to copy paste all the folder of DSE to renpy folder?

or just paste the scripts on our game script?
I could have been the one to ask this question a while back, but I figured it out by my own :lol: If you want to use the files that you downloaded, simply drop the DSE folder into your main Ren'Py folder. Amazing, amirite? If that's not the answer you were looking for, then sorry :( DSE already comes with a demo game with all the features, so you can simply edit the code to fit your needs.
I've swapped accounts to CheeryMoya, so this account is no longer in use. Refer to the new account if you want to contact me.

Twinturtle Games Website

User avatar
xelacroix
Regular
Posts: 68
Joined: Mon Jul 25, 2011 2:28 am
Projects: beautiful girls
Contact:

Re: How exactly we use DSE? I have download it..help

#6 Post by xelacroix » Sun Aug 07, 2011 8:22 am

oh paste there..i didnt know its a renpy game without pictures

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], _ticlock_