Add value variable
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.
-
- Regular
- Posts: 65
- Joined: Tue May 23, 2017 1:08 pm
- Projects: VN 789
- Deviantart: bokuman
- Contact:
Add value variable
I have a small question, i use a main variable for points, called main_points, and another one called adi_points, for aditional points to do extra things. what is the way to combine the values of those 2 variables?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Add value variable
Create another variable would be one way
default combi_points = 0
$ combi_points = main_points + adi_points
default combi_points = 0
$ combi_points = main_points + adi_points
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Who is online
Users browsing this forum: Google [Bot]