How do you give a character love points in a game? By love points I mean relationship points.
Also, how do change how many love points a character has based on what choices the player makes?
Character love points
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.
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.
-
- Miko-Class Veteran
- Posts: 505
- Joined: Mon Mar 26, 2012 6:51 pm
- Location: Philadelphia
- Contact:
- Darkmoonfire
- Regular
- Posts: 103
- Joined: Mon Apr 25, 2011 6:41 am
- Completed: Christmas Project
- Organization: Lunarescent Wings
- Tumblr: darkmoonfire
- Contact:
Re: Character love points
Start by defining the variable.
This would be how to make it increase or decrease with different choices
Be sure to remember the $ at the front. You can increase or decrease points by whatever value you want, and not just 1.
Code: Select all
$ xlove = 0
Code: Select all
menu:
"Choice X likes":
$ xlove += 1
"dialogue for this choice"
"Choice X hates":
$ xlove -= 1
"dialogue for this choice"
-
- Miko-Class Veteran
- Posts: 505
- Joined: Mon Mar 26, 2012 6:51 pm
- Location: Philadelphia
- Contact:
Re: Character love points
One more question about this: How do you make that you can only have certain choices if the character has enogh love points?
- Camille
- Eileen-Class Veteran
- Posts: 1227
- Joined: Sat Apr 23, 2011 2:43 pm
- Completed: Please see http://trash.moe
- Projects: the head well lost
- Organization: L3
- Tumblr: narihira
- Deviantart: crownwaltz
- itch: lore
- Contact:
Re: Character love points
Code: Select all
menu:
"Choice X likes" if xlove >= 5:
$ xlove += 1
"dialogue for this choice"
"Choice X hates":
$ xlove -= 1
"dialogue for this choice"
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
Who is online
Users browsing this forum: Amazon [Bot]