Combining the value to two variables

Wizardcraft

Warper
Member
Joined
Jan 7, 2015
Messages
3
Reaction score
0
First Language
English
Primarily Uses
I've lurked for hours and couldn't find an answer to this one. I've been stomped for hours and maybe it's just because I'm tired, but I've never had to attempt this before.


I need to be able to add together (or multiply) two variables that are defined by what the player does throughout the game.


Example: variable1 = 2 red flower. variable2 = 3 yellow flowers


I'd like variable3 to = 5 total flowers.


How can I accomplish this without scripting? My goal is to display the number of flowers the player has in total through text. Can that be accomplished without making a new variable for 1&2?


Let me use the same example above and ask about multiplying the variables. How could I make variable3 = 6, if I multiplied variables 1 and 2?


Thank you for answering in advanced. This simple thing is breaking me lol
 

Wizardcraft

Warper
Member
Joined
Jan 7, 2015
Messages
3
Reaction score
0
First Language
English
Primarily Uses
How could I accomplish that without setting the variables?


I think I answered my own question. I didn't know I needed a script. Thank you!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top