Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed Jun 19, 2013 1:57 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Nov 15, 2012 11:48 pm 
Regular
User avatar

Joined: Thu Nov 15, 2012 11:40 pm
Posts: 174
Projects: Maiden or Princess
Organization: BlueAngelService
So i am currently making my otome game and hoping!!!!! to release it anytime soon well :/ I don't know how to put in multiple endings for each character. I have 4 approachable boys, and all of them have 3 different endings, mind helping?
Here is how I tried it and I don't know if I'm doing it correctly... >.< I'M SUPER SORRY IF THIS QUESTION WAS ASKED A LOT! T^T
here is a snap shot :)


Attachments:
File comment: Anything wrong? Or an easier possible way?
endings.PNG
endings.PNG [ 44.15 KiB | Viewed 319 times ]


Last edited by MioSegami on Sat Nov 17, 2012 12:11 am, edited 1 time in total.
Top
 Profile Send private message  
 
PostPosted: Fri Nov 16, 2012 4:39 am 
Veteran

Joined: Mon Jun 18, 2012 12:16 pm
Posts: 237
First of all, if you're using equal-equal (==) then you must get rid of <= and >= (replace them by < and > respectively), or the game will not work as intended.

Second, can you have +6 affection for more than one guy? If so, it all gets much more complicated. And even more complicated if you can have strictly 6 points for more than one of them. And it becomes utterly hard when you have two boys with equal points in the lead.
If you instead have 4 different scenarios for the boys, you don't need to read any further.

If you want to have the right relationship (i.e. with one chosen lover), then you'll have to find out the best candidature, maybe something like this:

Code:
if (max(kind of array of points) == ryohei_points) and (ryohei_points > 6):
    jump ryoheiendinglove
elif (max(kind of array of points) == hitoriki_points) and (hitoriki_points > 6):
    jump hitorikiendinglove
##elif ...you get the drill.


For checking "equal 6, no boys over 6" you can use (maybe, didn't test it):
Code:
elif (max(kind of array of points) == 6 == mochiku_points):
    jump milikeyou


For checking "i was a bitch and didn't get any boy to like me" or "i did a truly brilliant job and maintained good fellowship with all of them without going down to carnal desires", depending on what the goal of your game is, you can use
Code:
elif max(kind of array of points) == shou_points:
    jump friendzone


Previous conditions ensure that it will bother only about values lower than 6.

Only two ifs all the way through - the mom condition, which HAS to go first, and then the first condition which initiates the chain of boys' ending conditions.

If you instead like threesomes with multiple guys and one woman, well, that's probably better to keep away from because you're gonna have a heck ton-a-load of conditions - which will affect the performance on old machines.


Top
 Profile Send private message  
 
PostPosted: Fri Nov 16, 2012 9:26 am 
Regular
User avatar

Joined: Thu Nov 15, 2012 11:40 pm
Posts: 174
Projects: Maiden or Princess
Organization: BlueAngelService
Thank you soooo much!! Very helpful! I was supper confused, thanks again!!


Top
 Profile Send private message  
 
PostPosted: Fri Nov 16, 2012 2:29 pm 
Veteran

Joined: Mon Jun 18, 2012 12:16 pm
Posts: 237
You're welcome. If your problem is solved, then it would be nice to add [Solved] to this theme's name as an unspoken rule of convenience.


Top
 Profile Send private message  
 
PostPosted: Fri Nov 16, 2012 7:32 pm 
Regular
User avatar

Joined: Thu Nov 15, 2012 11:40 pm
Posts: 174
Projects: Maiden or Princess
Organization: BlueAngelService
Levrex wrote:
You're welcome. If your problem is solved, then it would be nice to add [Solved] to this theme's name as an unspoken rule of convenience.


Ah sorry for the bother again.... :/ but umm, so if I am having at least 2-3 endings for each guy which method is best? The first code you gave me? Or the other second one?


Top
 Profile Send private message  
 
PostPosted: Sat Nov 17, 2012 12:03 am 
Veteran

Joined: Mon Jun 18, 2012 12:16 pm
Posts: 237
You misunderstood, maybe, it's all one piece of a code, just divided in parts, like it is in provided screenshot.

If you can have several guys' routes AND multiple endings for each one of them AND you're not gonna have preferences (in the screenshot you'll ultimately get one of shou's endings), then you'd have to do as i described. Just to clarify, i provided examples only, so you'd have to copy and paste one check four times and edit the name and jump-to-where name. Then go to "equality" check and so on.
It's possible there's a different and more elegant solution, though.

If you have two boys with equal points in the lead and you do not want to depend to game's order to choose them, then you'll have to decide what to do with them - i.e. write another label, where you ultimately choose one of them. Or one of them dies in a duel, huh.


Top
 Profile Send private message  
 
PostPosted: Sat Nov 17, 2012 12:11 am 
Regular
User avatar

Joined: Thu Nov 15, 2012 11:40 pm
Posts: 174
Projects: Maiden or Princess
Organization: BlueAngelService
Thanks it's more clarified now! ~!!! *muah!* much of love :)!

_________________
CLICK IT------------->http://lemmasoft.renai.us/forums/viewtopic.php?f=43&t=21655
Projects: How much a heart can hurt
Story: 10% complete
Script: .5%
Art: 5%
Code: 10%


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Bellalea, ParanoidNoodle


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group