Page 1 of 1

im sorry more date sim questions

Posted: Tue Nov 07, 2017 6:47 pm
by texasstallion
Ok, so I have a couple more question for my datesim. How would i implement periods for instance I have a day and each day the user can do certain things at certain times. I will be implementing image maps so when he wakes up i want him to be able to do anything but certain things are of limit a that time
for instance it's morning and he is at school now he first class is english if he goes to english it does the usually even but if he try to go to math it is too early and the teachers says you to early mike you do have this class until 4 period
Or its 7 pm the donut shop is not open, but you can go to other stuff on the town map

I hope i'm making since

Also i need to know how, do you do another day, for instance day2 to the above, that will do the same thing as the above just as a new fresh day but was able to have an event like a football game on day 2

I was thinking of adding a

$ day_point = 0
then having $ day_point += 1
at the end of the day

and for events i would have events
If strength < 15
d“Wow yall won and you played great”
Elif strength >15 but great 7
d“You did great but y'all still lost”
else :
g“Yall suck “

But i wanted that to only happen only on day 2. How would i do that


Sorry if i am confusing and thanks for all he help you guy have really been helping me alot.

Re: im sorry more date sim questions

Posted: Tue Nov 07, 2017 9:19 pm
by texasstallion
also can you have multiple if on a if statement for instance like
if charisma_point >= 30,and if science _point>20 :


for this
label arcade:
"at the arcade"
menu:
"play video game":
$ dextirity_point +=!
jump videogameafter
"go talk to the store owner, Ms.Randolph.":
if charisma_point >= 30,and if science _point>20 :
jump MsRandolph1
else: charisma_point<=30,and if science _point<20 :
jump MsRandolph2
"go talk to ms johnson":
jump msjohnson
"go to townmap":
jump townmap
label MsRandolph1:
"you talk to ms.randolph "
$ w1_point += 5
jump arcade
label MsRandolph2:
"you try to talk to ms.randolph but she is concentrating on the game"
$ w1_point += 1
jump arcade
label msjohnson:
"asdf"

Re: im sorry more date sim questions

Posted: Wed Nov 08, 2017 7:11 am
by Remix
Please get into the habit of posting code on the forum within code blocks, so people can actually read it...

[code]... all your code here ...[/code]

Multiple if's can be combined using ' and ' within python. Note though, no commas and no uppercase If...
if var >= val and var2 >= val2 and var3 >= val3: # etc

Not sure if you are using DSE or some other date sim engine, so I will leave that answer for others

Re: im sorry more date sim questions

Posted: Wed Nov 08, 2017 4:38 pm
by texasstallion
texasstallion wrote:
Tue Nov 07, 2017 9:19 pm
also can you have multiple if on a if statement for instance like
if charisma_point >= 30,and if science _point>20 :

Code: Select all

for this
label arcade:   
"at the arcade"   
menu:
    "play video game":
        $ dextirity_point +=!
        jump videogameafter
    "go talk to the store owner, Ms.Randolph.":
    if charisma_point >= 30,and if  science _point>20 :
        jump MsRandolph1
    else: charisma_point<=30,and if science _point<20 :
        jump MsRandolph2
    "go talk to ms johnson":
        jump msjohnson
    "go to townmap":
        jump townmap
label MsRandolph1:
"you talk to ms.randolph "
$ w1_point += 5
jump arcade
label MsRandolph2:  
"you try to talk to ms.randolph but she is concentrating on the game"
$ w1_point += 1
jump arcade
label msjohnson:
"asdf"

Re: im sorry more date sim questions

Posted: Wed Nov 08, 2017 4:40 pm
by texasstallion
texasstallion wrote:
Wed Nov 08, 2017 4:38 pm
texasstallion wrote:
Tue Nov 07, 2017 9:19 pm
also can you have multiple if on a if statement for instance like
if charisma_point >= 30,and if science _point>20 :

Code: Select all

for this
label arcade:   
"at the arcade"   
menu:
    "play video game":
        $ dextirity_point +=!
        jump videogameafter
    "go talk to the store owner, Ms.Randolph.":
    if charisma_point >= 30,and if  science _point>20 :
        jump MsRandolph1
    else: charisma_point<=30,and if science _point<20 :
        jump MsRandolph2
    "go talk to ms johnson":
        jump msjohnson
    "go to townmap":
        jump townmap
label MsRandolph1:
"you talk to ms.randolph "
$ w1_point += 5
jump arcade
label MsRandolph2:  
"you try to talk to ms.randolph but she is concentrating on the game"
$ w1_point += 1
jump arcade
label msjohnson:
"asdf"
no date sim engine i can understand it well enough to use

Re: im sorry more date sim questions

Posted: Wed Nov 08, 2017 4:49 pm
by texasstallion
texasstallion wrote:
Wed Nov 08, 2017 4:38 pm
texasstallion wrote:
Tue Nov 07, 2017 9:19 pm
also can you have multiple if on a if statement for instance like
if charisma_point >= 30,and if science _point>20 :

Code: Select all

for this
label arcade:   
"at the arcade"   
menu:
    "play video game":
        $ dextirity_point +=!
        jump videogameafter
    "go talk to the store owner, Ms.Randolph.":
    if charisma_point >= 30,and if  science _point>20 :
        jump MsRandolph1
    else: charisma_point<=30,and if science _point<20 :
        jump MsRandolph2
    "go talk to ms johnson":
        jump msjohnson
    "go to townmap":
        jump townmap

label MsRandolph1:
"you talk to ms.randolph "
$ w1_point += 5
jump arcade

label MsRandolph2:  
"you try to talk to ms.randolph but she is concentrating on the game"
$ w1_point += 1
jump arcade

label msjohnson:
"asdf"