Adding to a variable #1437
Replies: 1 comment 1 reply
-
That should be fine. If you try to add a double to an int, you might run into trouble, though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, everyone.
I hope I can make my question clear.
I have a situation expressed as:
IF player.successes > player.difficulty, then...
And the game is running perfectly well. But... may I express something like:
IF player.successes > player.difficulty+3
I don't know if just adding this "+" at the end will work. It's a bit ridiculous, because the way the game mechanics is made, I just cannot test it. But it will change te planning of the whole game, because as the player advances in the game, it becomes mechanicaly possible.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions