- Oct 1, 2018
- 1,738
- 3,473
I am just beginning work on a new game. Playing around more than anything. I have searched all over the net, but had no luck in finding the correct answer. Hoping you can help.
I will have multiple variables, which change depending on choices. They could be a girls reactions, or training the MC has done.
So I have say;
$ arialike = a variable number (say 40)
$ ariaflirt = a variable number (say 10)
I want to combine these variables to create a new stat.
$ ariaattracted (arialike + ariaflirt) to equal (50)
I don't want to make game changes to ariaattracted. I want the arialike and ariaflirt used to change ariaattracted. As arialike and ariaflirt will also be used seperately in game.
What code do I use for this?
I have tried multiple different ways, but am having no luck. ariaattracted doesn't change.
Thanks in advance for any help.
I will have multiple variables, which change depending on choices. They could be a girls reactions, or training the MC has done.
So I have say;
$ arialike = a variable number (say 40)
$ ariaflirt = a variable number (say 10)
I want to combine these variables to create a new stat.
$ ariaattracted (arialike + ariaflirt) to equal (50)
I don't want to make game changes to ariaattracted. I want the arialike and ariaflirt used to change ariaattracted. As arialike and ariaflirt will also be used seperately in game.
What code do I use for this?
I have tried multiple different ways, but am having no luck. ariaattracted doesn't change.
Thanks in advance for any help.