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 6:50 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  [ 3 posts ] 
Author Message
PostPosted: Sat May 26, 2012 10:40 pm 
Veteran
User avatar

Joined: Mon May 14, 2012 1:27 am
Posts: 350
Projects: Driftwood
Organization: MV Swag Squad
If I have

Code:
label start:
      $ Y_points = 0
      $ MA_points = 0
      $ G_points = 0
      $ K_points = 0
      $ EE_points = 0
      $ T_points = 0
      $ E_points = 0
      $ J_points = 0
      $ MY_points = 0


And I have a multitude of menu choices that increase the points of each of these.

Ex :
Code:
   
     "I'll take a tour.":
         $ T_points += 1
         jump tour


At this point T_points = 1
Correct?

Now when I do this.


Code:
"blah blah"
        $ T_points += 1


Does the =, equal the amount I am adding, or the over all points?

I'm just a little confused. Because If Its the amount im adding then T_points would truthfully be equal to 2

Or is it that the = is the amount of points in general?

_________________
You gotta be kitten' me, Stop it right meow, I aint even lion.

Projects: Driftwood

Image - Logo by WoPairs


Last edited by wakagana on Sat May 26, 2012 11:51 pm, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Sat May 26, 2012 11:35 pm 
Newbie

Joined: Sun Apr 29, 2012 10:53 pm
Posts: 8
In coding language += means you are adding the following to the total that already exists for that argument, if that's what you're asking.


Top
 Profile Send private message  
 
PostPosted: Sat May 26, 2012 11:51 pm 
Veteran
User avatar

Joined: Mon May 14, 2012 1:27 am
Posts: 350
Projects: Driftwood
Organization: MV Swag Squad
Thank you. =)

_________________
You gotta be kitten' me, Stop it right meow, I aint even lion.

Projects: Driftwood

Image - Logo by WoPairs


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: HeavenlyJoker, Majestic-12 [Bot]


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